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 /src/gui.cpp | |
| 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-- | src/gui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui.cpp b/src/gui.cpp index a38f537..4a949f0 100644 --- a/src/gui.cpp +++ b/src/gui.cpp | |||
| @@ -428,6 +428,12 @@ static void build_cards() { | |||
| 428 | add_toggle(chams, "Through walls", | 428 | add_toggle(chams, "Through walls", |
| 429 | "Draw a second pass with the depth test disabled.", | 429 | "Draw a second pass with the depth test disabled.", |
| 430 | &g_chams_walls); | 430 | &g_chams_walls); |
| 431 | add_toggle(chams, "Viewmodel (hands/weapon)", | ||
| 432 | "Apply chams to the first-person hands and weapon too.", | ||
| 433 | &g_chams_viewmodel); | ||
| 434 | add_slider(chams, "Material", | ||
| 435 | "0 Flat, 1 Wireframe, 2 Additive glow, 3 Solid, 4 White.", 0, 4, | ||
| 436 | &g_chams_mat_index); | ||
| 431 | add_color(chams, "Colour", "Chams colour.", g_chams_rgb); | 437 | add_color(chams, "Colour", "Chams colour.", g_chams_rgb); |
| 432 | 438 | ||
| 433 | int view = add_card(2, nullptr, "Camera / display", | 439 | int view = add_card(2, nullptr, "Camera / display", |
