diff --git a/project/assets/materials/weapons/arms.tres b/project/assets/materials/weapons/arms.tres index 64cf0afc..616d8859 100644 --- a/project/assets/materials/weapons/arms.tres +++ b/project/assets/materials/weapons/arms.tres @@ -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 diff --git a/project/assets/materials/weapons/metal.tres b/project/assets/materials/weapons/metal.tres index 1e48dbab..0c924d5a 100644 --- a/project/assets/materials/weapons/metal.tres +++ b/project/assets/materials/weapons/metal.tres @@ -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 diff --git a/project/assets/materials/weapons/wood.tres b/project/assets/materials/weapons/wood.tres index af8c568d..37602ce2 100644 --- a/project/assets/materials/weapons/wood.tres +++ b/project/assets/materials/weapons/wood.tres @@ -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 diff --git a/project/maps/game.scn b/project/maps/game.scn index 43d740f2..43f2d19a 100644 Binary files a/project/maps/game.scn and b/project/maps/game.scn differ diff --git a/project/objects/player.tscn b/project/objects/player.tscn index 4ae05c1c..d042a3fa 100644 --- a/project/objects/player.tscn +++ b/project/objects/player.tscn @@ -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") diff --git a/project/project.godot b/project/project.godot index 9404c2d8..0bd7396e 100644 --- a/project/project.godot +++ b/project/project.godot @@ -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