noiceVertex.vs 250 B

12345678910111213
  1. #version 430
  2. layout (location = 0) in vec2 position;
  3. uniform float layer;
  4. uniform float height;
  5. out vec3 varPosition;
  6. void main(void) {
  7. gl_Position = vec4(position, 0.0, 1.0);
  8. varPosition = vec3(position.x, position.y + height, layer);
  9. }