Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2018.1.0f2
Issue ID
1050091
Regression
No
Shader does not collect proper shadow information when using SHADOW_ATTENUATION macro
How to reproduce:
1. Create a new project which uses Forward rendering with 1 pixel light allowed
2. Add directional light to the scene (sunlight)
3. Import the attached "case_1050091-AlderTree_problematic.unitypackage" package, and drop "Alder_LOD" prefab in a scene
4. Rotate and move your camera around (an example is shown in the attached video "2018-06-21 11-54-31.mp4")
Expected result: Shadow on the tree does not flicker in and out when rotating the camera
Actual result: Shadow on the tree flickers in and out, depending on some arbitrary camera positions and/or angle
Reproducible with: 2017.1.4p2, 2017.2.3p1, 2017.4.6f1, 2018.1.6f1, 2018.2.0b10, 2018.3.0a3
Note: Changing the shader's render queue seems to have an effect on the problem but cannot resolve it completely. Problem is most visible on LOD transitions, as well as shadow cascade transitions.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a5