NGL  6.5
The NCCA Graphics Library
ColourShaders.h
Go to the documentation of this file.
1 #ifndef COLOURSHADERS_H_
2 #define COLOURSHADERS_H_
3 #include <string>
4 
6 R"DELIM(
7 #version 150
8 
11 
13 uniform mat4 MVP;
14 
15 // first attribute the vertex values from our VAO
16 in vec3 inVert;
18 uniform vec4 Colour;
19 
20 void main(void)
21 {
22 
23  // calculate the vertex position
24  gl_Position = MVP*vec4(inVert, 1.0);
25 
26 }
27 
28 )DELIM";
29 
30 
31 
32 
34 R"DELIM(
35 #version 150
39 uniform vec4 Colour;
40 out vec4 outColour;
41 
42 void main ()
43 {
44  outColour = Colour;
45 }
46 
47 
48 )DELIM";
49 
50 #endif
51 
const std::string colourFragmentShader
Definition: ColourShaders.h:33
GLsizei const GLchar *const * string
Definition: glew.h:1847
const std::string colourVertexShader
Definition: ColourShaders.h:5