How to edit colors of shadows generated via GI lightmaps from enlighten?

Hi,

My game is stylized and for all of my shaders I have added the ability to customize shadow colors. This makes possible hue changes that artists use to depict lighter or darker areas when illustrating, which is more visually appealing than merely moving colors towards black or white.

I have been able to tap into Unity’s screen space ambient occlusion functions in order to control the color of ambient occlusion contribution to shadow color. Now, I am trying to do the same thing with global illuminations contribution to lighting and shadowing.

My URP project uses Enlighten for realtime GI.

How would I go about assigning a color other than black to be used in a specific object’s light map generated by Enlighten?

Thanks!

You’d might want to modify the meta pass. Check out this documentation page on how to do this: Unity - Manual: Lightmapping and shaders

Thank you kristijonas_unity, will take a deeper look after work but looks useful and relevant

1 Like