Class XrPassthroughBrightnessContrastSaturationFB

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrPassthroughBrightnessContrastSaturationFB>
org.lwjgl.openxr.XrPassthroughBrightnessContrastSaturationFB
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrPassthroughBrightnessContrastSaturationFB extends org.lwjgl.system.Struct<XrPassthroughBrightnessContrastSaturationFB> implements org.lwjgl.system.NativeResource
A color adjustment for passthrough layers.
Description

XrPassthroughBrightnessContrastSaturationFB lets applications adjust the brightness, contrast, and saturation of passthrough layers. The adjustments only are applied before any additional effects (such as edges) are rendered on top.

The adjustments are applied in CIELAB color space (white point D65) using the following formulas:

  • L*' = clamp((L* - 50) × contrast + 50, 0, 100)
  • L*'' = clamp(L*' + brightness, 0, 100)
  • (a*', b*') = (a*, b*) × saturation
  • Resulting color: (L*'', a*', b*')

XrPassthroughBrightnessContrastSaturationFB is provided in the next chain of XrPassthroughStyleFB.

Valid Usage (Implicit)

Layout


 struct XrPassthroughBrightnessContrastSaturationFB {
     XrStructureType type();
     void const * next();
     float brightness();
     float contrast();
     float saturation();
 }