aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8.1/media/opengl.psh
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-13 19:47:58 +1000
committerDavid Walter Seikel2014-01-13 19:47:58 +1000
commitf9158592e1478b2013afc7041d9ed041cf2d2f4a (patch)
treeb16e389d7988700e21b4c9741044cefa536dcbae /libraries/irrlicht-1.8.1/media/opengl.psh
parentLibraries readme updated with change markers and more of the Irrlicht changes. (diff)
downloadSledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.zip
SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.gz
SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.bz2
SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.xz
Update Irrlicht to 1.8.1. Include actual change markers this time. lol
Diffstat (limited to 'libraries/irrlicht-1.8.1/media/opengl.psh')
-rw-r--r--libraries/irrlicht-1.8.1/media/opengl.psh22
1 files changed, 22 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8.1/media/opengl.psh b/libraries/irrlicht-1.8.1/media/opengl.psh
new file mode 100644
index 0000000..9f9d03b
--- /dev/null
+++ b/libraries/irrlicht-1.8.1/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
7ATTRIB inTexCoord = fragment.texcoord; # texture coordinates
8ATTRIB inColor = fragment.color.primary; # interpolated diffuse color
9
10#Output
11OUTPUT outColor = result.color;
12
13TEMP texelColor;
14TEMP tmp;
15TXP texelColor, inTexCoord, texture, 2D;
16
17ADD tmp, inColor, inColor; # mulitply with color
18MUL texelColor, texelColor, tmp; # mulitply with color
19ADD outColor, texelColor, texelColor; # make it brighter and store result
20
21END
22