optimizations

This commit is contained in:
Eduardo Bart
2012-04-05 16:08:46 -03:00
parent 49727c573f
commit 4f15da695c
10 changed files with 47 additions and 23 deletions

View File

@@ -2,11 +2,10 @@ uniform float opacity; // painter opacity
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
varying vec2 textureCoords; // map texture coords
void main()
{
vec4 outColor = texture2D(texture, textureCoords);
gl_FragColor = outColor * opacity;
gl_FragColor = texture2D(texture, textureCoords);
}

View File

@@ -6,5 +6,5 @@ varying vec2 textureCoords; // map texture coords
void main()
{
gl_FragColor = texture2D(texture, textureCoords) * color * opacity;
gl_FragColor = texture2D(texture, textureCoords);
}

View File

@@ -57,6 +57,6 @@ vec4 calcOutfitPixel()
*/
void main()
{
gl_FragColor = calcOutfitPixel() * color * opacity;
gl_FragColor = calcOutfitPixel();
}