double-hit-balls/assets/brickshader_fragment.txt
shakurov.airat 3f8caf2574 move to AS
2017-01-10 17:43:06 +05:00

15 lines
284 B
Plaintext
Executable File

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);
}