summaryrefslogtreecommitdiff
path: root/examples/OpenGLWindow/Shaders/pointsVS.h
blob: dda938603aefee1ad668c8f7748203e714846f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//this file is autogenerated using stringify.bat (premake --stringify) in the build folder of this project
static const char* pointsVertexShader= \
"#version 150   \n"
"uniform mat4 ModelViewMatrix;\n"
"uniform mat4 ProjectionMatrix;\n"
"uniform vec4 colour;\n"
"in vec4 position;\n"
"in vec4 colourIn;\n"
"out vec4 colourV;\n"
"void main (void)\n"
"{\n"
"		colourV = (colour[3] == -1) ? colourIn : colour;\n"
"		gl_Position = ProjectionMatrix * ModelViewMatrix * position;\n"
"		\n"
"}\n"
;