mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Update rasterizer_gles2.cpp
fixed camera plane
This commit is contained in:
parent
c845c2a827
commit
4b35654a02
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user