diff options
author | Bastiaan Olij <mux213@gmail.com> | 2022-06-16 22:02:18 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2022-06-17 19:39:34 +1000 |
commit | b4821fe2e0ed589ad078536584aea0d607a21fab (patch) | |
tree | 0b5e16f84e9952b5e78be36ca06481a0cac5da0d /drivers/gles3/rasterizer_scene_gles3.cpp | |
parent | 7cc99d213f4eb3b73f9169140dff2f7a6f02065f (diff) |
Introduce eye_offset for correcting stereoscopic reflections
Use view instead of vertex for reflections.
Diffstat (limited to 'drivers/gles3/rasterizer_scene_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_scene_gles3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 94ae8ecc8a..33c7b9bf32 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -1923,11 +1923,11 @@ void RasterizerSceneGLES3::render_scene(RID p_render_buffers, const CameraData * render_data.cam_transform = p_camera_data->main_transform; render_data.inv_cam_transform = render_data.cam_transform.affine_inverse(); render_data.cam_projection = p_camera_data->main_projection; - render_data.view_projection[0] = p_camera_data->main_projection; render_data.cam_orthogonal = p_camera_data->is_orthogonal; render_data.view_count = p_camera_data->view_count; for (uint32_t v = 0; v < p_camera_data->view_count; v++) { + render_data.view_eye_offset[v] = p_camera_data->view_offset[v].origin; render_data.view_projection[v] = p_camera_data->view_projection[v]; } |