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

Progressive Lightmapper

-

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)

  1. 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

  2. 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

  3. 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!

  4. Ben_Davis

    Mar 17, 2021 17:20

    Cool thanks !

  5. Fixermanme

    Oct 16, 2019 07:03

    Great

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.