fragment shader: RGBA DECAL does make more sense this way

This commit is contained in:
Henrik Rydgard 2013-04-07 20:35:41 +02:00
parent 7a435824dd
commit e246ffe20c

View File

@ -165,7 +165,7 @@ void GenerateFragmentShader(char *buffer) {
case GE_TEXFUNC_MODULATE:
WRITE(p, " vec4 v = t * p%s;\n", secondary); break;
case GE_TEXFUNC_DECAL:
WRITE(p, " vec4 v = vec4((1.0 - t.a) * p.rgb + t.a * u_texenv.rgb, p.a)%s;\n", secondary); break;
WRITE(p, " vec4 v = vec4((1.0 - t.a) * p.rgb + t.rgb * t.a, p.a)%s;\n", secondary); break;
case GE_TEXFUNC_BLEND:
WRITE(p, " vec4 v = vec4((1.0 - t.rgb) * p.rgb + t.rgb * u_texenv.rgb, p.a * t.a)%s;\n", secondary); break;
case GE_TEXFUNC_REPLACE: