opengl.psh 661 B

1234567891011121314151617181920212223
  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. #Input
  6. ATTRIB inTexCoord = fragment.texcoord; # texture coordinates
  7. ATTRIB inColor = fragment.color.primary; # interpolated diffuse color
  8. #Output
  9. OUTPUT outColor = result.color;
  10. TEMP texelColor;
  11. TEMP tmp;
  12. TXP texelColor, inTexCoord, texture, 2D;
  13. ADD tmp, inColor, inColor; # mulitply with color
  14. MUL texelColor, texelColor, tmp; # mulitply with color
  15. ADD outColor, texelColor, texelColor; # make it brighter and store result
  16. END