mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
optimizations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -6,5 +6,5 @@ varying vec2 textureCoords; // map texture coords
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = texture2D(texture, textureCoords) * color * opacity;
|
||||
gl_FragColor = texture2D(texture, textureCoords);
|
||||
}
|
||||
|
@@ -57,6 +57,6 @@ vec4 calcOutfitPixel()
|
||||
*/
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = calcOutfitPixel() * color * opacity;
|
||||
gl_FragColor = calcOutfitPixel();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user