Detail maiden interior with matching PBR metals and progressive incandescence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user