nuclear@7: #ifdef GL_ES nuclear@7: precision mediump float; nuclear@7: #endif nuclear@7: nuclear@7: uniform sampler2D tex; nuclear@7: uniform vec4 ucolor; nuclear@7: nuclear@7: //varying vec4 vcolor; nuclear@7: varying vec2 vtexcoord; nuclear@7: nuclear@7: void main() nuclear@7: { nuclear@7: vec4 texel = texture2D(tex, vtexcoord); nuclear@7: gl_FragColor = vec4(ucolor.xyz, texel.a * ucolor.a); nuclear@7: }