tibia-client/modules/game_shaders/item.frag

13 lines
375 B
GLSL
Raw Normal View History

2012-01-30 04:27:25 +01:00
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
2012-02-07 08:59:20 +01:00
//uniform int itemId; // item id
2012-01-30 04:27:25 +01:00
void main()
{
2012-02-07 08:59:20 +01:00
vec4 outColor = texture2D(texture, textureCoords);
gl_FragColor = outColor * opacity;
2012-01-30 04:27:25 +01:00
}