This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/gpu/shaders/gpu_shader_2D_texture_vert.glsl
Mike Erwin 36bbdf142c OpenGL: fix new shader for Mac
Follow-up to rB4a1feaa5558ed60388fd3be41db74fbc54f2ab08
2016-09-23 18:16:45 +02:00

17 lines
303 B
GLSL

#if __VERSION__ == 120
attribute vec2 texcoord;
attribute vec3 position;
varying vec2 texture_coord;
#else
in vec2 texcoord;
in vec3 position;
out vec2 texture_coord;
#endif
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0f);
texture_coord = texcoord;
}