aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/the_darkness_of_light/opengl_fragment.asm
blob: 8297f8ec7aae24735a2e51c6f6524761a53bcd09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
!!ARBfp1.0

#Input
ATTRIB inTexCoord = fragment.texcoord;      # texture coordinates
ATTRIB inColor = fragment.color.primary; # interpolated diffuse color

#Output
OUTPUT outColor = result.color;

TEMP texelColor;
TXP texelColor, inTexCoord, texture, 2D; 
MUL texelColor, texelColor, inColor;  # multiply with color   
SUB outColor, {1.0,1.0,1.0,1.0}, texelColor;
MOV outColor.w, 1.0;

END