Correction du probleme de lumiere sur les objets.
This commit is contained in:
parent
b2a882fd3b
commit
7234ba2d04
4 changed files with 7 additions and 6 deletions
|
@ -23,7 +23,7 @@ func _ready():
|
||||||
|
|
||||||
$settings.show()
|
$settings.show()
|
||||||
|
|
||||||
$sky/viewport/sprite.set_time_of_day( 8.0, $light_system/directional_light, 25.0 )
|
$sky/viewport/sprite.set_time_of_day( 16.0, $light_system/directional_light, 25.0 )
|
||||||
|
|
||||||
func _process( delta ):
|
func _process( delta ):
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ shader_param/earth_radius_km = 6371.0
|
||||||
shader_param/atmo_radius_km = 6471.0
|
shader_param/atmo_radius_km = 6471.0
|
||||||
shader_param/cam_height_m = 1.8
|
shader_param/cam_height_m = 1.8
|
||||||
shader_param/sun_pos = Vector3( 1, 1, 1 )
|
shader_param/sun_pos = Vector3( 1, 1, 1 )
|
||||||
shader_param/sun_intensity = 22.0
|
shader_param/sun_intensity = 42.0
|
||||||
shader_param/rayleigh_coeff = Vector3( 5.5, 13, 22.4 )
|
shader_param/rayleigh_coeff = Vector3( 5.5, 13, 22.4 )
|
||||||
shader_param/mie_coeff = 21.0
|
shader_param/mie_coeff = 21.0
|
||||||
shader_param/rayleigh_scale = 800.0
|
shader_param/rayleigh_scale = 800.0
|
||||||
|
@ -105,7 +105,7 @@ transform = Transform( 60.964, 0, 0, 0, 1.21928, 0, 0, 0, 60.964, 0, 0, 0 )
|
||||||
mesh = SubResource( 9 )
|
mesh = SubResource( 9 )
|
||||||
|
|
||||||
[node name="cliff" parent="terrain" instance=ExtResource( 6 )]
|
[node name="cliff" parent="terrain" instance=ExtResource( 6 )]
|
||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -48.2121 )
|
transform = Transform( 0.778102, 0, 0.628138, 0, 1, 0, -0.628138, 0, 0.778102, -24.4077, -0.000944138, -27.3821 )
|
||||||
moss_height = 15.0
|
moss_height = 15.0
|
||||||
moss_fade = 2.5
|
moss_fade = 2.5
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0.472, -5 )
|
||||||
|
|
||||||
[node name="directional_light" type="DirectionalLight" parent="light_system"]
|
[node name="directional_light" type="DirectionalLight" parent="light_system"]
|
||||||
transform = Transform( 0.522088, 0.655715, -0.545401, 0, 0.639473, 0.768814, 0.852892, -0.401388, 0.333861, 0, 13.7088, 0 )
|
transform = Transform( 0.522088, 0.655715, -0.545401, 0, 0.639473, 0.768814, 0.852892, -0.401388, 0.333861, 0, 13.7088, 0 )
|
||||||
light_energy = 2.21
|
light_energy = 3.1
|
||||||
shadow_enabled = true
|
shadow_enabled = true
|
||||||
|
|
||||||
[node name="gi_probe" type="GIProbe" parent="light_system"]
|
[node name="gi_probe" type="GIProbe" parent="light_system"]
|
||||||
|
|
|
@ -16,4 +16,4 @@ func _on_sky_steps_value_changed(value):
|
||||||
|
|
||||||
|
|
||||||
func _on_sky_time_value_changed(value):
|
func _on_sky_time_value_changed(value):
|
||||||
sky_sprite.set_time_of_day( value, get_tree().get_root().get_node("$light_system/directional_light"), 25.0 )
|
sky_sprite.set_time_of_day( value, get_tree().get_root().get_node("previewer/light_system/directional_light"), 25.0 )
|
||||||
|
|
|
@ -124,6 +124,7 @@ margin_right = 256.0
|
||||||
margin_bottom = 16.0
|
margin_bottom = 16.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
value = 25.0
|
value = 25.0
|
||||||
|
ticks_on_borders = true
|
||||||
|
|
||||||
[node name="sky_time_box" type="HBoxContainer" parent="scroll_container/controls/sky_box"]
|
[node name="sky_time_box" type="HBoxContainer" parent="scroll_container/controls/sky_box"]
|
||||||
margin_top = 60.0
|
margin_top = 60.0
|
||||||
|
@ -145,7 +146,7 @@ margin_bottom = 16.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
max_value = 24.0
|
max_value = 24.0
|
||||||
step = 0.01
|
step = 0.01
|
||||||
value = 8.0
|
value = 16.0
|
||||||
[connection signal="value_changed" from="scroll_container/controls/sky_box/sky_coverage_box/sky_coverage" to="." method="_on_sky_coverage_value_changed"]
|
[connection signal="value_changed" from="scroll_container/controls/sky_box/sky_coverage_box/sky_coverage" to="." method="_on_sky_coverage_value_changed"]
|
||||||
[connection signal="value_changed" from="scroll_container/controls/sky_box/sky_thickness_box/sky_thickness" to="." method="_on_sky_thickness_value_changed"]
|
[connection signal="value_changed" from="scroll_container/controls/sky_box/sky_thickness_box/sky_thickness" to="." method="_on_sky_thickness_value_changed"]
|
||||||
[connection signal="value_changed" from="scroll_container/controls/sky_box/sky_absorption_box/sky_absorption" to="." method="_on_sky_absorption_value_changed"]
|
[connection signal="value_changed" from="scroll_container/controls/sky_box/sky_absorption_box/sky_absorption" to="." method="_on_sky_absorption_value_changed"]
|
||||||
|
|
Loading…
Reference in a new issue