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
| Name | Value | Description |
|---|---|---|
DefaultLit | 0 | GGX; also "legacy auto" — derives Hair/Subsurface from the old scalar knobs |
Unlit | 1 | emissive passthrough, lighting skipped entirely |
Subsurface | 2 | Penner wrap-diffuse, strength in the custom lane, blurred by the SSS pass |
ClearCoat | 3 | second specular lobe (intensity/roughness keep their RT3 R/G lanes) |
Hair | 4 | Kajiya-Kay strands over the aniso tangent frame |
TwoSidedFoliage | 5 | adds albedo-tinted back-light transmission, strength in the custom lane |
Cloth | 6 | Charlie sheen lobe over the base diffuse — velvet, felt, brushed fabric |
ThinTranslucent | 7 | Coloured 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. |
Eye | 8 | The 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