Detail maiden interior with matching PBR metals and progressive incandescence

This commit is contained in:
JariKo
2026-10-28 23:43:56 +02:00
parent fcd67109d4
commit b9a4e40c42
13 changed files with 218 additions and 12 deletions
+8 -3
View File
@@ -45,8 +45,10 @@ func setup(game,development):
for c in n.get_children():queue.append(c)
if n is MeshInstance3D and n!=d.flame:
if d.device.get_meta("apparatus_model","")=="iron_maiden_v01":
var glow=ShaderMaterial.new();glow.shader=preload("res://maiden_heat.gdshader")
n.material_overlay=glow;heat_materials.append(glow)
for surface in range(n.mesh.get_surface_count()):
var original=n.get_active_material(surface)
var glow=preload("res://maiden_material.gd").make(original,d.device.global_position.y)
n.set_surface_override_material(surface,glow);heat_materials.append(glow)
continue
var mat=ShaderMaterial.new();mat.shader=preload("res://forged.gdshader")
if n.material_override is StandardMaterial3D:mat.set_shader_parameter("tint",n.material_override.albedo_color)
@@ -87,4 +89,7 @@ func update(dt,active):
if d.release_clock>0:target=heat
heat=move_toward(heat,target,dt*(1.5 if target>heat else 0.3))
for mat in heat_materials:mat.set_shader_parameter("heat",heat)
heat_light.light_energy=heat*0.9
if d.device.get_meta("apparatus_model","")=="iron_maiden_v01":
heat_light.light_color=Color("ff2510").lerp(Color("ffad48"),smoothstep(.55,1.0,heat))
heat_light.light_energy=pow(heat,1.5)*3.2
else:heat_light.light_energy=heat*0.9