Quantcast
Channel: Answers for "Mirror + Shadows shader."
Viewing all articles
Browse latest Browse all 10

Answer by dahooo2

0
0
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.

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images