Skip to main content

Type Alias: EnvironmentBlendMode

type EnvironmentBlendMode = "opaque" | "alpha-blend" | "additive";

Defined in: runtime-adapter.ts:47

The three blend modes WebXR defines for XRSession.environmentBlendMode.

  • "opaque" - the rendered image is all the player sees.
  • "alpha-blend" - video passthrough, as on a Quest. The rendered image is composited over the camera feed normally, so black stays black.
  • "additive" - a see-through optical display. The rendered image is added to the light already reaching the eye, so black is fully transparent.