Fix incorrect sky rotation based on camera axis

This commit is contained in:
Yuri Rubinsky 2022-06-09 22:35:20 +03:00
parent d120b099f5
commit 5dd7a1030d

View file

@ -1531,7 +1531,7 @@ void RendererSceneSkyRD::draw(RendererSceneEnvironmentRD *p_env, bool p_can_cont
projections = &camera; projections = &camera;
} }
sky_transform = p_transform.basis * sky_transform; sky_transform = sky_transform * p_transform.basis;
if (shader_data->uses_quarter_res) { if (shader_data->uses_quarter_res) {
PipelineCacheRD *pipeline = &shader_data->pipelines[view_count > 1 ? SKY_VERSION_QUARTER_RES_MULTIVIEW : SKY_VERSION_QUARTER_RES]; PipelineCacheRD *pipeline = &shader_data->pipelines[view_count > 1 ? SKY_VERSION_QUARTER_RES_MULTIVIEW : SKY_VERSION_QUARTER_RES];