fix draw of uicreature

This commit is contained in:
Eduardo Bart
2012-02-07 05:59:20 -02:00
parent 0b220e2e88
commit d6ade5a8e0
4 changed files with 11 additions and 5 deletions

View File

@@ -3,8 +3,10 @@ uniform vec4 color; // painter color
uniform float time; // time in seconds since shader linkage
uniform sampler2D texture; // map texture
varying vec2 textureCoords; // map texture coords
//uniform int itemId; // item id
void main()
{
gl_FragColor = texture2D(texture, textureCoords) * opacity;
vec4 outColor = texture2D(texture, textureCoords);
gl_FragColor = outColor * opacity;
}