diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 19:17:12 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 19:17:12 +0100 |
| commit | ea4b9d1f6de4c0c781a48999e793a5bf976c2b38 (patch) | |
| tree | 24d7af7c91d740076cf9c5ca932a0ed2a0d51cea /CONTEXT.md | |
| parent | Chams: use the model solid shader for flat, drop vgui/white (diff) | |
| download | hl2h-ea4b9d1f6de4c0c781a48999e793a5bf976c2b38.tar.gz hl2h-ea4b9d1f6de4c0c781a48999e793a5bf976c2b38.zip | |
Chams: keep additive viewmodel visible on bright backgrounds
Viewmodels are collated as RENDER_GROUP_VIEW_MODEL_OPAQUE, so an additive
forced material can vanish against a bright sky/wall (additive adds nothing to
an already-bright surface). Draw a dim opaque solid base before the additive
viewmodel pass so the first-person model always has a visible silhouette; the
additive layer still provides the glow.
Diffstat (limited to '')
| -rw-r--r-- | CONTEXT.md | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -307,6 +307,11 @@ vocabulary / decisions. | |||
| 307 | VGUI additive material was invisible on NPCs. | 307 | VGUI additive material was invisible on NPCs. |
| 308 | - Style materials are preloaded from `outer_draw` (throttled) and cached; the | 308 | - Style materials are preloaded from `outer_draw` (throttled) and cached; the |
| 309 | render hook never calls FindMaterial itself. A missing style uses solid. | 309 | render hook never calls FindMaterial itself. A missing style uses solid. |
| 310 | - Viewmodels are collated by the engine as `RENDER_GROUP_VIEW_MODEL_OPAQUE`, | ||
| 311 | so an additive forced material can wash out against a bright sky or wall | ||
| 312 | (and the engine may not treat the draw as translucent). Additive styles on | ||
| 313 | the viewmodel therefore draw a dim opaque solid base first, then the | ||
| 314 | additive pass; the first-person model never disappears. | ||
| 310 | - Feature is off by default. Config sections: `[chams]` (active/bind), | 315 | - Feature is off by default. Config sections: `[chams]` (active/bind), |
| 311 | `[chams_hostile|neutral|friendly]` (`vis`, `vis_mat`, `vis_r/g/b`, `inv`, | 316 | `[chams_hostile|neutral|friendly]` (`vis`, `vis_mat`, `vis_r/g/b`, `inv`, |
| 312 | `inv_mat`, `inv_r/g/b`) and `[chams_vm]` (`on`, `mat`, `r/g/b`). The GUI has | 317 | `inv_mat`, `inv_r/g/b`) and `[chams_vm]` (`on`, `mat`, `r/g/b`). The GUI has |
