Add exponential fog controllable with keyboard and MARSH parameter
This commit is contained in:
parent
aaef0b0475
commit
c1c3be7e85
8 changed files with 78 additions and 7 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://crq3o0eu4y8ya"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://crq3o0eu4y8ya"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dfcjdxesyn3l0" path="res://start_vr.gd" id="1_ig7tw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj1s0g7ixjw71" path="res://aircraft/aircraft.tscn" id="2_0xm2m"]
|
||||
[ext_resource type="Script" uid="uid://6g3b2ohwbkyv" path="res://fog_controller.gd" id="3_1bvp3"]
|
||||
[ext_resource type="PackedScene" uid="uid://bchcr54i3piaw" path="res://ads33-terrain/Cones_scene_terrain.tscn" id="3_h2yge"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_7dm0k"]
|
||||
|
|
@ -12,6 +13,10 @@ sky_material = SubResource("ProceduralSkyMaterial_7dm0k")
|
|||
[sub_resource type="Environment" id="Environment_0xm2m"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_ig7tw")
|
||||
fog_enabled = true
|
||||
fog_sun_scatter = 0.5
|
||||
fog_density = 0.0
|
||||
fog_depth_end = 80.0
|
||||
|
||||
[node name="Main" type="Node3D"]
|
||||
|
||||
|
|
@ -21,6 +26,7 @@ sky = SubResource("Sky_ig7tw")
|
|||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_0xm2m")
|
||||
script = ExtResource("3_1bvp3")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.866025, 0.433013, 0.25, 0, -0.5, 0.866025, 0.5, -0.75, -0.433013, -5, 5, -5)
|
||||
|
|
@ -29,4 +35,5 @@ shadow_enabled = true
|
|||
[node name="StartVR" type="Node3D" parent="."]
|
||||
script = ExtResource("1_ig7tw")
|
||||
|
||||
[connection signal="fog_density_changed" from="Aircraft" to="WorldEnvironment" method="_on_fog_density_changed"]
|
||||
[connection signal="setup_failed" from="StartVR" to="Aircraft" method="_on_vr_setup_failed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue