Skip to content

Commit db78a71

Browse files
authored
Merge pull request godotengine#7522 from jbarnoud/patch-1
Fix references to XR_ENV_BLEND_MODE_ALPHA_BLEND in openxr_passthrough
2 parents e4acd3c + 468b12c commit db78a71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/xr/openxr_passthrough.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This will return a list of supported blend modes for submitting the main render
5757

5858
We need to check if ``XR_ENV_BLEND_MODE_ALPHA_BLEND`` is present in this list.
5959
If so we can tell OpenXR to expect an image that can be alpha blended with a background.
60-
To do this, we simply call ``set_environment_blend_mode(XR_ENV_BLEND_MODE_ALPHA_BLEND)``.
60+
To do this, we simply call ``set_environment_blend_mode(xr_interface.XR_ENV_BLEND_MODE_ALPHA_BLEND)``.
6161

6262
We must also set ``transparent_bg`` to true to ensure we submit the right image.
6363

@@ -74,8 +74,8 @@ Putting the above together we can use the following code as a base:
7474
return xr_interface.start_passthrough()
7575
else:
7676
var modes = xr_interface.get_supported_environment_blend_modes()
77-
if XR_ENV_BLEND_MODE_ALPHA_BLEND in modes:
78-
xr_interface.set_environment_blend_mode(XR_ENV_BLEND_MODE_ALPHA_BLEND)
77+
if xr_interface.XR_ENV_BLEND_MODE_ALPHA_BLEND in modes:
78+
xr_interface.set_environment_blend_mode(xr_interface.XR_ENV_BLEND_MODE_ALPHA_BLEND)
7979
return true
8080
else:
8181
return false

0 commit comments

Comments
 (0)