forked from BilalY/Rasagar
1.3 KiB
1.3 KiB
Make a GameObject compatible with the GPU Resident Drawer
To make a GameObject compatible with the GPU Resident Drawer, check it has the following properties:
- Has a Mesh Renderer component.
- In the Mesh Renderer component, Light Probes isn't set to Use Proxy Volume.
- Uses only static global illumination, not real time global illumination.
- Uses a shader that supports DOTS instancing. Refer to Supporting DOTS Instancing for more information.
- Doesn't move position after one camera finishes rendering and before another camera starts rendering.
- Doesn't use the
MaterialPropertyBlock
API. - Doesn't have a script that uses a per-instance callback, for example
OnRenderObject
.
Exclude a GameObject from the GPU Resident Drawer
To exclude a GameObject from the GPU Resident Drawer, add a Disallow GPU Driven Rendering component to the GameObject.
- Select the GameObject.
- In the Inspector window, select Add Component.
- Select Disallow GPU Driven Rendering.
Select Apply to Children Recursively to exclude both the GameObject and its children.