hello, how can i pass the position of a lightsource to a shader?
in the shader i already have this defined:
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_LightPos ("LightPos", Vector) = (0,0,0,1)
}
but i dont know how to fill this LightPos variable from the application side.
thanks!
You don't need to define variables in the Properties block. It's only there to serve as a GUI.
– Jessy