feat: replaced lighting setup with physical light units

This commit is contained in:
Sara Gerretsen 2026-02-11 16:06:14 +01:00
parent 6e7a380fcc
commit 99f7d2f3a3
6 changed files with 15 additions and 6 deletions

View file

@ -2,8 +2,9 @@
[resource]
resource_name = "arms"
transparency = 4
cull_mode = 2
albedo_color = Color(0.9063318, 0.9063318, 0.9063318, 1)
roughness = 0.5
use_z_clip_scale = true
z_clip_scale = 0.1
z_clip_scale = 0.2

View file

@ -1,10 +1,11 @@
[gd_resource type="StandardMaterial3D" load_steps=3 format=3 uid="uid://cey2t4uje80f3"]
[gd_resource type="StandardMaterial3D" format=3 uid="uid://cey2t4uje80f3"]
[ext_resource type="Texture2D" uid="uid://bfk5amosuiriq" path="res://assets/textures/metal/metal_albedo.png" id="1_7pld1"]
[ext_resource type="Texture2D" uid="uid://b2uh6cnh7e1xr" path="res://assets/textures/metal/metal_normal.png" id="2_vujp3"]
[resource]
resource_name = "metal"
transparency = 4
cull_mode = 2
albedo_texture = ExtResource("1_7pld1")
metallic = 0.98
@ -13,4 +14,4 @@ roughness = 0.48
normal_enabled = true
normal_texture = ExtResource("2_vujp3")
use_z_clip_scale = true
z_clip_scale = 0.1
z_clip_scale = 0.2

View file

@ -1,4 +1,4 @@
[gd_resource type="StandardMaterial3D" load_steps=4 format=3 uid="uid://bvy3xngb287wd"]
[gd_resource type="StandardMaterial3D" format=3 uid="uid://bvy3xngb287wd"]
[ext_resource type="Texture2D" uid="uid://dstrf0oxck5by" path="res://assets/textures/woodgrain/woodgrain_albedo.png" id="1_4wqgt"]
[ext_resource type="Texture2D" uid="uid://celwjqrlb4cdv" path="res://assets/textures/woodgrain/woodgrain_rough.exr" id="2_o8vs7"]
@ -6,6 +6,7 @@
[resource]
resource_name = "wood"
transparency = 4
cull_mode = 2
albedo_texture = ExtResource("1_4wqgt")
metallic = 1.0
@ -16,4 +17,4 @@ roughness_texture_channel = 1
normal_enabled = true
normal_texture = ExtResource("3_elfj7")
use_z_clip_scale = true
z_clip_scale = 0.1
z_clip_scale = 0.2

Binary file not shown.

View file

@ -2,6 +2,11 @@
[ext_resource type="PackedScene" uid="uid://cfgwif53qypko" path="res://objects/weapons/revolver.tscn" id="1_eqqp1"]
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_eqqp1"]
frustum_focus_distance = 1.0
frustum_focal_length = 20.4
exposure_aperture = 50.0
[sub_resource type="SphereShape3D" id="SphereShape3D_eqqp1"]
radius = 0.2
@ -34,7 +39,7 @@ wall_min_slide_angle = 0.0
unique_name_in_owner = true
process_priority = -1
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.27450943, 0)
fov = 65.0
attributes = SubResource("CameraAttributesPhysical_eqqp1")
[node name="PlayerInteractor" type="PlayerInteractor" parent="PlayerCamera" unique_id=1590374872]
shape = SubResource("SphereShape3D_eqqp1")

View file

@ -108,6 +108,7 @@ reload={
[rendering]
lights_and_shadows/use_physical_light_units=true
lights_and_shadows/directional_shadow/size=8192
lights_and_shadows/directional_shadow/soft_shadow_filter_quality=4
lights_and_shadows/positional_shadow/soft_shadow_filter_quality=5