Flip culling when rendering a camera with negative scale
This commit is contained in:
parent
f18f2740da
commit
80dea918c4
3 changed files with 3 additions and 3 deletions
|
@ -1739,7 +1739,7 @@ void RasterizerSceneGLES3::render_scene(const Ref<RenderSceneBuffers> &p_render_
|
|||
render_data.reflection_probes = ∅
|
||||
}
|
||||
|
||||
bool reverse_cull = false;
|
||||
bool reverse_cull = render_data.cam_transform.basis.determinant() < 0;
|
||||
|
||||
///////////
|
||||
// Fill Light lists here
|
||||
|
|
|
@ -1622,7 +1622,7 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
|
|||
bool using_ssr = false;
|
||||
bool using_sdfgi = false;
|
||||
bool using_voxelgi = false;
|
||||
bool reverse_cull = false;
|
||||
bool reverse_cull = p_render_data->scene_data->cam_transform.basis.determinant() < 0;
|
||||
bool using_ssil = p_render_data->environment.is_valid() && environment_get_ssil_enabled(p_render_data->environment);
|
||||
|
||||
if (rb.is_valid()) {
|
||||
|
|
|
@ -673,7 +673,7 @@ void RenderForwardMobile::_render_scene(RenderDataRD *p_render_data, const Color
|
|||
|
||||
Size2i screen_size;
|
||||
RID framebuffer;
|
||||
bool reverse_cull = false;
|
||||
bool reverse_cull = p_render_data->scene_data->cam_transform.basis.determinant() < 0;
|
||||
bool using_subpass_transparent = true;
|
||||
bool using_subpass_post_process = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue