Files
oboe/rsrc/remove-bg/apply-alpha.fx
Celtic Minstrel e864d9f7eb Replace living statue and crystal soul graphics with versions that don't have a background
- Also included is details on how this was done, in case someone else can improve on it.
- Living statue attack graphic is derived from Exile III.
2014-12-17 11:39:07 -05:00

19 lines
262 B
HLSL

aval=u[1]*255;
bval=u[2]*255;
i==21&&j==8 ? debug(aval) : 1;
i==21&&j==8 ? debug(bval) : 1;
dist=bval-aval;
i==21&&j==8 ? debug(dist) : 1;
op=u[0].p{i,j}.a;
i==21&&j==8 ? debug(op) : 1;
mdist=op==0 ? 0 : dist/op;
i==21&&j==8 ? debug(mdist) : 1;
mdist/255