diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-06-12 09:54:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-06-12 09:54:19 -0300 |
commit | 4b35654a023e4fdcd3e3b12570ffdf3f11aeeb3d (patch) | |
tree | 9d7c2e2f7652442f77b28ef9f778208e6f44f7af /drivers/gles2 | |
parent | c845c2a8276c61323416139790962a096a8d956e (diff) |
Update rasterizer_gles2.cpp
fixed camera plane
Diffstat (limited to 'drivers/gles2')
-rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index f8e5d11dcf..efc92c5d9f 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -4402,7 +4402,7 @@ void RasterizerGLES2::set_camera(const Transform& p_world,const CameraMatrix& p_ } camera_transform_inverse=camera_transform.inverse(); camera_projection=p_projection; - camera_plane = Plane( camera_transform.origin, camera_transform.basis.get_axis(2) ); + camera_plane = Plane( camera_transform.origin, -camera_transform.basis.get_axis(2) ); camera_z_near=camera_projection.get_z_near(); camera_z_far=camera_projection.get_z_far(); camera_projection.get_viewport_size(camera_vp_size.x,camera_vp_size.y); |