FragShader.fsh 319 B

1234567891011121314
  1. uniform sampler2D sTexture;
  2. varying lowp vec3 DiffuseLight;
  3. varying lowp vec3 SpecularLight;
  4. varying mediump vec2 TexCoord;
  5. void main()
  6. {
  7. lowp vec3 texColor = texture2D(sTexture, TexCoord).rgb;
  8. lowp vec3 color = (texColor * DiffuseLight) + SpecularLight;
  9. gl_FragColor = vec4(color, 1.0);
  10. }