mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- fixed shade interpolation.
This commit is contained in:
parent
82f6e2edb0
commit
971d8c7b8d
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void main()
|
||||||
colorIndex = c_basepalOffset + c_basepalScale*colorIndex; // this is for compensating roundoff errors.
|
colorIndex = c_basepalOffset + c_basepalScale*colorIndex; // this is for compensating roundoff errors.
|
||||||
vec4 palettedColorNext = texture2D(s_palette, vec2(colorIndex, c_zero));
|
vec4 palettedColorNext = texture2D(s_palette, vec2(colorIndex, c_zero));
|
||||||
float shadeFrac = mod(shade, 1.0);
|
float shadeFrac = mod(shade, 1.0);
|
||||||
palettedColor.rgb = mix(palettedColorNext.rgb, palettedColor.rgb, shadeFrac);
|
palettedColor.rgb = mix(palettedColor.rgb, palettedColorNext.rgb, shadeFrac);
|
||||||
}
|
}
|
||||||
|
|
||||||
fullbright = palettedColor.a; // This only gets set for paletted rendering.
|
fullbright = palettedColor.a; // This only gets set for paletted rendering.
|
||||||
|
|
Loading…
Reference in a new issue