sceneKitVertex.glsl 305 B

12345678910111213
  1. attribute vec4 position;
  2. attribute vec2 textureCoordinate;
  3. uniform mat4 modelViewProjection;
  4. varying vec2 texCoord;
  5. void main(void) {
  6. // Pass along to the fragment shader
  7. texCoord = textureCoordinate;
  8. // output the projected position
  9. gl_Position = modelViewProjection * position;
  10. }