feat: add sparse circus lights to circus sign on landing (max 4-5 at a time)

This commit is contained in:
enne2
2026-09-10 23:11:38 +02:00
parent 84a15c7d4c
commit 918246fdcd
3 changed files with 106 additions and 1 deletions
+8
View File
@@ -6,6 +6,7 @@ const DISPLAY_FONT := preload("res://shared/assets/fonts/NotoSerifDisplay-Conden
const MENU_SHADER := preload("res://menus/assets/shaders/ambient_drift.gdshader")
const TENT_STAR_SHADER := preload("res://menus/assets/shaders/tent_star_glow.gdshader")
const TENT_LIGHTS_SHADER := preload("res://menus/assets/shaders/tent_lights.gdshader")
const SIGN_LIGHTS_SHADER := preload("res://menus/assets/shaders/circus_sign_lights.gdshader")
# Posizione e ingombro condivisi della freccia indietro in tutte le schermate.
const BACK_BUTTON_CENTER := Vector2(0.12, 0.14)
@@ -52,6 +53,13 @@ static func tent_material(garland_strength := 0.0) -> ShaderMaterial:
return material
static func sign_lights_material() -> ShaderMaterial:
var material := ShaderMaterial.new()
material.shader = SIGN_LIGHTS_SHADER
material.set_shader_parameter("sign_lights_active", 0.0)
return material
static func add_image(parent: Control, texture: Texture2D, center: Vector2, normalized_size: Vector2, material: Material = null) -> TextureRect:
var image := TextureRect.new()
image.texture = texture