Develop
Develop
Select your platform

Passthrough Styling

Customizing passthrough allows you to colorize the passthrough feed. You can perform image processing effects such as contrast adjustment, image posterizations, stair-stepping the grayscale values, and highlight edges.
Augmented objects sample
The OVRPassgthroughLayer component provides several options to customize the visual style of passthrough:
  • Opacity: Set the opacity/transparency of the passthrough image.
  • Edge Rendering: Apply an edge rendering filter.
  • Color Control: Adjust the color reproduction in the passthrough image. This feature enables a variety of different stylizations that are discussed in the next section.
OVRPassthrough Inspector View
You can customize passthrough further through color mapping, composite layering, or by implementing surface-projected passthrough.

Scripting Interface

The scripting interface of OVRPassthroughLayer provides access to these stylization features in code. Use textureOpacity to adjust the opacity of passthrough images and edgeRenderingEnabled and edgeColor to control edge rendering.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon