]> git.lizzy.rs Git - irrlicht.git/blob - media/opengl.psh
Fix problem with glGenerateMipMap in GLES2
[irrlicht.git] / media / opengl.psh
1 !!ARBfp1.0\r
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
5 \r
6 #Input\r
7 ATTRIB inTexCoord = fragment.texcoord;      # texture coordinates\r
8 ATTRIB inColor = fragment.color.primary; # interpolated diffuse color\r
9 \r
10 #Output\r
11 OUTPUT outColor = result.color;\r
12 \r
13 TEMP texelColor;\r
14 TEMP tmp;\r
15 TXP texelColor, inTexCoord, texture, 2D; \r
16 \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
20 \r
21 END\r
22 \r