Light & shadow

This commit is contained in:
Rob Kelly 2024-07-23 20:40:13 -06:00
parent c5e69624b3
commit bff168495a
2 changed files with 13 additions and 6 deletions

View File

@ -30,7 +30,6 @@ sky_material = SubResource("ShaderMaterial_jkl68")
[sub_resource type="Environment" id="Environment_0cwcw"] [sub_resource type="Environment" id="Environment_0cwcw"]
background_mode = 2 background_mode = 2
background_energy_multiplier = 2.0
sky = SubResource("Sky_7lp20") sky = SubResource("Sky_7lp20")
[sub_resource type="CylinderMesh" id="CylinderMesh_uarav"] [sub_resource type="CylinderMesh" id="CylinderMesh_uarav"]
@ -108,9 +107,17 @@ environment = SubResource("Environment_0cwcw")
[node name="LightAxis" type="Node3D" parent="Environment"] [node name="LightAxis" type="Node3D" parent="Environment"]
[node name="OmniLight3D" type="OmniLight3D" parent="Environment/LightAxis"] [node name="OmniLight3D" type="OmniLight3D" parent="Environment/LightAxis"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 20, 1, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 20, -4, 0)
light_energy = 16.0 light_energy = 16.0
omni_range = 14.586 light_size = 1.0
light_specular = 10.0
shadow_enabled = true
omni_range = 15.0
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 10, 0)
light_energy = 10.006
shadow_enabled = true
[node name="WorldGeometry" type="Node3D" parent="."] [node name="WorldGeometry" type="Node3D" parent="."]

View File

@ -7,17 +7,17 @@
[ext_resource type="Texture2D" uid="uid://b63g40daehul" path="res://assets/textures/Metal009_2K-PNG/Metal009_2K-PNG_NormalGL.png" id="5_8bw2a"] [ext_resource type="Texture2D" uid="uid://b63g40daehul" path="res://assets/textures/Metal009_2K-PNG/Metal009_2K-PNG_NormalGL.png" id="5_8bw2a"]
[ext_resource type="Texture2D" uid="uid://bjhtlrh1hij8x" path="res://assets/textures/Metal009_2K-PNG/Metal009_2K-PNG_Roughness.png" id="6_u6muq"] [ext_resource type="Texture2D" uid="uid://bjhtlrh1hij8x" path="res://assets/textures/Metal009_2K-PNG/Metal009_2K-PNG_Roughness.png" id="6_u6muq"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_1hfra"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_2xp25"]
render_priority = 0 render_priority = 0
shader = ExtResource("4_k6wow") shader = ExtResource("4_k6wow")
shader_parameter/color_low = Color(0, 0, 0, 1) shader_parameter/color_low = Color(0, 0, 0, 1)
shader_parameter/color_hi = Color(1, 1, 1, 1) shader_parameter/color_hi = Color(1, 1, 1, 1)
shader_parameter/threshold = 0.058 shader_parameter/threshold = 0.5
shader_parameter/contrast = 1.0 shader_parameter/contrast = 1.0
shader_parameter/offset = 0.0 shader_parameter/offset = 0.0
[resource] [resource]
next_pass = SubResource("ShaderMaterial_1hfra") next_pass = SubResource("ShaderMaterial_2xp25")
albedo_texture = ExtResource("1_cqrae") albedo_texture = ExtResource("1_cqrae")
metallic = 1.0 metallic = 1.0
metallic_texture = ExtResource("3_elunr") metallic_texture = ExtResource("3_elunr")