My game has 2 cameras.
I'm instancing a bunch of grass and I want the second camera to not render the grass. How can I do this?
The grass is instanced via DrawMeshInstancedIndirect.
My game has 2 cameras.
I'm instancing a bunch of grass and I want the second camera to not render the grass. How can I do this?
The grass is instanced via DrawMeshInstancedIndirect.
DrawMeshInstancedIndirect
has an argument "camera", its description is:To draw meshes in a specific camera, just pass this camera instance to the method.