STANDARD_PBR_WGSL

Constant STANDARD_PBR_WGSL 

Source
pub const STANDARD_PBR_WGSL: &'static str;
Expand description

Standard PBR (Physically-Based Rendering) shader.

Implements the metallic-roughness workflow with Cook-Torrance BRDF:

  • GGX/Trowbridge-Reitz normal distribution
  • Schlick-GGX geometry function
  • Fresnel-Schlick approximation