Shader not accepting parameter update

Godot Version

4.0

Question

I am trying to update the color on different instances of the sprite 2d i am instantiating. when i print the value after set shader param it prints the right value but the output in the game is black, when it should not be.

To modify an instance uniform parametr from GDScript, you must call the set_instance_shader_parameter function on the node, not the material.

1 Like