Compare commits
6 commits
d8ae45df0f
...
cb7332fd6f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cb7332fd6f | ||
![]() |
7081df1dae | ||
![]() |
3c20402254 | ||
![]() |
cded496e4c | ||
![]() |
53a5118079 | ||
![]() |
2a083b6430 |
|
@ -66,7 +66,7 @@ void PlayerInput::unhandled_input(Ref<InputEvent> const &event) {
|
||||||
}
|
}
|
||||||
Ref<InputEventMouseMotion> mouse_motion{ event };
|
Ref<InputEventMouseMotion> mouse_motion{ event };
|
||||||
if (mouse_motion.is_valid()) {
|
if (mouse_motion.is_valid()) {
|
||||||
Vector2 state{ -mouse_motion->get_relative() * 0.0005f };
|
Vector2 state{ -mouse_motion->get_relative() * this->mouselook_speed };
|
||||||
emit_signal(sig_look_input, state);
|
emit_signal(sig_look_input, state);
|
||||||
}
|
}
|
||||||
if (event->is_action("primary_fire")) {
|
if (event->is_action("primary_fire")) {
|
||||||
|
|
|
@ -24,6 +24,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool was_paused{ false };
|
bool was_paused{ false };
|
||||||
|
float mouselook_speed{ 0.0025f };
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !PLAYER_INPUT_H
|
#endif // !PLAYER_INPUT_H
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
[ext_resource type="PackedScene" uid="uid://bt054d3ic71rf" path="res://guis/pause_menu.tscn" id="3_28e7h"]
|
[ext_resource type="PackedScene" uid="uid://bt054d3ic71rf" path="res://guis/pause_menu.tscn" id="3_28e7h"]
|
||||||
|
|
||||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ien74"]
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ien74"]
|
||||||
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
|
sky_curve = 0.014711025
|
||||||
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
|
ground_curve = 0.008122505
|
||||||
|
|
||||||
[sub_resource type="Sky" id="Sky_41t38"]
|
[sub_resource type="Sky" id="Sky_41t38"]
|
||||||
sky_material = SubResource("ProceduralSkyMaterial_ien74")
|
sky_material = SubResource("ProceduralSkyMaterial_ien74")
|
||||||
|
@ -15,8 +15,7 @@ sky_material = SubResource("ProceduralSkyMaterial_ien74")
|
||||||
[sub_resource type="Environment" id="Environment_uqqn3"]
|
[sub_resource type="Environment" id="Environment_uqqn3"]
|
||||||
background_mode = 2
|
background_mode = 2
|
||||||
sky = SubResource("Sky_41t38")
|
sky = SubResource("Sky_41t38")
|
||||||
ambient_light_source = 2
|
ambient_light_source = 3
|
||||||
ambient_light_color = Color(0.4645986, 0.46674252, 0.5062494, 1)
|
|
||||||
tonemap_mode = 2
|
tonemap_mode = 2
|
||||||
glow_enabled = true
|
glow_enabled = true
|
||||||
|
|
||||||
|
@ -29,10 +28,11 @@ anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
stretch = true
|
stretch = true
|
||||||
|
stretch_shrink = 3
|
||||||
|
|
||||||
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
|
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
|
||||||
handle_input_locally = false
|
handle_input_locally = false
|
||||||
size = Vector2i(1152, 648)
|
size = Vector2i(384, 216)
|
||||||
render_target_update_mode = 4
|
render_target_update_mode = 4
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="SubViewportContainer/SubViewport"]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="SubViewportContainer/SubViewport"]
|
||||||
|
@ -40,9 +40,9 @@ environment = SubResource("Environment_uqqn3")
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="SubViewportContainer/SubViewport"]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="SubViewportContainer/SubViewport"]
|
||||||
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
|
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
|
||||||
|
light_color = Color(1, 0.972, 0.93, 1)
|
||||||
shadow_enabled = true
|
shadow_enabled = true
|
||||||
shadow_blur = 0.281
|
directional_shadow_pancake_size = 0.1
|
||||||
directional_shadow_max_distance = 112.6
|
|
||||||
|
|
||||||
[node name="PlayerBody" parent="SubViewportContainer/SubViewport" instance=ExtResource("1_7vohb")]
|
[node name="PlayerBody" parent="SubViewportContainer/SubViewport" instance=ExtResource("1_7vohb")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.417719, 1.340589, -8.014704)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.417719, 1.340589, -8.014704)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@ wall_min_slide_angle = 0.0
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
process_priority = -1
|
process_priority = -1
|
||||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.27450943, 0)
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.27450943, 0)
|
||||||
fov = 60.0
|
fov = 65.0
|
||||||
|
|
||||||
[node name="PlayerInteractor" type="PlayerInteractor" parent="PlayerCamera"]
|
[node name="PlayerInteractor" type="PlayerInteractor" parent="PlayerCamera"]
|
||||||
shape = SubResource("SphereShape3D_eqqp1")
|
shape = SubResource("SphereShape3D_eqqp1")
|
||||||
|
|
|
@ -19,7 +19,6 @@ config/icon="res://icon.svg"
|
||||||
|
|
||||||
window/size/mode=3
|
window/size/mode=3
|
||||||
window/size/borderless=true
|
window/size/borderless=true
|
||||||
window/vsync/vsync_mode=2
|
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
|
|
||||||
|
@ -107,3 +106,10 @@ reload={
|
||||||
[physics]
|
[physics]
|
||||||
|
|
||||||
3d/physics_engine="Jolt Physics"
|
3d/physics_engine="Jolt Physics"
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
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
|
||||||
|
lights_and_shadows/positional_shadow/atlas_size=8192
|
||||||
|
|
Loading…
Reference in a new issue