feat(plugin): add terrain3d plugin installation

This commit is contained in:
Rijad Zuzo
2026-07-03 13:05:56 +02:00
parent 5e171ae63a
commit 595233e5df
225 changed files with 13008 additions and 41 deletions
+22
View File
@@ -0,0 +1,22 @@
extends Area3D
func _ready() -> void:
body_entered.connect(_on_body_entered)
body_exited.connect(_on_body_exited)
func _on_body_entered(body: Node3D) -> void:
if body.name == "Player":
var env: WorldEnvironment = get_node_or_null("../../Environment/WorldEnvironment")
if env:
var tween: Tween = get_tree().create_tween()
tween.tween_property(env.environment, "ambient_light_energy", .1, .33)
func _on_body_exited(body: Node3D) -> void:
if body.name == "Player":
var env: WorldEnvironment = get_node_or_null("../../Environment/WorldEnvironment")
if env:
var tween: Tween = get_tree().create_tween()
tween.tween_property(env.environment, "ambient_light_energy", 1., .33)