Hello everyone! This is my first post on the forums. Help me plz
I was playing a bit with shadergraph. Then I tryed to change a Vector3 input in realtime. To keep track of the player’s position.
It reads the info but never used it. here I drop some images to Ilustrate the problem.
void Update:
mat.SetVector("PlayerPosition",player.transform.position);
print(mat.GetVector("PlayerPosition"));
RenderBatches();
the print result:
the Vector3 I accesed:
shader properties:
So, when i change color in runtime it works just fine, but the vector3 position wont.
Thx!