mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-23 05:57:19 +00:00
3e021f3a6b
This is in preperation of cmake options to enable/disable various functionallity.
22 lines
373 B
GLSL
22 lines
373 B
GLSL
#version 300 es
|
|
|
|
layout(location = 0) in vec3 vertexPosition_modelspace;
|
|
layout(location = 1) in vec2 vertexUV;
|
|
|
|
uniform vec2 screen;
|
|
uniform vec2 size;
|
|
uniform vec4 color;
|
|
|
|
out highp vec2 uv;
|
|
out highp vec4 c;
|
|
|
|
void main()
|
|
{
|
|
gl_Position.xyz = vertexPosition_modelspace;
|
|
gl_Position.w = 1.0;
|
|
gl_Position.xy *= screen.xy * size.xy;
|
|
|
|
uv = vertexUV;
|
|
c = color;
|
|
}
|