You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Sky: No more auto-selecting REALTIME mode if radiance is not 256
(cherry picked from commit 44e526d3d5)
This commit is contained in:
committed by
Rémi Verschelde
parent
26cc13705a
commit
2b05cf154a
@@ -912,7 +912,7 @@ void RasterizerSceneGLES3::_update_sky_radiance(RID p_env, const Projection &p_p
|
|||||||
RS::SkyMode sky_mode = sky->mode;
|
RS::SkyMode sky_mode = sky->mode;
|
||||||
|
|
||||||
if (sky_mode == RS::SKY_MODE_AUTOMATIC) {
|
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;
|
update_single_frame = true;
|
||||||
sky_mode = RS::SKY_MODE_REALTIME;
|
sky_mode = RS::SKY_MODE_REALTIME;
|
||||||
} else if (shader_data->uses_light || shader_data->ubo_size > 0) {
|
} else if (shader_data->uses_light || shader_data->ubo_size > 0) {
|
||||||
|
|||||||
@@ -1250,7 +1250,7 @@ void SkyRD::update_radiance_buffers(Ref<RenderSceneBuffersRD> p_render_buffers,
|
|||||||
RS::SkyMode sky_mode = sky->mode;
|
RS::SkyMode sky_mode = sky->mode;
|
||||||
|
|
||||||
if (sky_mode == RS::SKY_MODE_AUTOMATIC) {
|
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;
|
update_single_frame = true;
|
||||||
sky_mode = RS::SKY_MODE_REALTIME;
|
sky_mode = RS::SKY_MODE_REALTIME;
|
||||||
} else if (shader_data->uses_light || shader_data->ubo_size > 0) {
|
} else if (shader_data->uses_light || shader_data->ubo_size > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user