mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Add additive color before applying object colors
Based on what I saw in this video (https://youtu.be/Yx1tflavea8), the additive colors are applied before the object colors
This commit is contained in:
parent
0773e6a98e
commit
9622ca7517
1 changed files with 3 additions and 2 deletions
|
@ -111,11 +111,12 @@ vec4 getTexel(vec2 st)
|
|||
return texel;
|
||||
|
||||
}
|
||||
if (uObjectColor2.a == 0.0) texel *= uObjectColor;
|
||||
else texel *= mix(uObjectColor, uObjectColor2, gradientdist.z);
|
||||
|
||||
texel.rgb += uAddColor.rgb;
|
||||
|
||||
if (uObjectColor2.a == 0.0) texel *= uObjectColor;
|
||||
else texel *= mix(uObjectColor, uObjectColor2, gradientdist.z);
|
||||
|
||||
return desaturate(texel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue