Search
lxdream.org :: lxdream/src/pvr2/gl_slsrc.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/gl_slsrc.c
changeset 635:76c63aac3590
next639:162ee7614b60
author nkeynes
date Thu Feb 14 13:54:11 2008 +0000 (13 years ago)
branchlxdream-render
permissions -rw-r--r--
last change Commit render work in progress. Main changes:
* Preliminary OSMesa support
* Move the generic gl code out to pvr2/
* Implement scene data structure + reader
* Remove the 1/z adjustments
file annotate diff log raw
nkeynes@635
     1
/**
nkeynes@635
     2
 * This file is automatically generated - do not edit
nkeynes@635
     3
 */
nkeynes@635
     4
nkeynes@635
     5
const char *glsl_vertex_shader_src = "// Standard PVR2 vertex shader\n\
nkeynes@635
     6
\n\
nkeynes@635
     7
void main()\n\
nkeynes@635
     8
{\n\
nkeynes@635
     9
    gl_Position.xy = ftransform().xy;\n\
nkeynes@635
    10
    gl_Position.z = gl_Vertex.z;\n\
nkeynes@635
    11
    gl_Position.w = 1;\n\
nkeynes@635
    12
    gl_FrontColor = gl_Color;\n\
nkeynes@635
    13
    gl_FrontSecondaryColor = gl_SecondaryColor;\n\
nkeynes@635
    14
    gl_TexCoord[0] = gl_MultiTexCoord0;\n\
nkeynes@635
    15
}\n\
nkeynes@635
    16
";
nkeynes@635
    17
nkeynes@635
    18
const char *glsl_fragment_shader_src = "// Standard PVR2 fragment shader\n\
nkeynes@635
    19
\n\
nkeynes@635
    20
void main()\n\
nkeynes@635
    21
{\n\
nkeynes@635
    22
	gl_FragColor = gl_Color;\n\
nkeynes@635
    23
	gl_FragDepth = gl_FragCoord.z;\n\
nkeynes@635
    24
}";
nkeynes@635
    25
.