- !!ARBfp1.0
- # Fragment inputs
- ATTRIB inTexCoord = fragment.texcoord[0]; # First set of texture coordinates
- ATTRIB inColor = fragment.color.primary; # Diffuse interpolated color
- # Fragment outputs
- OUTPUT outColor = result.color;
- PARAM mvp[4] = { program.local[0],program.local[1],program.local[2],program.local[3] };
- PARAM lvp[4] = { program.local[4],program.local[5],program.local[6],program.local[7] };
- TEMP camColor,lightColor;
- TEMP camDepth,lightDepth;
- TXP camColor, inTexCoord, texture[0], 2D; # stores pixelcolor from cameras point of view
- TXP lightColor, inTexCoord, texture[1], 2D; # stores pixels of alpha surfaces from the light point of view
- TXP camDepth, inTexCoord, texture[2], 2D; # stores pixeldepth from cameras point of view
- TXP lightDepth, inTexCoord, texture[3], 2D; # stores pixeldepth from light point of view
- MUL outColor, camDepth, inColor; # Modulate texel color with light color
- END