This commit is contained in:
2026-01-21 23:40:20 +01:00
commit d1f8068081
478 changed files with 24902 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
extends OmniLight3D
class_name FlickerOmniLight3D
@export var noise: NoiseTexture2D = load("res://Maps/Spaceship/Objects/FlickerOmniLightNoise.tres")
@export var strength: float = 1.0
var timePassed: float = 0
func _ready() -> void:
#self.light_color = Color(0.891, 1.0, 1.0)
#shadow_enabled = true
#Color(1.0, 0.75, 0.468) Orange
pass
func _process(delta: float) -> void:
timePassed += delta
if !noise: return
var sampledNoise = noise.noise.get_noise_1d(timePassed)
sampledNoise = abs(sampledNoise)
light_energy = clampf(sampledNoise*strength, 0.25,10)