Hi guys I’m having trouble with a render feature (probably).
I have this feature that renders some objects in an X layer with an X shader and create a global texture. This shader basically only display baked shadowmask black and white so the end results should be something like a single channel greyscale texture with baked shadowmask (camera perspective)
Now i have another feature that need this texture to do stuff but that’s not the problem, since if I debug the previously created global texture I’ll end up with an epileptic seizure since it will display only flashy black and white colors (looks like lightmapST are not valorized).
The shader displaying the baked shadomask works since if I use it on a single object it will work totally fine. The render feature works fine as well since if I change the shader to for example make it display object normals it will work as well. I tought that the problem was on the render feature when I set up the DrawingSettings on the perObjectData field but by toggling on the Lightmaps and Shadowmask perObjectData it still wont work. It’s like the unity_LightmapST property isn’t getting values from the objects.
So am I doing something bad? Or not taking in consideration some kind of stuff?
Thanks in advance