Skip to main content

Module observer_kernels

Module observer_kernels 

Source
Expand description

Five Normative Observer Projection Kernels for Holographic & Continuum Rendering.

Exposes the open project_observer_radiance WGSL shader ABI across 5 canonical modes:

  • 0x00: Spectral Cook-Torrance PBR + CIE 1931 XYZ Color Matching
  • 0x01: Cel-Shaded Toon with 3-Tone Register Quantization & Edge Inking
  • 0x02: Storybook Watercolor with 2-Pass Kubelka-Munk Diffusion & Granulation
  • 0x03: Holographic / GPR Tactical HUD with Scanlines & Dielectric Contrast
  • 0x04: Planck Blackbody Thermal Infrared Pseudocolor

User applications can register custom kernels in slots 0x05..0xFF.

Enums§

ObserverKernelError

Constants§

OBSERVER_KERNEL_HUD
OBSERVER_KERNEL_PBR
OBSERVER_KERNEL_THERMAL
OBSERVER_KERNEL_TOON
OBSERVER_KERNEL_WATERCOLOR
WGSL_KERNEL_HUD
0x03: Holographic / GPR Tactical HUD with Scanlines & Dielectric Contrast.
WGSL_KERNEL_PBR
0x00: Spectral Cook-Torrance Physically Based Rendering (PBR).
WGSL_KERNEL_THERMAL
0x04: Planck Blackbody Thermal Infrared Pseudocolor.
WGSL_KERNEL_TOON
0x01: Cel-Shaded Toon with 3-Tone Register Quantization & Ink Silhouette.
WGSL_KERNEL_WATERCOLOR
0x02: Storybook Watercolor with Kubelka-Munk Diffusion & Paper Edge Darkening.
WGSL_OBSERVER_HEADER
Common WGSL definitions and data structures shared by all observer projection kernels.

Functions§

get_observer_kernel_wgsl
Returns the WGSL shader source for the specified observer kernel mode.
validate_all_observer_kernels
Validates all 5 normative observer projection kernels through Naga.