Search Issue Tracker
Fixed in 2017.3.0f3
Votes
0
Found in
2017.1.0b7
Issue ID
917094
Regression
No
[Forward] Realtime lights set to Not Important do not work with Shadowmask
Realtime lights set to "Not Important" in Render Mode are not computed correctly in Shadowmask/Distance Shadowmask mode.
Steps for reproduction:
1) Download the project "VertexLightingBug.zip" and open the scene "Bug"
2) Generate the lighting in "Subtractive" mode
3) Observe that realtime point light contribute lighting to dynamic object (i.e. Sphere)
4) Change the light mode to "Shadowmask"
5) Observe that realtime point light does not contribute lighting to dynamic object
Notes:
- Lights that have their Render Mode set to Not Important are always per-vertex or SH. Vertex/SH light should be handled in shadowmask/distance shadowmask mode (i.e. occlusion should be computed on the CPU)
- In the reproduction scene, there is one mixed directional light, one realtime point light and there no light probes.
- On the image attached below, plane is light map static, sphere is dynamic
- It works correctly in deferred rendering path, but works incorrectly in forward rendering path.
- Not a regression, realtime lights set to “Not Important” never worked since the introduction of light modes
Comments (5)
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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
unity_D603CDD53C1510CD413D
Aug 28, 2025 20:16
“Great discussion on realtime lights and shadowmask issues. I also faced similar problems in my projects, and your insights are really helpful. For more on image editing, you can check websit Photo Retouching LDT
unity_D603CDD53C1510CD413D
Aug 28, 2025 20:01
“Great discussion on realtime lights and shadowmask issues. I also faced similar problems in my projects, and your insights are really helpful. For more on image editing, you can check websit Photo Retouching LDT
rafikabir
Feb 23, 2024 11:43
Thank you for sharing such an informative and helpful article. It's truly amazing to read such valuable content. I look forward to seeing more of your work in the future. Keep up the excellent work!
Ben_Davis
Mar 17, 2021 17:20
Cool thanks !
Fixermanme
Oct 16, 2019 07:03
Great