enum

EShadingModel

Explicit surface shading model (G2). Values are the GBuffer wire IDs (RT3.A bits 5..7) — renumbering breaks every already-rendered frame's decode AND the CPU codec tests. 0 must remain DefaultLit: impostors, decal-neutral writes and material-less draws all emit a zero alpha.

Module
Renderer
Header
#include "Renderer/Material.h"
Namespace
Mowo

Values

NameValueDescription
DefaultLit0GGX; also "legacy auto" — derives Hair/Subsurface from the old scalar knobs
Unlit1emissive passthrough, lighting skipped entirely
Subsurface2Penner wrap-diffuse, strength in the custom lane, blurred by the SSS pass
ClearCoat3second specular lobe (intensity/roughness keep their RT3 R/G lanes)
Hair4Kajiya-Kay strands over the aniso tangent frame
TwoSidedFoliage5adds albedo-tinted back-light transmission, strength in the custom lane
Cloth6Charlie sheen lobe over the base diffuse — velvet, felt, brushed fabric
ThinTranslucent7Coloured glass: the surface TINTS what is behind it by Beer-Lambert absorption instead of fading it. Transmission strength is the thickness. NOTE: this fills the classic tier of RT3.A's surface code (0-6 plus this one). Ids past it go through tier 7's escape, which names an extended slot and moves that surface's payload to RT3.R/G — see FSurfaceCode.
Eye8The first EXTENDED model — it rides tier 7's escape, so RT3.R/G stop being the clear coat's lanes and become a 16-bit record index into the frame's surface-parameter buffer. Eye is the model that forced the indirection: its defining input is a per-pixel iris normal, a float3 that no packed lane of any width was ever going to carry.
Count
Generated from Renderer/Material.h via renderer.json · Nov 4, 2026Version 1.0.0