18 lines
407 B
NASM
18 lines
407 B
NASM
TEX
|
|
temp[1].rgba = LD tex[0] temp[0].rgaa ;
|
|
|
|
TEX TEX_SEM_ACQUIRE
|
|
temp[2].rgba = LD tex[1] temp[0].rgaa ;
|
|
|
|
-- (temp[0].rrrr * (temp[2].rgba - temp[1].rgba)) + temp[1].rgba
|
|
OUT TEX_SEM_WAIT
|
|
src0.a = temp[1],
|
|
src1.a = temp[2],
|
|
srcp.a = sub,
|
|
src0.rgb = temp[1],
|
|
src1.rgb = temp[2],
|
|
src2.rgb = temp[0],
|
|
srcp.rgb = sub :
|
|
out[0].a = MAD src2.r srcp.a src0.a ,
|
|
out[0].rgb = MAD src2.rrr srcp.rgb src0.rgb ;
|