← All resources

EricHu33 GitHub - UnityGrassRenderingIndirectExample

Auto-discovered

Library / Codebase Advanced

EricHu33

Visit resource ↗

Description

EricHu33’s UnityGrassIndirectRenderingExample is a Unity GitHub hobby project that draws large grass populations on Terrain with compute shaders and Graphics.DrawMeshInstancedIndirect.

It splits terrain into cells, CPU-culls with CullingGroup, samples detail maps on the GPU, runs Hi-Z culling, then draws indirectly, with runtime painting, multi-channel types, wind, distance scaling, and interaction textures.

Advanced Unity developers studying instancing beyond the 1023 limit should treat it as a learning sample; the README warns it is not production foliage and lacks LOD.

Setup covers Hi-Z and Indirect Draw controllers, Magic Grass painters, and Magic Grass Render Model assets, plus HLSL and Shader Graph grass shaders for indirect draws.

The repository has hundreds of GitHub stars and is compared with ColinLeung-NiloCat’s URP indirect demo and Cyanilux Shader Graph indirect notes.