Hello,
I would like to pass a matrix 4x4 to my shader from my csharp script.
In my shader I put in the CGPROGRAM part :
uniform float3x3 _ProjMatrix;
And in my script I put :
mat.SetMatrix( "_ProjMatrix", mtx );
If I use a shaderLab shader I can access it doing :
matrix [_ProjMatrix]
But in a vertex, fragment shader I cannot acces it.
Can you help me plase? In your shader, how do you supply _ProjMatrix?
Thanks.
Trending Articles
More Pages to Explore .....