Hi all,
I want to render a mesh using a command buffer and forward lighting.
Using buffer.DrawMesh just uses the last light that was rendered, so I guess I have to set the shader variables myself before this.
Apparently, there aren’t any helpers to setup a light, and there are a few shader globals to be set for a light to work (_LightColor0, etc).
Is there some documentation on how to do this properly? I bet many people found this problem before, but I couldn’t find any solution.
Thanks in advance!