mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-15 17:11:24 +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
6ae47bad88
commit
d503d1ce9b
1 changed files with 3 additions and 2 deletions
|
@ -90,11 +90,12 @@ vec4 getTexel(vec2 st)
|
|||
}
|
||||
break;
|
||||
}
|
||||
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