Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2018.2.0b4
Issue ID
1036174
Regression
No
[Renderer] GPU Instanced mesh particles alignment affected by directional light when casting/receiving shadows is enabled
Repro steps:
1. Open Scene1 from the attached project.
2. Select the directional light and rotate it; observe the particle rotating
3. Turning off shadow casting on the light, or on the particle system resolves the issue.
Notes:
- Issue introduced in 2018.1
- Affects View and Facing render alignments
- Only in Forward Rendering mode
RichardK Note:
It's happening because m_MeshGPUInstanceData is a single ComputeBuffer on the particle renderer, so the shadow job overwrites it, and then the main render uses the overwritten data.
AcquireExclusive on the dynamic VBO needs to support compute buffers, to fix this, instead of allowing the particle system to control its lifecycle.
If we make DynamicVBOBuffer store the buffer type, we can change GfxBuffer* to be a union with ComputeBuffer*.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "EndLayoutGroup: BeginLayoutGroup must be called first" error is thrown when changing Shader Precision Model from the Build Profiles window
- White artifacts/outlines are visible in the Garden Scene when viewing at meshes from a distance
- Shader warnings "Sprite-Unlit-Default" are thrown after building 2D Platrformer Microgame Template
- [Android] HLSL shader becomes corrupted when running on an Android device
- Missing spaces in "Welcome to VR Mutiplayer Template Project" Welcome Dialog window
Add comment