File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ This will return a list of supported blend modes for submitting the main render
5757
5858We need to check if ``XR_ENV_BLEND_MODE_ALPHA_BLEND `` is present in this list.
5959If 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
6262We 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
You can’t perform that action at this time.
0 commit comments