View of /trunk/bin/media/opengl.psh
Parent Directory
|
Revision Log
Revision 2 -
(download)
(annotate)
Sun Oct 26 17:08:20 2008 UTC (4 years, 6 months ago) by teravus
File size: 661 byte(s)
Sun Oct 26 17:08:20 2008 UTC (4 years, 6 months ago) by teravus
File size: 661 byte(s)
* Initial commit, moved from /gf/project/idealistviewer/scmsvn/?action=browse&path=svn%3A%2F%2Fteravus.wmcv.com%3A9001%2FIdealistViewer
!!ARBfp1.0 # part of the Irrlicht Engine Shader example. # Please note that these example shaders don't do anything really useful. # They only demonstrate that shaders can be used in Irrlicht. #Input ATTRIB inTexCoord = fragment.texcoord; # texture coordinates ATTRIB inColor = fragment.color.primary; # interpolated diffuse color #Output OUTPUT outColor = result.color; TEMP texelColor; TEMP tmp; TXP texelColor, inTexCoord, texture, 2D; ADD tmp, inColor, inColor; # mulitply with color MUL texelColor, texelColor, tmp; # mulitply with color ADD outColor, texelColor, texelColor; # make it brighter and store result END
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

