This reverts commit edee5a947b.
Fixes compilation error (Missing file BLI_float2.hh)
14 lines
289 B
GLSL
14 lines
289 B
GLSL
|
|
#ifndef USE_GPU_SHADER_CREATE_INFO
|
|
out vec4 uvcoordsvar;
|
|
#endif
|
|
|
|
void main()
|
|
{
|
|
int v = gl_VertexID % 3;
|
|
float x = -1.0 + float((v & 1) << 2);
|
|
float y = -1.0 + float((v & 2) << 1);
|
|
gl_Position = vec4(x, y, 1.0, 1.0);
|
|
uvcoordsvar = vec4((gl_Position.xy + 1.0) * 0.5, 0.0, 0.0);
|
|
}
|