diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-01-03 11:06:53 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-01-03 11:06:53 -0300 |
commit | cef3bd026fa6a6c1b2e19693b111210b3ce876ac (patch) | |
tree | beea572b5c526fe8ba72669bb1110b08be07a714 /scene/3d/camera.h | |
parent | 60afd79a6e2354e0254c280d826bc6f12f68ffa1 (diff) |
-fixed issue with denormals in half precission, closes #1073
-added h_offset and v_offset to 3D Camera, should allow to do the same as in #1102
Diffstat (limited to 'scene/3d/camera.h')
-rw-r--r-- | scene/3d/camera.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/3d/camera.h b/scene/3d/camera.h index bac8173bb7..950688dfda 100644 --- a/scene/3d/camera.h +++ b/scene/3d/camera.h @@ -61,6 +61,8 @@ private: float fov; float size; float near,far; + float v_offset; + float h_offset; KeepAspect keep_aspect; RID camera; @@ -140,6 +142,12 @@ public: void look_at(const Vector3& p_target, const Vector3& p_up_normal); void look_at_from_pos(const Vector3& p_pos,const Vector3& p_target, const Vector3& p_up_normal); + void set_v_offset(float p_offset); + float get_v_offset() const; + + void set_h_offset(float p_offset); + float get_h_offset() const; + Camera(); ~Camera(); |