diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-10-31 14:32:46 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-12-19 14:52:44 +0100 |
commit | 7ae487d2bbc8cd89be2d972ae04ef18f07da26e6 (patch) | |
tree | 89277a02444d8af0ef42155ce318b05a9bdcc1b1 /editor/import | |
parent | 229fb888a3b8538952858e688ada21e2ff53bb15 (diff) |
Increase the default Camera Zfar to 4000
This makes it possible to view far away objects without
having to tweak any settings. This results in a more usable
editor when working on large-scale levels.
This change should have no impact on performance, but note that
Z-fighting will be visible at a distance. This can be made less
visible by increasing the Znear value (however, doing so will cause
nearby surfaces to disappear).
This change was also applied to the editor, but it will only
apply to newly created scenes.
This also changes the default camera settings in the glTF importer
to match the Camera node's defaults.
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/collada.h | 4 | ||||
-rw-r--r-- | editor/import/editor_scene_importer_gltf.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/editor/import/collada.h b/editor/import/collada.h index 3b6b508b28..29d49d4aa7 100644 --- a/editor/import/collada.h +++ b/editor/import/collada.h @@ -96,8 +96,8 @@ public: }; float aspect = 1; - float z_near = 0.1; - float z_far = 100; + float z_near = 0.05; + float z_far = 4000; CameraData() {} }; diff --git a/editor/import/editor_scene_importer_gltf.h b/editor/import/editor_scene_importer_gltf.h index 6390f46524..e6163a46be 100644 --- a/editor/import/editor_scene_importer_gltf.h +++ b/editor/import/editor_scene_importer_gltf.h @@ -205,9 +205,9 @@ class EditorSceneImporterGLTF : public EditorSceneImporter { struct GLTFCamera { bool perspective = true; - float fov_size = 64; - float zfar = 500; - float znear = 0.1; + float fov_size = 75; + float zfar = 4000; + float znear = 0.05; }; struct GLTFLight { |