Search
lxdream.org :: lxdream/src/pvr2/gl_slsrc.c :: diff
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
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/pvr2/gl_slsrc.c Thu Feb 14 13:54:11 2008 +0000
1.3 @@ -0,0 +1,25 @@
1.4 +/**
1.5 + * This file is automatically generated - do not edit
1.6 + */
1.7 +
1.8 +const char *glsl_vertex_shader_src = "// Standard PVR2 vertex shader\n\
1.9 +\n\
1.10 +void main()\n\
1.11 +{\n\
1.12 + gl_Position.xy = ftransform().xy;\n\
1.13 + gl_Position.z = gl_Vertex.z;\n\
1.14 + gl_Position.w = 1;\n\
1.15 + gl_FrontColor = gl_Color;\n\
1.16 + gl_FrontSecondaryColor = gl_SecondaryColor;\n\
1.17 + gl_TexCoord[0] = gl_MultiTexCoord0;\n\
1.18 +}\n\
1.19 +";
1.20 +
1.21 +const char *glsl_fragment_shader_src = "// Standard PVR2 fragment shader\n\
1.22 +\n\
1.23 +void main()\n\
1.24 +{\n\
1.25 + gl_FragColor = gl_Color;\n\
1.26 + gl_FragDepth = gl_FragCoord.z;\n\
1.27 +}";
1.28 +
.