2 # part of the Irrlicht Engine Shader example.
\r
3 # Please note that these example shaders don't do anything really useful.
\r
4 # They only demonstrate that shaders can be used in Irrlicht.
\r
7 ATTRIB inTexCoord = fragment.texcoord; # texture coordinates
\r
8 ATTRIB inColor = fragment.color.primary; # interpolated diffuse color
\r
11 OUTPUT outColor = result.color;
\r
15 TXP texelColor, inTexCoord, texture, 2D;
\r
17 ADD tmp, inColor, inColor; # mulitply with color
\r
18 MUL texelColor, texelColor, tmp; # mulitply with color
\r
19 ADD outColor, texelColor, texelColor; # make it brighter and store result
\r