Merge pull request #36200 from clayjohn/VULKAN-sky-error

Fix error flood with sky background
This commit is contained in:
Rémi Verschelde 2020-02-14 07:30:27 +01:00 committed by GitHub
commit 6dae536f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1821,7 +1821,7 @@ void RasterizerSceneHighEndRD::_render_scene(RID p_render_buffer, const Transfor
case VS::ENV_BG_SKY: {
RID sky = environment_get_sky(p_environment);
if (sky.is_valid()) {
radiance_uniform_set = sky_get_radiance_uniform_set_rd(sky, radiance_uniform_set, RADIANCE_UNIFORM_SET);
radiance_uniform_set = sky_get_radiance_uniform_set_rd(sky, default_shader_rd, RADIANCE_UNIFORM_SET);
draw_sky = true;
}
} break;