glstuff

experiments with opengl2/ogles2/sdl
git clone http://frotz.net/git/glstuff.git
Log | Files | Refs

test5.fs (215B)


      1 
      2 uniform sampler2D uTexture;
      3 varying vec2 vTexCoord;
      4 varying float vDiffuse;
      5 
      6 void main() {
      7 	//vec4 c = vec4(1.0, 0.0, 0.0, 1.0);
      8 	vec4 c = texture2D(uTexture, vTexCoord);
      9 	gl_FragColor = c * 0.25 + c * vDiffuse;
     10 }