Hey everyone,
I was wondering if anyone would know a good way about doing this. I have tried using replaced shaders to render out the static objects in the scene that were used in lightmapping and then only out put the lightmap colours. This shader works if I use it as the initial shader, and thus the scene is textured with only the lightmap, but as soon as I attempt to pass it as a replaced shader it stops working.
I do know that one of the reasons that it stops working is because the keyword “LIGHTMAP_OFF” is toggled once its used in the replaced shader. This of course then means that the data in “unity_Lightmap” and “unityLightmapInd” is never created. Is there a way to do this using replaced shaders? Is it possible to manually configure the the Keywords used before the shader is run?
Cheers,
0xDEADCODE