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