ellioman / Indirect-Rendering-With-Compute-Shaders

An example of drawing numerous instances using Unity3D, compute shaders and Graphics.DrawMeshInstancedIndirect with Frustum & Occlusion culling and LOD'ing.
678 stars 85 forks source link

instance amounts that arent a power of 2 #11

Closed Milk-Drinker01 closed 2 years ago

Milk-Drinker01 commented 2 years ago

Hello, I am creating a version of this that works by "painting" instances much like unitys terrain system, but for HDRP. when im dealing with instance numbers that != 2^n, where n >=11, my instances are flickering in and out of existence and acts very glitchy in general. what is the cause of this, and whats the best way of going about fixing it?