| 1 |
////////////////////////////////////////////////////////////////////// |
| 2 |
// |
| 3 |
// No-op shader for rendering a fullscreen quad within the solid pipeline |
| 4 |
// |
| 5 |
////////////////////////////////////////////////////////////////////// |
| 6 |
|
| 7 |
// |
| 8 |
// Input |
| 9 |
// |
| 10 |
|
| 11 |
// input coordinates |
| 12 |
#version 400 |
| 13 |
precision highp float; |
| 14 |
|
| 15 |
in vec3 inXYZ; |
| 16 |
|
| 17 |
// |
| 18 |
// Output |
| 19 |
// |
| 20 |
|
| 21 |
// texture coordinates |
| 22 |
out vec2 UV; |
| 23 |
|
| 24 |
void main() |
| 25 |
{ |
| 26 |
gl_Position = vec4(inXYZ.xyz, 1.0); |
| 27 |
UV = inXYZ.xy * vec2(0.5, 0.5) + vec2(0.5, 0.5); |
| 28 |
} |