diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/media/opengl.psh | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/media/opengl.psh')
-rw-r--r-- | libraries/irrlicht-1.8/media/opengl.psh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/media/opengl.psh b/libraries/irrlicht-1.8/media/opengl.psh new file mode 100644 index 0000000..9f9d03b --- /dev/null +++ b/libraries/irrlicht-1.8/media/opengl.psh | |||
@@ -0,0 +1,22 @@ | |||
1 | !!ARBfp1.0 | ||
2 | # part of the Irrlicht Engine Shader example. | ||
3 | # Please note that these example shaders don't do anything really useful. | ||
4 | # They only demonstrate that shaders can be used in Irrlicht. | ||
5 | |||
6 | #Input | ||
7 | ATTRIB inTexCoord = fragment.texcoord; # texture coordinates | ||
8 | ATTRIB inColor = fragment.color.primary; # interpolated diffuse color | ||
9 | |||
10 | #Output | ||
11 | OUTPUT outColor = result.color; | ||
12 | |||
13 | TEMP texelColor; | ||
14 | TEMP tmp; | ||
15 | TXP texelColor, inTexCoord, texture, 2D; | ||
16 | |||
17 | ADD tmp, inColor, inColor; # mulitply with color | ||
18 | MUL texelColor, texelColor, tmp; # mulitply with color | ||
19 | ADD outColor, texelColor, texelColor; # make it brighter and store result | ||
20 | |||
21 | END | ||
22 | |||