Fix Texture Mode 7 shader compilation bug

This commit is contained in:
Emile Belanger 2022-02-10 20:48:39 +00:00 committed by Christoph Oelckers
parent 08b5f95e07
commit 93b62d4f15

View file

@ -537,7 +537,7 @@ void main()
#if (DEF_TEXTURE_MODE == 7)
{
float gray = grayscale(frag);
vec4 cm = (uObjectColor + gray * (uAddColor - uObjectColor)) * 2;
vec4 cm = (uObjectColor + gray * (uAddColor - uObjectColor)) * 2.0;
frag = vec4(clamp(cm.rgb, 0.0, 1.0), frag.a);
}
#endif