mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-03-12 03:52:29 +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;
|
return texel;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (uObjectColor2.a == 0.0) texel *= uObjectColor;
|
|
||||||
else texel *= mix(uObjectColor, uObjectColor2, gradientdist.z);
|
|
||||||
|
|
||||||
texel.rgb += uAddColor.rgb;
|
texel.rgb += uAddColor.rgb;
|
||||||
|
|
||||||
|
if (uObjectColor2.a == 0.0) texel *= uObjectColor;
|
||||||
|
else texel *= mix(uObjectColor, uObjectColor2, gradientdist.z);
|
||||||
|
|
||||||
return desaturate(texel);
|
return desaturate(texel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue