stdshader.h File Reference

Defines the shaders initially set during application startup. More...

Go to the source code of this file.

Defines

#define INITIAL_VERTEX_SHADER_SOURCE
 Initial vertex shader code.
#define INITIAL_GEOMETRY_SHADER_SOURCE
 Initial geometry shadre source.
#define INITIAL_FRAGMENT_SHADER_SOURCE
 Initial fragment shader code.


Detailed Description

Defines the shaders initially set during application startup.


Define Documentation

#define INITIAL_FRAGMENT_SHADER_SOURCE

Value:

"// simple fragment shader\n" \
    "\n" \
    "// 'time' contains seconds since the program was linked.\n" \
    "uniform float time;\n" \
    "\n" \
    "void main()\n" \
    "{\n" \
    "   gl_FragColor = gl_Color;\n" \
    "}\n"
Initial fragment shader code.

#define INITIAL_GEOMETRY_SHADER_SOURCE

Value:

"// simple geometry shader\n" \
    "\n" \
    "// these lines enable the geometry shader support.\n" \
    "#version 120\n" \
    "#extension GL_EXT_geometry_shader4 : enable\n" \
    "\n" \
    "void main( void )\n" \
    "{\n" \
    "\tfor( int i = 0 ; i < gl_VerticesIn ; i++ )\n" \
    "\t{\n" \
    "\t\tgl_FrontColor  = gl_FrontColorIn[ i ];\n" \
    "\t\tgl_Position    = gl_PositionIn  [ i ];\n" \
    "\t\tgl_TexCoord[0] = gl_TexCoordIn  [ i ][ 0 ];\n" \
    "\t\tEmitVertex();\n" \
    "\t}\n" \
    "}\n"
Initial geometry shadre source.

#define INITIAL_VERTEX_SHADER_SOURCE

Value:

"// simple vertex shader\n" \
    "\n" \
    "void main()\n" \
    "{\n" \
    "\tgl_Position    = gl_ModelViewProjectionMatrix * gl_Vertex;\n" \
    "\tgl_FrontColor  = gl_Color;\n" \
    "\tgl_TexCoord[0] = gl_MultiTexCoord0;\n" \
    "}\n"
Initial vertex shader code.


Generated on Sun Mar 2 17:12:31 2008 for Shader Maker by  doxygen 1.5.4