Godot Version
4.3
Question
I’m trying to change the value of my global shader(vec2).
but the print shows no difference.
X and Y are always at 0.
func _physics_process(delta):
update_shader_global_position()
func update_shader_global_position() -> void:
RenderingServer.global_shader_parameter_set("player_glob_position", global_position)
print(ProjectSettings.get_setting("shader_globals/player_glob_position"))
What am I doing wrong?