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
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2012-02-02 17:37:52 +01:00
|
|
|
gl_FragColor = texture2D(texture, textureCoords) * opacity;
|
2012-01-30 04:27:25 +01:00
|
|
|
}
|