All pastes #741437 Raw Edit

Stuff

public text v1 · immutable
·published 2007-10-18 18:25 UTC
rendered paste body
!!ARBfp1.0

PARAM target= {0.3 , 0.3, 0.3};
PARAM unity= {1 , 1, 1};
PARAM tol= {0.2, 0.2, 0.2, 0};

TEMP pxl,tst,rst;

TEX pxl, fragment.texcoord [0], texture[0], 2D;

SUB tst, pxl, target;
ABS tst, tst;
SLT tst, tst, tol;
DP3 rst, tst,unity;
SUB rst, 2.5, rst;

KIL rst;

CMP result.color.a, rst, 0, fragment.color.a;
MOV result.color,pxl;

END