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.
This commit is contained in:
19
rsrc/remove-bg/apply-alpha.fx
Normal file
19
rsrc/remove-bg/apply-alpha.fx
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
Reference in New Issue
Block a user