branchrust_reboot/main/spatially_aware_env_volumes_fixescancel
6 Commits over 0 Days - ∞cph!
Made the environment volumes use their own stencil buffer so they don't interfere with deferred rendering or any other effects that use a stencil buffer
Only check if the environment volume transform has changed while in the editor and outside of play mode
Caching environment volume transformation matrix and bounds
Combined volume properties into a Vector4 to reduce shader property set calls
- Added an epsilon amount to the environment volume size used for environment volume stencil rendering to prevent Z-Fighting when they are perfectly aligned with meshes.
- Moved the SetRenderTarget call when rendering the environment volumes to outside of the loop that draws them as it only needs to be set once.
- Added a square distance check for volumes after frustum culling based on a controllable render distance.