Search Unity

_LightColor0 is always 0 when rendering into reflection probe

Discussion in 'Shaders' started by customphase, Apr 8, 2019.

  1. customphase

    customphase

    Joined:
    Aug 19, 2012
    Posts:
    246
    Subj. I set the directional light color to orange and im just returning it in the skybox shader. The skybox in the scene is correct, however in the reflection probe its always black. I can always manually copy the color through script ofcourse, but i was wondering if theres a better solution. I assume its some kind of workaround to prevent the sun from being rendered into the probe.

    Unity 2018.3.5, Deferred

    upload_2019-4-8_20-50-13.png
     
    Last edited: Apr 8, 2019