diff options
Diffstat (limited to 'CONTEXT.md')
| -rw-r--r-- | CONTEXT.md | 13 |
1 files changed, 9 insertions, 4 deletions
| @@ -287,11 +287,16 @@ vocabulary / decisions. | |||
| 287 | - Uses `IVModelRender::ForcedMaterialOverride` (slot 1) with | 287 | - Uses `IVModelRender::ForcedMaterialOverride` (slot 1) with |
| 288 | `models/debug/debugwhite` and draws twice: first with | 288 | `models/debug/debugwhite` and draws twice: first with |
| 289 | `MATERIAL_VAR_IGNOREZ` (1 << 15) set through `IMaterial::SetMaterialVarFlag` | 289 | `MATERIAL_VAR_IGNOREZ` (1 << 15) set through `IMaterial::SetMaterialVarFlag` |
| 290 | (slot 29) for the through-wall pass, then without it. `IMaterial:: | 290 | (slot 29) for the through-wall pass, then without it. Colour is applied via |
| 291 | ColorModulate` (slot 28) applies the configured colour. The shared material's | 291 | `IMaterial::ColorModulate` (slot 28) **and** the shader's `$color`/`$color2` |
| 292 | flag and colour are restored to (false, white) after the draw. | 292 | vars (IMaterialVar slot 11, SetVecValue 3-float slot 11), because some forced |
| 293 | materials ignore ColorModulate. The shared material's flag and colour are | ||
| 294 | restored to (false, white) after the draw. | ||
| 293 | - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with | 295 | - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with |
| 294 | `FindMaterial` (slot 71) as the fallback for a not-yet-resident material. | 296 | `FindMaterial` (slot 71) as the fallback. Candidates, in order: |
| 297 | `models/debug/debugwhite{2,3}`, `vgui/white`, | ||
| 298 | `debug/debugtranslucentsinglecolor`, `debug/debugwireframevertexcolorignorez`. | ||
| 299 | The chosen material name is logged. | ||
| 295 | - Feature is off by default; `[chams] active/bind/walls/r/g/b`, with a | 300 | - Feature is off by default; `[chams] active/bind/walls/r/g/b`, with a |
| 296 | "Through walls" toggle and colour picker in the Visuals card. | 301 | "Through walls" toggle and colour picker in the Visuals card. |
| 297 | - This is a flat material override, not stencil outlines; depth handling is | 302 | - This is a flat material override, not stencil outlines; depth handling is |
