From bfd2f7fac43069d29436d4ecf3767b2c57f59c3a Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 18:46:46 +0100 Subject: Chams: use the loaded VGUI whites for flat and additive models/debug/debugwhite is EP2-only and additivevertexcolorvertexalpha is not loadable in the base game. Preload vgui/white for Flat and vgui/white_additive for Additive; the other debug styles were already found. The viewmodel keeps the solid model shader. --- src/studio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/studio.cpp') diff --git a/src/studio.cpp b/src/studio.cpp index 44d1bb4..f815c16 100644 --- a/src/studio.cpp +++ b/src/studio.cpp @@ -204,11 +204,11 @@ void *viewmodel_material(); const char *chams_material_name(int idx) { switch (idx) { case 1: return "debug/debugwireframe"; - case 2: return "debug/additivevertexcolorvertexalpha"; + case 2: return "vgui/white_additive"; case 3: return "debug/debugtranslucentsinglecolor"; case 4: return "debug/debugtranslucentvertexcolor"; case 5: return "debug/debugmrmfullbright2"; - default: return "models/debug/debugwhite"; + default: return "vgui/white"; // models/debug/debugwhite is EP2-only } } -- cgit v1.2.3