Makes wind uniforms global

Changes wind-related shader uniforms to be global.

This allows easier access and modification of these
parameters from other shaders or scripts, improving
the wind effect consistency across the scene.
This commit is contained in:
Dan Baker 2025-06-24 09:19:11 +01:00
parent c397615e12
commit 95665f54eb
2 changed files with 23 additions and 4 deletions

View file

@ -56,3 +56,22 @@ jump={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
]
}
[shader_globals]
wind_direction={
"type": "vec3",
"value": Vector3(5, 1, 5)
}
wind_noise_size={
"type": "float",
"value": 0.1
}
wind_noise_speed={
"type": "float",
"value": 0.2
}
wind_strength={
"type": "float",
"value": 7.0
}