PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
simpleShaders.h File Reference
#include <string>

Go to the source code of this file.

Variables

static const char texturedVertexShader []
 
static const char texturedFragmentShader []
 
static const string colorizedVertexShader
 
static const string colorizedFragmentShader
 
static char simpleVShaderStr []
 
static char simpleFShaderStr []
 
GLubyte transparente []
 

Variable Documentation

const string colorizedFragmentShader
static
Initial value:
=
"precision mediump float; \n"
"varying vec4 v_color; \n"
"void main() \n"
"{ \n"
" gl_FragColor = v_color; \n"
"} \n"
const string colorizedVertexShader
static
Initial value:
=
"attribute vec4 position; \n"
"uniform mat4 projectionMatrix;\n"
"uniform mat4 modelViewMatrix; \n"
"uniform vec4 color; \n"
"varying vec4 v_color; \n"
"void main() \n"
"{ \n"
" gl_Position = projectionMatrix*(modelViewMatrix*position); \n"
" v_color = color; \n"
"} \n"
char simpleFShaderStr[]
static
Initial value:
=
"precision mediump float;\n"
"void main()\n"
"{\n"
" gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); \n"
"}\n"
char simpleVShaderStr[]
static
Initial value:
=
"attribute vec4 vPosition;\n"
"uniform mat4 projectionMatrix;\n"
"void main()\n"
"{\n"
"gl_Position = position; \n"
"}\n"
const char texturedFragmentShader[]
static
Initial value:
=
"precision mediump float; \n"
"varying vec2 v_textureCoordinates; \n"
"uniform sampler2D s_texture; \n"
"void main() \n"
"{ \n"
" gl_FragColor = texture2D(s_texture, v_textureCoordinates); \n"
"} \n"
const char texturedVertexShader[]
static
Initial value:
=
"attribute vec4 position; \n"
"attribute vec2 textureCoordinates; \n"
"uniform mat4 projectionMatrix;\n"
"uniform mat4 modelMatrix; \n"
"uniform mat4 viewMatrix; \n"
"varying vec2 v_textureCoordinates; \n"
"void main() \n"
"{ \n"
" gl_Position = projectionMatrix*(modelMatrix*(viewMatrix*position)); \n"
" v_textureCoordinates = textureCoordinates; \n"
"} \n"
GLubyte transparente[]
Initial value:
=
{ 128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128,
128, 0, 0, 128, 0, 128, 0, 128, 0, 0, 128, 128, 128, 128, 0, 128
}