灯光调整

This commit is contained in:
joylink_fanyuhong 2024-05-09 10:28:45 +08:00
parent 31b8010f27
commit 71e07b3395
2 changed files with 2 additions and 4 deletions

View File

@ -116,10 +116,8 @@ func _on_timer_timeout():
func _set_mtd(dark): func _set_mtd(dark):
if is_dark: if is_dark:
$MTD.set_instance_shader_parameter("color_dark", 0.5)
$SpotLight3D.hide() $SpotLight3D.hide()
else: else:
$MTD.set_instance_shader_parameter("color_dark", 1.5)
$SpotLight3D.show() $SpotLight3D.show()
func _ready(): func _ready():

View File

@ -509,9 +509,9 @@ light_indirect_energy = 2.194
light_volumetric_fog_energy = 0.642 light_volumetric_fog_energy = 0.642
light_specular = 0.0 light_specular = 0.0
spot_range = 0.111 spot_range = 0.111
spot_attenuation = 1.8025 spot_attenuation = 1.68179
spot_angle = 0.0 spot_angle = 0.0
spot_angle_attenuation = 2.0 spot_angle_attenuation = 5.09824
[node name="Timer" type="Timer" parent="."] [node name="Timer" type="Timer" parent="."]