diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 19:36:24 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 19:36:24 +0100 |
| commit | b661a8dfd2c02bea54d8581ebb35d0fb3267867c (patch) | |
| tree | 817760a933a14cc0e6446299424a017a9a1c88cf /src/hl2h.h | |
| parent | Chams: keep additive viewmodel visible on bright backgrounds (diff) | |
| download | hl2h-b661a8dfd2c02bea54d8581ebb35d0fb3267867c.tar.gz hl2h-b661a8dfd2c02bea54d8581ebb35d0fb3267867c.zip | |
Chams: per-colour alpha and a softer viewmodel additive base
- Colour picker gains an optional alpha bar (checkerboard preview, #RRGGBBAA
readout); add_color_alpha is used for the chams colours. Chams colours are
now r,g,b,a and chams_apply sets $alpha plus MATERIAL_VAR_TRANSLUCENT when
alpha < 255. Config stores vis_a / inv_a / vm a.
- The additive viewmodel base is now a faint translucent tint (alpha/8)
instead of an opaque fill, so additive/Fullbright stay see-through and the
viewmodel no longer becomes a solid blob. Fullbright whitening reduced to
25% so blue stays blue instead of turning lavender.
Diffstat (limited to '')
| -rw-r--r-- | src/hl2h.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -236,15 +236,16 @@ extern bool g_proj_fuse, g_proj_radius; | |||
| 236 | struct ChamsGroup { | 236 | struct ChamsGroup { |
| 237 | bool vis_on; | 237 | bool vis_on; |
| 238 | int vis_mat; | 238 | int vis_mat; |
| 239 | int vis_rgb[3]; | 239 | int vis_rgb[4]; // r, g, b, a (0..255) |
| 240 | bool inv_on; | 240 | bool inv_on; |
| 241 | int inv_mat; | 241 | int inv_mat; |
| 242 | int inv_rgb[3]; | 242 | int inv_rgb[4]; |
| 243 | }; | 243 | }; |
| 244 | extern ChamsGroup g_chams_hostile, g_chams_neutral, g_chams_friendly; | 244 | extern ChamsGroup g_chams_hostile, g_chams_neutral, g_chams_friendly; |
| 245 | extern bool g_chams_viewmodel; | 245 | extern bool g_chams_viewmodel; |
| 246 | extern int g_chams_vm_mat; | 246 | extern int g_chams_vm_mat; |
| 247 | extern int g_chams_vm_rgb[3];extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; | 247 | extern int g_chams_vm_rgb[4]; |
| 248 | extern bool g_tint_world_on, g_tint_sky_on, g_tint_prop_on; | ||
| 248 | extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; | 249 | extern int g_tint_world_rgb[3], g_tint_sky_rgb[3], g_tint_prop_rgb[3]; |
| 249 | extern bool g_fog_skybox, g_fog_disable; | 250 | extern bool g_fog_skybox, g_fog_disable; |
| 250 | extern int g_fog_rgb[3], g_fog_start, g_fog_end; | 251 | extern int g_fog_rgb[3], g_fog_start, g_fog_end; |
