Folio MMXXVI
  1. Morphology Atrium
  2. Substrate & Material Physics
FOLIO FRONTISPIECE · TERRITORY 04
TERRITORY 04 · OPTICS & SHADING
ARCHIVE FOLIO // TER-04

Material Library & Shaders

The physics of optical reflectance, microfacet scattering, and procedural synthesis—from Lambertian diffuse and Cook-Torrance BRDFs to the Disney Principled BSDF, subsurface scattering, and Perlin noise.

INDEXED SHADERS
12 Optical & Procedural Models
SCATTERING KERNELS
BRDF · BSDF · BSSRDF · Beer-Lambert
ENERGY INVARIANT
∫ f_r(ω_i, ω_o) (n · ω_o) dω_o ≤ 1
PHYSICAL SPECIMENS
Specimen Atlas (20)
ATELIER INSTRUMENT · MICROFACET SPECULAR REFLECTANCE
MICROFACET OPTICAL WORKBENCH

Cook-Torrance & GGX Reflectance Dial

Fresnel F₀ · Smith G₂ · GGX D
Roughness (α):0.35
Substrate Type:Dielectric (Plastic)
Incident Light Angle:45°
SPECIMEN CATALOG · 12 OPTICAL MATERIAL MODELS

Optical & Shading Models (12)

Energy-Conserving Microfacet Mathematics
MAT-01Diffuse Reflection
Very Low (Analytic)
MAT // 01DIFFUSE REFLECTIONTERRITORY 04 · MATERIALSVERY LOW (ANALYTIC)

Lambertian Ideal Diffuse Reflection

The fundamental baseline of diffuse shading. Assumes light entering a matte surface is scattered equally in all directions, regardless of the camera view angle.

OPTICAL CLASS
Diffuse Reflection
COMPUTATIONAL COST
Very Low (Analytic)
PHYSICAL PHENOMENON
Uniform isotropic scattering of incident photons across the entire hemisphere due to subsurface refraction and multiple internal reflections.
GOVERNING OPTICAL EQUATIONf_{\text{Lambert}}(\mathbf{l}, \mathbf{v}) = \frac{\rho}{\pi} \max(0, \mathbf{n} \cdot \mathbf{l})
PARAMETERS & PHYSICAL MEANING
ρDiffuse albedo reflectance color [0, 1]³
nSurface unit normal vector
lIncident light direction unit vector
GLSL / HLSL SHADER RECIPE
vec3 diffuse = (albedo / 3.14159265) * max(dot(N, L), 0.0) * lightColor;
lambertian-diffuseENERGY CONSERVING
MAT-02Microfacet Specular
Low (Per-Pixel)
MAT // 02MICROFACET SPECULARTERRITORY 04 · MATERIALSLOW (PER-PIXEL)

Cook-Torrance Microfacet Specular BRDF

The cornerstone of Physically Based Rendering (PBR). Breaks specular reflection into three distinct physical phenomena: facet alignment (D), reflection strength (F), and micro-shadowing (G).

OPTICAL CLASS
Microfacet Specular
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Statistical modeling of rough surfaces as millions of microscopic mirror facets that reflect light according to Snell's law and Fresnel equations.
GOVERNING OPTICAL EQUATIONf_{\text{spec}}(\mathbf{l}, \mathbf{v}) = \frac{D(\mathbf{h}) \cdot F(\mathbf{v}, \mathbf{h}) \cdot G(\mathbf{l}, \mathbf{v}, \mathbf{h})}{4 (\mathbf{n} \cdot \mathbf{l}) (\mathbf{n} \cdot \mathbf{v})}
PARAMETERS & PHYSICAL MEANING
D(h)Microfacet Normal Distribution Function (NDF)
F(v, h)Fresnel reflectance term
G(l, v, h)Geometric shadowing and masking attenuation function
hHalf-vector: h = normalize(l + v)
GLSL / HLSL SHADER RECIPE
vec3 specular = (D * F * G) / (4.0 * max(dot(N, L), 0.001) * max(dot(N, V), 0.001));
cook-torrance-brdfENERGY CONSERVING
MAT-03Distribution Function
Low (Per-Pixel)
MAT // 03DISTRIBUTION FUNCTIONTERRITORY 04 · MATERIALSLOW (PER-PIXEL)

GGX / Trowbridge-Reitz Normal Distribution (D)

The industry standard microfacet distribution. Unlike Gaussian or Beckmann models, GGX exhibits extended highlight tails that perfectly match real metals, plastics, and coated surfaces.

OPTICAL CLASS
Distribution Function
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Long-tailed distribution of microfacet orientations, accurately modeling the soft optical glow and wide specular highlights observed on real-world materials.
GOVERNING OPTICAL EQUATIOND_{\text{GGX}}(\mathbf{h}) = \frac{\alpha^2}{\pi \left( (\mathbf{n} \cdot \mathbf{h})^2 (\alpha^2 - 1) + 1 \right)^2}
PARAMETERS & PHYSICAL MEANING
αRoughness parameter squared: α = roughness²
nMacroscopic surface normal
hHalf-way vector between light and view rays
GLSL / HLSL SHADER RECIPE
float NdotH = max(dot(N, H), 0.0);
float a2 = alpha * alpha;
float denom = (NdotH * NdotH * (a2 - 1.0) + 1.0);
float D = a2 / (3.14159265 * denom * denom);
ggx-trowbridge-reitz-ndfENERGY CONSERVING
MAT-04Fresnel Term
Very Low (Analytic)
MAT // 04FRESNEL TERMTERRITORY 04 · MATERIALSVERY LOW (ANALYTIC)

Schlick's Fresnel Approximation (F)

A fast, hyper-accurate polynomial approximation of the complex dielectric Fresnel equations. Explains why water, glass, car paint, and wood gleam brilliantly at grazing view angles.

OPTICAL CLASS
Fresnel Term
COMPUTATIONAL COST
Very Low (Analytic)
PHYSICAL PHENOMENON
All materials become 100% reflective mirrors (F = 1.0) at extreme grazing angles (90° incidence), governed by electromagnetic boundary conditions.
GOVERNING OPTICAL EQUATIONF_{\text{Schlick}}(\mathbf{v}, \mathbf{h}) = F_0 + (1 - F_0)(1 - (\mathbf{v} \cdot \mathbf{h}))^5
PARAMETERS & PHYSICAL MEANING
F_0Reflectance at normal incidence (0° angle of incidence)
vCamera viewing direction vector
hMicrofacet normal (half-vector)
GLSL / HLSL SHADER RECIPE
vec3 F = F0 + (1.0 - F0) * pow(clamp(1.0 - max(dot(V, H), 0.0), 0.0, 1.0), 5.0);
schlick-fresnel-approximationENERGY CONSERVING
MAT-05Geometric Masking
Low (Per-Pixel)
MAT // 05GEOMETRIC MASKINGTERRITORY 04 · MATERIALSLOW (PER-PIXEL)

Smith Height-Correlated Masking & Shadowing (G)

Prevents unrealistically bright specular highlights at grazing angles by mathematically accounting for self-shadowing among microscopic surface peaks.

OPTICAL CLASS
Geometric Masking
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Microscopic facet peaks cast shadows on adjacent valleys, preventing incident light from reaching deep crevices and blocking reflected rays from reaching the camera.
GOVERNING OPTICAL EQUATIONG_2(\mathbf{l}, \mathbf{v}) = \frac{2(\mathbf{n} \cdot \mathbf{l})(\mathbf{n} \cdot \mathbf{v})}{(\mathbf{n} \cdot \mathbf{v})\sqrt{\alpha^2 + (1-\alpha^2)(\mathbf{n} \cdot \mathbf{l})^2} + (\mathbf{n} \cdot \mathbf{l})\sqrt{\alpha^2 + (1-\alpha^2)(\mathbf{n} \cdot \mathbf{v})^2}}
PARAMETERS & PHYSICAL MEANING
αRoughness parameter (alpha)
n · lCosine of the light angle
n · vCosine of the view angle
GLSL / HLSL SHADER RECIPE
float NdotL = max(dot(N, L), 0.0);
float NdotV = max(dot(N, V), 0.0);
float ggxV = NdotL * sqrt(NdotV * NdotV * (1.0 - a2) + a2);
float ggxL = NdotV * sqrt(NdotL * NdotL * (1.0 - a2) + a2);
float G = 0.5 / max(ggxV + ggxL, 0.0001);
smith-geometric-shadowingENERGY CONSERVING
MAT-06Principled Uber-Shader
Moderate (LUT / Vector)
MAT // 06PRINCIPLED UBER-SHADERTERRITORY 04 · MATERIALSMODERATE (LUT / VECTOR)

Disney Principled BSDF (Burley 2012)

The shader model that unified the 3D industry. Introduced by Brent Burley at Pixar/Disney in 2012 (*Wreck-It Ralph*), it is now the universal standard in Blender, Unreal, Maya, and glTF.

OPTICAL CLASS
Principled Uber-Shader
COMPUTATIONAL COST
Moderate (LUT / Vector)
PHYSICAL PHENOMENON
Unified phenomenological framework mapping artist-friendly intuitive sliders directly to physically plausible energy-conserving optical equations.
GOVERNING OPTICAL EQUATIONf(\mathbf{l}, \mathbf{v}) = (1 - \text{metallic}) f_{\text{diffuse}} + f_{\text{specular}} + f_{\text{clearcoat}} + f_{\text{sheen}} + f_{\text{glass}}
PARAMETERS & PHYSICAL MEANING
SubsurfaceControls blend between diffuse and subsurface scattering
Metallic0 = Dielectric (wood, plastic), 1 = Pure Conductor (gold, iron)
RoughnessMicrofacet smoothness controlling highlight spread
ClearcoatSecondary specular top layer for automotive lacquers
GLSL / HLSL SHADER RECIPE
vec3 finalBSDF = mix(diffuseEnergy * baseColor, specularLobe, metallic) + clearcoatLobe;
disney-principled-bsdfENERGY CONSERVING
MAT-07Subsurface Scattering
Extreme (Monte Carlo SSS)
MAT // 07SUBSURFACE SCATTERINGTERRITORY 04 · MATERIALSEXTREME (MONTE CARLO SSS)

Subsurface Scattering (BSSRDF & Random Walk)

The optical secret to living, organic materials. Without SSS, human skin looks like dry, chalky painted plastic. Subsurface scattering softens harsh shadow terminators with warm organic glow.

OPTICAL CLASS
Subsurface Scattering
COMPUTATIONAL COST
Extreme (Monte Carlo SSS)
PHYSICAL PHENOMENON
Light penetrates translucent materials (human skin, wax, marble, jade, milk), bounces millions of times off internal cellular particles, and exits at different surface points.
GOVERNING OPTICAL EQUATIONS(\mathbf{x}_i, \vec{\omega}_i, \mathbf{x}_o, \vec{\omega}_o) = \frac{1}{\pi} F_t(\mathbf{x}_i, \vec{\omega}_i) R(\|\mathbf{x}_i - \mathbf{x}_o\|) F_t(\mathbf{x}_o, \vec{\omega}_o)
PARAMETERS & PHYSICAL MEANING
x_i, x_oIncident entrance point and outgoing exit point on surface
R(r)Radial diffuse reflectance profile across distance r
F_tFresnel transmission factor entering/leaving the boundary
GLSL / HLSL SHADER RECIPE
// Random Walk path tracer step in participating volume
float stepSize = -log(rand()) / extinctionCoeff;
currentPos += rayDir * stepSize;
subsurface-scattering-bssrdfENERGY CONSERVING
MAT-08Volumetric Optics
High (Raymarching)
MAT // 08VOLUMETRIC OPTICSTERRITORY 04 · MATERIALSHIGH (RAYMARCHING)

Volumetric Absorption & Scattering (Beer-Lambert)

Governs light traveling through particulate space. Computes how much light is absorbed by colored glass or scattered into god-rays across atmospheric fog.

OPTICAL CLASS
Volumetric Optics
COMPUTATIONAL COST
High (Raymarching)
PHYSICAL PHENOMENON
Radiative transfer within participating media such as fog, smoke, atmospheric haze, murky ocean water, and stained glass.
GOVERNING OPTICAL EQUATIONI(s) = I_0 \exp\left( -\int_0^s \sigma_t(x) dx \right) + \int_0^s L_s(x) \sigma_s(x) \exp\left( -\int_x^s \sigma_t(t') dt' \right) dx
PARAMETERS & PHYSICAL MEANING
σ_aAbsorption coefficient (light converted to thermal energy)
σ_sScattering coefficient (light redirected by particulates)
σ_tExtinction coefficient: σ_t = σ_a + σ_s
p(θ)Henyey-Greenstein phase function for forward/backward scattering
GLSL / HLSL SHADER RECIPE
float transmittance = exp(-extinction * stepLength);
accumulatedLight += inScattering * transmittance * stepLength;
volumetric-absorption-scatteringENERGY CONSERVING
MAT-09Wave Interference
Low (Per-Pixel)
MAT // 09WAVE INTERFERENCETERRITORY 04 · MATERIALSLOW (PER-PIXEL)

Thin-Film Wave Interference & Iridescence

The mesmerizing spectral shimmer seen on soap bubbles, oil slicks on water, beetle carapaces, and tempered heat-treated titanium.

OPTICAL CLASS
Wave Interference
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Constructive and destructive wave interference when light reflections from the top and bottom interfaces of a microscopic film layer interfere with one another.
GOVERNING OPTICAL EQUATION\Delta \phi = \frac{4\pi d}{\lambda} \sqrt{n_2^2 - n_1^2 \sin^2 \theta} + \delta_r
PARAMETERS & PHYSICAL MEANING
dNanometer thickness of the thin film coating (e.g. 200–800 nm)
λOptical wavelength of light (Red ~650nm, Green ~530nm, Blue ~440nm)
n₁, n₂Refractive indices of ambient medium and thin film layer
GLSL / HLSL SHADER RECIPE
// Spectral phase interference evaluation for RGB wavelengths
vec3 phase = (4.0 * 3.14159265 * filmThickness / vec3(650.0, 532.0, 450.0)) * sqrt(n2*n2 - sinTheta*sinTheta);
vec3 iridColor = 0.5 + 0.5 * cos(phase);
thin-film-iridescenceENERGY CONSERVING
MAT-10Diffuse Reflection
Low (Per-Pixel)
MAT // 10DIFFUSE REFLECTIONTERRITORY 04 · MATERIALSLOW (PER-PIXEL)

Oren-Nayar Rough Diffuse Shading

Generalizes Lambertian reflection for porous, powdery surfaces. Explains why the full moon appears as a flat, uniformly illuminated disk rather than a smoothly shaded sphere.

OPTICAL CLASS
Diffuse Reflection
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Micro-cavity diffuse interreflection on extremely rough, porous surfaces (lunar dust, concrete, dry sand, plaster, terracotta).
GOVERNING OPTICAL EQUATIONf_{\text{ON}}(\mathbf{l}, \mathbf{v}) = \frac{\rho}{\pi} \left( A + B \max\left(0, \cos(\phi_i - \phi_r)\right) \sin \alpha \tan \beta \right) (\mathbf{n} \cdot \mathbf{l})
PARAMETERS & PHYSICAL MEANING
σSurface roughness standard deviation (in radians)
A, BA = 1 - 0.5σ²/(σ² + 0.33), B = 0.45σ²/(σ² + 0.09)
α, βα = max(θ_i, θ_r), β = min(θ_i, θ_r)
GLSL / HLSL SHADER RECIPE
float A = 1.0 - 0.5 * (sigma2 / (sigma2 + 0.33));
float B = 0.45 * (sigma2 / (sigma2 + 0.09));
float diffuseON = (albedo / 3.14159) * NdotL * (A + B * max(0.0, cosPhi) * sinAlpha * tanBeta);
oren-nayar-diffuseENERGY CONSERVING
MAT-11Procedural Synthesis
Low (Per-Pixel)
MAT // 11PROCEDURAL SYNTHESISTERRITORY 04 · MATERIALSLOW (PER-PIXEL)

Perlin & Simplex Procedural Gradient Noise

The mathematical brush of procedural materials. Ken Perlin's gradient noise (1985 Academy Award) allows infinite procedural texture generation with zero image files.

OPTICAL CLASS
Procedural Synthesis
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Continuous, differentiable pseudo-random mathematical noise fields providing natural turbulence for clouds, marble, rust, and planetary terrain.
GOVERNING OPTICAL EQUATIONN(\mathbf{x}) = \sum_{i} K(\mathbf{x} - \mathbf{p}_i) \cdot (\mathbf{g}_i \cdot (\mathbf{x} - \mathbf{p}_i)), \quad \text{fBm}(\mathbf{x}) = \sum_{k=0}^{M} \gamma^k N(2^k \mathbf{x})
PARAMETERS & PHYSICAL MEANING
p_iHyper-cubic or simplicial grid lattice vertices surrounding point x
g_iPseudo-random gradient unit vectors at lattice vertices
fBmFractal Brownian Motion summing multiple octaves of noise
GLSL / HLSL SHADER RECIPE
float fbm(vec3 p) {
  float v = 0.0; float a = 0.5;
  for(int i=0; i<5; i++) { v += a * simplexNoise(p); p *= 2.0; a *= 0.5; }
  return v;
}
perlin-simplex-noiseENERGY CONSERVING
MAT-12Procedural Synthesis
Low (Per-Pixel)
MAT // 12PROCEDURAL SYNTHESISTERRITORY 04 · MATERIALSLOW (PER-PIXEL)

Worley / Voronoi Cellular Distance Noise

Introduced by Steven Worley in 1996. Evaluates distance metrics across 3D cell domains, perfectly generating organic skin pores, reptile scales, dried mud cracks, and foam bubbles.

OPTICAL CLASS
Procedural Synthesis
COMPUTATIONAL COST
Low (Per-Pixel)
PHYSICAL PHENOMENON
Spatial partitioning based on Euclidean distance to randomly distributed feature points, mimicking biological cell tissue, cracked mud, reptilian scales, and cobblestones.
GOVERNING OPTICAL EQUATIONF_k(\mathbf{x}) = k\text{-th smallest } \|\mathbf{x} - \mathbf{p}_i\| \quad \forall \mathbf{p}_i \in \mathcal{S}_{\text{feature points}}
PARAMETERS & PHYSICAL MEANING
F₁Distance to closest feature point (creates cell cores)
F₂Distance to second closest feature point
F₂ - F₁Cellular border boundary isolines (cracks, scales, leather)
GLSL / HLSL SHADER RECIPE
// 3x3x3 cell neighborhood distance query
float d1 = minDistanceToFeaturePoint(p);
float d2 = secondMinDistanceToFeaturePoint(p);
float edge = d2 - d1; // sharp organic cell boundary
worley-cellular-noiseENERGY CONSERVING
EPISTEMIC DECISION TREE · OPTICAL MATERIAL SELECTION
ARCHIVAL INQUIRY LEDGER · MATERIALS CORPUS

Frequently Explored Structural Questions

1 Verified Technical Entries