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

Go to the source code of this file.

Variables

const std::string textVertexShader
 
const std::string textFragmentShader
 

Variable Documentation

const std::string textFragmentShader
Initial value:
=
R"DELIM(
#version 150
uniform sampler2D tex;
in vec2 vertUV;
out vec4 fragColour;
uniform vec3 textColour;
void main()
{
vec4 text=texture(tex,vertUV.st);
fragColour.rgb=textColour.rgb;
fragColour.a=text.a;
}
)DELIM"

Definition at line 26 of file TextShaders.h.

const std::string textVertexShader
Initial value:
=
R"DELIM(
#version 150
in vec2 inVert;
in vec2 inUV;
out vec2 vertUV;
uniform vec3 textColour;
uniform float scaleX;
uniform float scaleY;
uniform float xpos;
uniform float ypos;
void main()
{
vertUV=inUV;
gl_Position=vec4( ((xpos+inVert.x)*scaleX)-1.0,((ypos+inVert.y)*scaleY)+1.0,0.0,1.0);
}
)DELIM"

Definition at line 5 of file TextShaders.h.