GLSL shader with mat4 input?

GLSL shader with mat4 input?

Anonymous
Not applicable
620 Views
0 Replies
Message 1 of 1

GLSL shader with mat4 input?

Anonymous
Not applicable

Using Maya 2017...

 

If I create a GLSL shader that uses a mat4 parameter the param neither shows up in the node editor as an input nor can I connect to it using "connectAttr."  Anyone know how to make this work?  The built-in light shadow map matrix works but you cannot connect directly to it... only by using light binding.

 

Barring any solid documentation of this capability, is the source for the glslShader.mll plugin available somewhere so I can inspect and/or modify its behavior?

 

Here's how I declared my param:

 

uniform mat4 matRob <
string UIGroup = "mystuff";
string UIName = "rob matrix param";
>;

0 Likes
621 Views
0 Replies
Replies (0)