BaseFragShader.fsh 297 B

123456789101112131415
  1. /*
  2. Simple fragment shader:
  3. - Single texturing modulated with vertex lighting
  4. */
  5. uniform sampler2D sTexture;
  6. varying lowp float LightIntensity;
  7. varying mediump vec2 TexCoord;
  8. void main()
  9. {
  10. gl_FragColor = vec4(texture2D(sTexture, TexCoord).rgb * LightIntensity, 1.0);
  11. }