Hi Community!
First of all - thank you so much for this fantastic framework and your dedication!
It’s just so much fun working with BabylonJS!
I’ve been trying on implementing animated grass for my spare time gaming project.
I just wanted to share a playground with you, because was totally blown away by the speed of thin instances in combination with ShaderMaterial.
The playground implements a class called GrassBuilder, which builds stylized reactive, animated grass based on thin instances and the ShaderMaterial. It plants 1.000.000 grass blades on a heightmap and spawns 5 rolling Spheres making impact on the grass.
The grass can be configured with colors, dimensions, wind influence and rotation.
Impact positions can be configured optionally to simulate impact of objects on the grass.
As a performance optimization frustum culling is built into the vertex shader.
The style is debatable
, but perhaps it’s worth a look of you are interested in the topic.