From f67ee1ef7e3eff3cd746fc97be98195e68c1368d Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 19:06:06 +0100 Subject: Chams: fix the flat viewmodel, glow outline and fullbright styles - Flat uses the solid model shader with the FLAT flag on the viewmodel; vgui/white does not draw skinned models and made the hands vanish. - Glow outline draws its wireframe contour with ZNEARER and a brightened colour, so the solid base no longer hides the contour. - Fullbright is now additive + self-illuminated with the colour lifted toward white, so it reads differently from Solid and Additive glow. --- CONTEXT.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md index be526fc..f7fdecb 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -296,12 +296,16 @@ vocabulary / decisions. (IMaterialVar slot 11, SetVecValue 3-float slot 11) and `ColorModulate` (slot 28). Shared materials are restored after each draw. - Styles are built from the resident materials and material flags: - 0 Flat (`vgui/white` with FLAT), 1 Wireframe (`debug/debugwireframe`), - 2 Additive (`debug/debugtranslucentsinglecolor` + ADDITIVE), 3 Solid, - 4 White (solid, colour forced white), 5 Fullbright (solid + FLAT|SELFILLUM), - 6 Glow outline (solid plus a `debug/debugwireframe` contour pass). - `models/debug/debugwhite` is EP2-only and the old VGUI additive material is - invisible on NPCs; the styles no longer depend on them. + 0 Flat (`vgui/white` with FLAT on NPCs; the solid model shader with FLAT on + the viewmodel, because VGUI materials do not draw skinned models), + 1 Wireframe (`debug/debugwireframe`), 2 Additive + (`debug/debugtranslucentsinglecolor` + ADDITIVE), 3 Solid, 4 White (solid, + colour forced white), 5 Fullbright (solid + ADDITIVE|SELFILLUM with the + colour lifted toward white), 6 Glow outline (solid plus a + `debug/debugwireframe` contour pass drawn with ZNEARER (1 << 10) and a + brightened colour so the base cannot bury it). `models/debug/debugwhite` is + EP2-only and the old VGUI additive material is invisible on NPCs; the styles + no longer depend on them. - Style materials are preloaded from `outer_draw` (throttled) and cached; the render hook never calls FindMaterial itself. A missing style uses solid. - Feature is off by default. Config sections: `[chams]` (active/bind), -- cgit v1.2.3