diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-18 23:39:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 23:39:21 +0200 |
commit | abe8b88702cdb4ce5ce154c31cb989e1cee56b5e (patch) | |
tree | 5075a05d6d3eb3b0ec426ac033ce1d04914842b6 /servers/rendering/renderer_rd/environment | |
parent | d29e17d9d2ad1d6b6380b6de01fe283c3937955b (diff) | |
parent | ba39230ef33f9e9249aecb838ba288b91bf6a9ec (diff) |
Merge pull request #62834 from RandomShaper/fix_vk_sky_error
Bind correct default resource type in GI
Diffstat (limited to 'servers/rendering/renderer_rd/environment')
-rw-r--r-- | servers/rendering/renderer_rd/environment/gi.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/environment/gi.cpp b/servers/rendering/renderer_rd/environment/gi.cpp index ce5a0eec02..3275aea13c 100644 --- a/servers/rendering/renderer_rd/environment/gi.cpp +++ b/servers/rendering/renderer_rd/environment/gi.cpp @@ -3352,7 +3352,11 @@ void GI::init(RendererSceneSkyRD *p_sky) { RD::Uniform u; u.uniform_type = RD::UNIFORM_TYPE_TEXTURE; u.binding = 0; - u.append_id(texture_storage->texture_rd_get_default(RendererRD::DEFAULT_RD_TEXTURE_CUBEMAP_WHITE)); + if (p_sky->sky_use_cubemap_array) { + u.append_id(texture_storage->texture_rd_get_default(RendererRD::DEFAULT_RD_TEXTURE_CUBEMAP_ARRAY_WHITE)); + } else { + u.append_id(texture_storage->texture_rd_get_default(RendererRD::DEFAULT_RD_TEXTURE_CUBEMAP_WHITE)); + } uniforms.push_back(u); } { |