diff options
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_fullscreen_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_fullscreen_vert.glsl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_fullscreen_vert.glsl b/source/blender/gpu/shaders/gpu_shader_fullscreen_vert.glsl new file mode 100644 index 00000000000..cf2d28343cc --- /dev/null +++ b/source/blender/gpu/shaders/gpu_shader_fullscreen_vert.glsl @@ -0,0 +1,16 @@ + +#if __VERSION__ == 120 + attribute vec2 pos; + attribute vec2 uvs; + varying vec4 uvcoordsvar; +#else + in vec2 pos; + in vec2 uvs; + out vec4 uvcoordsvar; +#endif + +void main() +{ + uvcoordsvar = vec4(uvs, 0.0, 0.0); + gl_Position = vec4(pos, 0.0, 1.0); +} |