double-hit-balls/assets/shaders/brickshader_fragment.txt

15 lines
284 B
Plaintext
Raw Normal View History

2013-01-19 21:23:44 +00:00
precision mediump float;
uniform sampler2D Texture;
uniform float Transparency;
uniform vec4 BrickColor;
varying vec2 texCoord;
void main()
{
vec4 color = BrickColor * texture2D(Texture,texCoord).rgba;
gl_FragColor = vec4(color.rgb, color.a * Transparency);
}