1
0
mirror of https://github.com/moparisthebest/minetest synced 2025-03-09 22:29:41 -04:00
2012-12-02 00:46:18 +02:00

18 lines
408 B
NASM

!!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