sceneKitFragment.glsl 284 B

12345678910
  1. precision highp float;
  2. uniform sampler2D yourTexture;
  3. varying vec2 texCoord;
  4. void main(void) {
  5. vec4 color = texture2D(yourTexture, vec2(texCoord.x, 1.0 - texCoord.y));
  6. //gl_FragColor = vec4(color.b, color.g, color.r, color.a);
  7. gl_FragColor = vec4(1.0, 0.0, 0.0, 0.2);
  8. }