summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2017-11-25 23:48:30 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2017-11-25 23:48:30 +0100
commit541df26184370c890e925adffc06a13d528d1906 (patch)
tree97bba2687026c8a9d17810d2c7d5fc1d2a83502a
parent73a26b4c3f8167e900901527c267522629105d9a (diff)
Tweak the default camera node settings
- Increase FOV to 70 - Put the Z-near plane at 0.05 meters
-rw-r--r--scene/3d/camera.cpp2
-rw-r--r--servers/visual/visual_server_scene.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp
index 8c7d0c23c3..abc4a03498 100644
--- a/scene/3d/camera.cpp
+++ b/scene/3d/camera.cpp
@@ -649,7 +649,7 @@ Camera::Camera() {
current = false;
force_change = false;
mode = PROJECTION_PERSPECTIVE;
- set_perspective(65.0, 0.1, 100.0);
+ set_perspective(70.0, 0.05, 100.0);
keep_aspect = KEEP_HEIGHT;
layers = 0xfffff;
v_offset = 0;
diff --git a/servers/visual/visual_server_scene.h b/servers/visual/visual_server_scene.h
index d075be76ca..9af5ffb74d 100644
--- a/servers/visual/visual_server_scene.h
+++ b/servers/visual/visual_server_scene.h
@@ -120,9 +120,9 @@ public:
Camera() {
visible_layers = 0xFFFFFFFF;
- fov = 65;
+ fov = 70;
type = PERSPECTIVE;
- znear = 0.1;
+ znear = 0.05;
zfar = 100;
size = 1.0;
vaspect = false;