OpenGL ES Basic Fragment Shader help with transparency
- by Chris
I have just spent my first half hour playing with the shader language.
I have modified the basic program I have which renders the texture, to allow me to colour the texture.
varying vec2 texCoord;
uniform sampler2D texSampler;
/* Given the texture coordinates, our pixel shader grabs the corresponding
* color from the texture.
*/
void main() {
…