BuildingFragShader.fsh 328 B

123456789101112131415
  1. uniform lowp sampler2D sTexture;
  2. uniform lowp vec4 FlatColour;
  3. varying highp vec2 vTexCoord;
  4. varying highp float vDiffuse;
  5. void main()
  6. {
  7. lowp vec4 colour = texture2D(sTexture, vTexCoord);
  8. gl_FragColor.rgb = colour.rgb * vDiffuse;
  9. //gl_FragColor.rgb = FlatColour.rgb * vDiffuse;
  10. gl_FragColor.a = 1.0;
  11. }