RaytraceBase.vs 212 B

123456789101112
  1. in vec4 occVertex;
  2. //! Normalized pixel coordinates.
  3. out vec2 vPixel;
  4. void main (void)
  5. {
  6. vPixel = vec2 ((occVertex.x + 1.f) * 0.5f,
  7. (occVertex.y + 1.f) * 0.5f);
  8. gl_Position = occVertex;
  9. }