Enable non-multiview advanced shader group whenever advanced shaders are requested

This is needed because xr_enabled does not guarantee that we won't use the non-multiview variants
This commit is contained in:
clayjohn 2023-11-21 15:16:25 -07:00
parent 7022271291
commit e2a5d2bf46

View file

@ -853,7 +853,6 @@ void SceneShaderForwardClustered::set_default_specialization_constants(const Vec
void SceneShaderForwardClustered::enable_advanced_shader_group(bool p_needs_multiview) {
if (p_needs_multiview || RendererCompositorRD::get_singleton()->is_xr_enabled()) {
shader.enable_group(SHADER_GROUP_ADVANCED_MULTIVIEW);
} else {
shader.enable_group(SHADER_GROUP_ADVANCED);
}
shader.enable_group(SHADER_GROUP_ADVANCED);
}