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
- Long Prefab save times when using Unity 2022.2 and higher
- Console displays error "UnityException: Creating asset at path Assets/Scenes/ .scenetemplate failed." during scene template saving
- "Development Build" watermark is shown in non-development UWP release builds
- Console errors appear when the Inspector is set to Debug and a GameObject is selected
- A script public variable value is not used when set in the Inspector window
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a5