diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 18:08:07 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 18:08:07 +0100 |
| commit | b3003583a1a66f5ae2eae63763f285635b43d58f (patch) | |
| tree | d4d2e778a2265652befcc86fbaa8bf1f4fcb30c3 /CONTEXT.md | |
| parent | Chams: quiet material lookup, accept any fallback by name (diff) | |
| download | hl2h-b3003583a1a66f5ae2eae63763f285635b43d58f.tar.gz hl2h-b3003583a1a66f5ae2eae63763f285635b43d58f.zip | |
Chams: material styles and viewmodel support
- Material selector 0..4: debugwhite, debug wireframe (ignorez), vgui
white_additive, debugtranslucentsinglecolor, vgui/white; cached per index
with a debugwhite fallback.
- Add "Viewmodel (hands/weapon)" toggle; viewmodel entities (class contains
viewmodel or model path /v_...) get a normal-depth chams pass.
- [chams] gains viewmodel= and material=.
Diffstat (limited to '')
| -rw-r--r-- | CONTEXT.md | 17 |
1 files changed, 11 insertions, 6 deletions
| @@ -293,12 +293,17 @@ vocabulary / decisions. | |||
| 293 | materials ignore ColorModulate. The shared material's flag and colour are | 293 | materials ignore ColorModulate. The shared material's flag and colour are |
| 294 | restored to (false, white) after the draw. | 294 | restored to (false, white) after the draw. |
| 295 | - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with | 295 | - Material lookup walks the `IMaterialSystem` list (`world_find_material`), with |
| 296 | `FindMaterial` (slot 71) as the fallback. Candidates, in order: | 296 | `FindMaterial` (slot 71) as the fallback. The style index selects: |
| 297 | `models/debug/debugwhite{2,3}`, `vgui/white`, | 297 | 0 `models/debug/debugwhite`, 1 `debug/debugwireframevertexcolorignorez`, |
| 298 | `debug/debugtranslucentsinglecolor`, `debug/debugwireframevertexcolorignorez`. | 298 | 2 `vgui/white_additive`, 3 `debug/debugtranslucentsinglecolor`, |
| 299 | The chosen material name is logged. | 299 | 4 `vgui/white`; if the requested style is unavailable it falls back to the |
| 300 | - Feature is off by default; `[chams] active/bind/walls/r/g/b`, with a | 300 | first available debugwhite candidate. The chosen material name is logged. |
| 301 | "Through walls" toggle and colour picker in the Visuals card. | 301 | - `Viewmodel (hands/weapon)` also applies the override to entities whose class |
| 302 | contains `viewmodel` or whose model path is `.../v_...`. The viewmodel gets | ||
| 303 | only the normal-depth pass (no ignorez). | ||
| 304 | - Feature is off by default; `[chams] active/bind/walls/viewmodel/material/r/g/b`, | ||
| 305 | with Through walls, Viewmodel, Material (0..4) and colour in the Visuals | ||
| 306 | card. | ||
| 302 | - This is a flat material override, not stencil outlines; depth handling is | 307 | - This is a flat material override, not stencil outlines; depth handling is |
| 303 | the simple ignorez/normal two-pass. | 308 | the simple ignorez/normal two-pass. |
| 304 | 309 | ||
