diff options
author | patwork <patwork@gmail.com> | 2024-09-16 11:32:36 +0200 |
---|---|---|
committer | patwork <patwork@gmail.com> | 2024-09-16 11:32:36 +0200 |
commit | 3038de42452f0bb840722d2dfc84ca996f0c126b (patch) | |
tree | 822a9497dace76c30963208641b12a5da495e10b /drivers | |
parent | 6681f2563b99e14929a8acb27f4908fece398ef1 (diff) | |
download | redot-engine-3038de42452f0bb840722d2dfc84ca996f0c126b.tar.gz |
Fix for GLES3 radiance cubemap update
Diffstat (limited to 'drivers')
-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 8b6d3e3268..b064234313 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -933,7 +933,7 @@ void RasterizerSceneGLES3::_update_sky_radiance(RID p_env, const Projection &p_p int max_processing_layer = sky->mipmap_count; // Update radiance cubemap - if (sky->reflection_dirty && (sky->processing_layer > max_processing_layer || update_single_frame)) { + if (sky->reflection_dirty && (sky->processing_layer >= max_processing_layer || update_single_frame)) { static const Vector3 view_normals[6] = { Vector3(+1, 0, 0), Vector3(-1, 0, 0), |