- Home /
Shader Graph Matrix4x4 Convert to Property
Newbie question here, but something seems like a bug. I spent a long time trying to figure this out, thinking my math is wrong.
Create a Universal Render Pipeline project, set Project Settings | Graphics to URP, etc.
Create a new Shader Graph and a New Material with that shader, and assign to a new Sphere
Create a graph where a Vector4(1,1,1,0) and a Matrix4x4 (0.5 scaling matrix) are plugged into a Multiply, and set the result to Color(3) of the master
As expected, my sphere turns gray. All good and expected.
Now, right click on the Matrix 4x4 node and Convert to Property, then Save Asset.
The sphere now turns to white! What happened??
Ok, I sort of think I understand what's going on. ShaderLab doesn't support matrix as a property type, apparently. But, shouldn't Unity just prevent us from making unsupported types as a property then?
Your answer
Follow this Question
Related Questions
How to make a fire ring shader in Shader Graph 0 Answers
Shader Graph not showing when included in build? 0 Answers
Shader Graph Gore Shader 0 Answers
Set color with matrix4x4 in shader graph makes color exploding with light in scene 0 Answers
Override the reflection probe's texture in shader graph 0 Answers