NGL  6.5
The NCCA Graphics Library
ColourShaders.h File Reference
#include <string>
+ Include dependency graph for ColourShaders.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const std::string colourVertexShader
 
const std::string colourFragmentShader
 

Variable Documentation

const std::string colourFragmentShader
Initial value:
=
R"DELIM(
#version 150
uniform vec4 Colour;
out vec4 outColour;
void main ()
{
outColour = Colour;
}
)DELIM"

Definition at line 33 of file ColourShaders.h.

const std::string colourVertexShader
Initial value:
=
R"DELIM(
#version 150
uniform mat4 MVP;
// first attribute the vertex values from our VAO
in vec3 inVert;
uniform vec4 Colour;
void main(void)
{
// calculate the vertex position
gl_Position = MVP*vec4(inVert, 1.0);
}
)DELIM"

Definition at line 5 of file ColourShaders.h.