Creation of Physical World Environment in basic_setup scene, and transfer of the sun in it

This commit is contained in:
yannk 2022-02-06 23:36:58 +01:00
parent c05644fb98
commit adc0925df2
2 changed files with 23 additions and 5 deletions

View file

@ -5,10 +5,6 @@
[node name="main_scene" type="Node3D"]
[node name="sunlight" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.0749787, -0.776052, 0.626196, 2.98023e-08, 0.627963, 0.778243, -0.997185, 0.0583517, -0.0470839, 0, 7.57957, 0)
shadow_enabled = true
[node name="player" parent="." instance=ExtResource( "2_bge2k" )]
transform = Transform3D(0.750872, 0, -0.660447, 0, 1, 0, 0.660447, 0, 0.750872, -3.68624, 0, -17.6199)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=3 uid="uid://cvdmfc2hi172g"]
[gd_scene load_steps=17 format=3 uid="uid://cvdmfc2hi172g"]
[ext_resource type="Material" uid="uid://cdijyqa881tvv" path="res://maps/materials/simple_grid_world.material" id="1_h84bv"]
[ext_resource type="PackedScene" uid="uid://cveshwnu272vf" path="res://maps/ramp-complex.tscn" id="2_4eueh"]
@ -12,6 +12,19 @@
[ext_resource type="PackedScene" uid="uid://dxghflr1tlhai" path="res://maps/panel_dummy.tscn" id="11_gb0sk"]
[ext_resource type="PackedScene" uid="uid://damn2u4n5ien" path="res://maps/panel.tscn" id="11_vd4qp"]
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_615c2"]
[sub_resource type="Sky" id="Sky_fa16p"]
sky_material = SubResource( "PhysicalSkyMaterial_615c2" )
[sub_resource type="Environment" id="Environment_n5kgx"]
background_mode = 2
sky = SubResource( "Sky_fa16p" )
volumetric_fog_density = 0.3695
volumetric_fog_albedo = Color(0.945098, 0.721569, 1, 1)
volumetric_fog_emission = Color(0.407843, 0.415686, 0.439216, 1)
volumetric_fog_detail_spread = 1.60766
[sub_resource type="BoxMesh" id="BoxMesh_k23th"]
material = ExtResource( "1_h84bv" )
@ -20,6 +33,15 @@ data = PackedVector3Array(-1, 1, 1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, -
[node name="basic_setup" type="Node3D"]
[node name="sunlight" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.00872654, 0.999962, 0, -0.999962, 0.00872654, -1.75049, 15.9707, 4.39927)
light_color = Color(0.988235, 0.960784, 1, 1)
light_energy = 0.75
shadow_enabled = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( "Environment_n5kgx" )
[node name="floor" type="MeshInstance3D" parent="."]
transform = Transform3D(40, 0, 0, 0, 0.1, 0, 0, 0, 40, 0, -0.1, 0)
mesh = SubResource( "BoxMesh_k23th" )