Use sky's corrected camera projection for combined_reprojection
(cherry picked from commit 56e646c2170a91d1432b43471330da818a2a8b82)
This commit is contained in:
committed by
Thaddeus Crews
parent
ac86b22f3b
commit
a5f67bc458
@@ -1172,7 +1172,7 @@ void SkyRD::setup_sky(const RenderDataRD *p_render_data, const Size2i p_screen_s
|
|||||||
Projection view_inv_projection = (correction * p_render_data->scene_data->view_projection[i]).inverse();
|
Projection view_inv_projection = (correction * p_render_data->scene_data->view_projection[i]).inverse();
|
||||||
if (p_render_data->scene_data->view_count > 1) {
|
if (p_render_data->scene_data->view_count > 1) {
|
||||||
// Reprojection is used when we need to have things in combined space.
|
// Reprojection is used when we need to have things in combined space.
|
||||||
RendererRD::MaterialStorage::store_camera(p_render_data->scene_data->cam_projection * view_inv_projection, sky_scene_state.ubo.combined_reprojection[i]);
|
RendererRD::MaterialStorage::store_camera(sky_scene_state.cam_projection * view_inv_projection, sky_scene_state.ubo.combined_reprojection[i]);
|
||||||
} else {
|
} else {
|
||||||
// This is unused so just reset to identity.
|
// This is unused so just reset to identity.
|
||||||
Projection ident;
|
Projection ident;
|
||||||
|
|||||||
Reference in New Issue
Block a user