Merge pull request #61859 from Chaosus/fix_sky_rotation

This commit is contained in:
Yuri Rubinsky 2022-06-10 08:30:15 +03:00 committed by GitHub
commit d6254f982e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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