This time I am trying to use a depth map to project the grass on any object or surface. The idea is that I don't necessarily have to use a height map both to create the terrain and to position the grass on the Y axis. But that the grass adapts to any object or terrain. Possibly in a V3 I can set parameters so that the grass only appears at a certain height and at a certain angle on the objects/terrain, as you can see in the video, the grass is even projected on the sides of the object, which doesn't look good at all.
All of the above is just my imagination. And I'm just having fun. I don't know if I can even complete version 2. 😆
** People, please stop talking nonsense about optimization, because it has zero. This is an old video and it was a test at the time, that was the reason I didn't release the code. The depth map was hard to use at the time, so I was just testing if it was possible to place objects using the depth map. Now, with the new viewport features in Godot 4.3, it's easy.
Also, if you're trying to look smart "testing and measuring the performance" of a proof of concept with zero optimization that you don't have access to, just looking at a video, please bear in mind that this is running on a GT 730, which is a very low-end graphics card that barely supports Vulkan.
TAGS
#godot #godot4 #shaders