Changing my global shader variable

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?

I haven’t tested it, but I think the value in project settings is just the initial value. You code should work, if you use global_shader_parameter_get() or use the global parameter in a shader.