mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Sky: No more auto-selecting REALTIME mode if radiance is not 256
This commit is contained in:
parent
5ca419e32c
commit
44e526d3d5
2 changed files with 2 additions and 2 deletions
|
|
@ -1251,7 +1251,7 @@ void SkyRD::update_radiance_buffers(Ref<RenderSceneBuffersRD> p_render_buffers,
|
|||
RS::SkyMode sky_mode = sky->mode;
|
||||
|
||||
if (sky_mode == RS::SKY_MODE_AUTOMATIC) {
|
||||
if (shader_data->uses_time || shader_data->uses_position) {
|
||||
if ((shader_data->uses_time || shader_data->uses_position) && sky->radiance_size == 256) {
|
||||
update_single_frame = true;
|
||||
sky_mode = RS::SKY_MODE_REALTIME;
|
||||
} else if (shader_data->uses_light || shader_data->ubo_size > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue