0024739: TKOpenGl - port ray-tracing from OpenCL to GLSL for better integration and...
[occt.git] / src / Shaders / RaytraceBase.vs
1 in vec4 aPosition;
2
3 //! Normalized pixel coordinates.
4 out vec2 vPixel;
5
6 void main (void)
7 {
8   vPixel = vec2 ((aPosition.x + 1.f) * 0.5f,
9                  (aPosition.y + 1.f) * 0.5f);
10                  
11   gl_Position = aPosition;
12 }