From c15a74d39f87c73a35ca420450e2876db2c37deb Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 19:09:31 +0100 Subject: Chams: use the model solid shader for flat, drop vgui/white vgui/white is an UnlitGeneric with $vertexcolor/$vertexalpha, no basetexture and no $model, so it renders nothing on model vertices; Flat was invisible on the viewmodel and would be invisible on NPCs too. Flat now uses the solid model shader with the FLAT flag. Remove the vgui/white probe. --- CONTEXT.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md index f7fdecb..ad9ce2d 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -295,17 +295,16 @@ vocabulary / decisions. `IMaterial::SetMaterialVarFlag` (slot 29); colours use `$color`/`$color2` (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 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. +- Styles are built from `debug/debugtranslucentsinglecolor` (UnlitGeneric, + `$color`) and material flags: + 0 Flat (solid + FLAT), 1 Wireframe (`debug/debugwireframe`), 2 Additive + (+ ADDITIVE), 3 Solid, 4 White (colour forced white), 5 Fullbright + (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). + `vgui/white` is vertex-colour based and has no `$model`/`$basetexture`, so it + is never used for chams; `models/debug/debugwhite` is EP2-only and the old + VGUI additive material was invisible on NPCs. - 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