Search Unity

Runtime environment lighting settings

Discussion in 'General Graphics' started by yonek_idreams, Apr 25, 2019.

  1. yonek_idreams

    yonek_idreams

    Joined:
    Sep 10, 2014
    Posts:
    26
    Hi!

    I am struggling with one thing for some time.

    I would like to construct a two scene setup.
    The first scene has a UI that displays a gallery of items as a render simple images.
    The second one is the "offline" renderer of the items. It loads one item, renders it and serves the resulted texture to the UI in the first scene.

    The problem is that each item could be in a different environment. So item A could be in a white room and item B could be in a red room.
    I need to use a standard shader on the items so all the light data must be correct.
    It was rather easy to setup everything the light color and reflection probe but there is a problem with the "vertex light" part of the reflection probe.

    Is there a way to set the SphericalHarmonicsL2 to influence a particular renderer? This should do the trick.