diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/studio.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/studio.cpp b/src/studio.cpp index 07ebec3..086d213 100644 --- a/src/studio.cpp +++ b/src/studio.cpp | |||
| @@ -315,18 +315,8 @@ void hkdModelExecute(void *self, const void *state, const void *info, | |||
| 315 | void *mat = style_material(style); | 315 | void *mat = style_material(style); |
| 316 | if (!mat) | 316 | if (!mat) |
| 317 | return false; | 317 | return false; |
| 318 | bool white = style == 4; | 318 | bool white = style == 4 || style == 5; |
| 319 | // Fullbright is an additive, self-illuminated version of the | ||
| 320 | // chosen colour: lift it toward white so it reads brighter than | ||
| 321 | // the plain additive style. | ||
| 322 | int brgb[4]; | ||
| 323 | const int *use_rgb = rgb; | 319 | const int *use_rgb = rgb; |
| 324 | if (style == 5) { | ||
| 325 | for (int i = 0; i < 3; i++) | ||
| 326 | brgb[i] = rgb[i] + (255 - rgb[i]) / 4; | ||
| 327 | brgb[3] = rgb[3]; | ||
| 328 | use_rgb = brgb; | ||
| 329 | } | ||
| 330 | // Additive blending vanishes against bright backgrounds (sky, | 320 | // Additive blending vanishes against bright backgrounds (sky, |
| 331 | // white walls, strong fog), which made the viewmodel disappear in | 321 | // white walls, strong fog), which made the viewmodel disappear in |
| 332 | // some places. Lay down a faint translucent base so the first-person | 322 | // some places. Lay down a faint translucent base so the first-person |
