6 lines
180 B
GDScript3
Raw Normal View History

2024-01-15 16:08:26 +00:00
@tool
extends DirectionalLight3D
func _process(_delta):
(%PostProcessing as MeshInstance3D).mesh.surface_get_material(0).set_shader_parameter("light_direction", -global_basis.z)