mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
More XR disable for Viewport and export.
This commit is contained in:
parent
d413181b8a
commit
9894256e3a
9 changed files with 30 additions and 0 deletions
|
|
@ -125,11 +125,13 @@ bool ShaderBakerExportPlugin::_begin_customize_resources(const Ref<EditorExportP
|
|||
customization_configuration_hash = to_hash.as_string().hash64();
|
||||
|
||||
BitField<RenderingShaderLibrary::FeatureBits> renderer_features = {};
|
||||
#ifndef XR_DISABLED
|
||||
bool xr_enabled = GLOBAL_GET("xr/shaders/enabled");
|
||||
renderer_features.set_flag(RenderingShaderLibrary::FEATURE_ADVANCED_BIT);
|
||||
if (xr_enabled) {
|
||||
renderer_features.set_flag(RenderingShaderLibrary::FEATURE_MULTIVIEW_BIT);
|
||||
}
|
||||
#endif // XR_DISABLED
|
||||
|
||||
int vrs_mode = GLOBAL_GET("rendering/vrs/mode");
|
||||
if (vrs_mode != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue