Fix error spammed to output if `FogVolume` is setted to scene
This commit is contained in:
parent
d046817536
commit
4da0de0085
|
@ -4167,7 +4167,7 @@ void RendererSceneRenderRD::_update_volumetric_fog(RID p_render_buffers, RID p_e
|
||||||
u.uniform_type = RD::UNIFORM_TYPE_TEXTURE;
|
u.uniform_type = RD::UNIFORM_TYPE_TEXTURE;
|
||||||
u.binding = 19;
|
u.binding = 19;
|
||||||
RID radiance_texture = storage->texture_rd_get_default(is_using_radiance_cubemap_array() ? RendererStorageRD::DEFAULT_RD_TEXTURE_CUBEMAP_ARRAY_BLACK : RendererStorageRD::DEFAULT_RD_TEXTURE_CUBEMAP_BLACK);
|
RID radiance_texture = storage->texture_rd_get_default(is_using_radiance_cubemap_array() ? RendererStorageRD::DEFAULT_RD_TEXTURE_CUBEMAP_ARRAY_BLACK : RendererStorageRD::DEFAULT_RD_TEXTURE_CUBEMAP_BLACK);
|
||||||
RID sky_texture = sky.sky_get_radiance_texture_rd(env->sky);
|
RID sky_texture = env->sky.is_valid() ? sky.sky_get_radiance_texture_rd(env->sky) : RID();
|
||||||
u.ids.push_back(sky_texture.is_valid() ? sky_texture : radiance_texture);
|
u.ids.push_back(sky_texture.is_valid() ? sky_texture : radiance_texture);
|
||||||
uniforms.push_back(u);
|
uniforms.push_back(u);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue