Different Ambient Light for Multiple Objects

Hello. My Scenario is this: I have a 3D scene where the skybox is made up of shades of purple (gradient). Now I want the environment (level blocks) to have a purple tint to it to complement the skybox. Anything else in the scene needs to have an ambient light of color white to show that it is not part of the environment.

So basically I need to have two different versions of (baked?) ambient light in one scene. From the research that I did, most posts said that it is not possible, others said that you have to use layers?, and some said that you have to override your previous lightmaps (dunno how to do that as of yet).

Any help or guidance is much appreciated.

How about treat the “ambient light color” a general uniform in shader ?
=> Ambient light is just a color uniform add to final color.
=> So it is easy for you to write a custom shader to reproduce this calculation.
Then you could do:
=> Set your custom “tint” uniform to purple color for GameObjects you need purple tint.
=> Set your custom “tint” uniform to white color for other GameObjects you don’t need purple tint.

1 Like

That’s an interesting approach. I’l try to create that effect and go from there. Thanks!