/*ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*\ File: Program for Darkness Vision, v5.0 Author: Magnus Högdahl Copyright: Starbreeze AB 2007 Comment: Texture0 = Screen Texture1 = Add/Mul screen \*____________________________________________________________________________________________*/ *flags { *radialbluradd 0x0001 *radialblurmul 0x0002 } *generate { *gen 0 *gen radialbluradd *gen radialblurmul } *program { *do "!!ARBfp1.0 #----------------------------------- OUTPUT oCol = result.color; ATTRIB tc0 = fragment.texcoord[0]; ATTRIB tc1 = fragment.texcoord[1]; PARAM Unused = program.env[0]; TEMP t0; TEMP t1; TEMP Result; #----------------------------------- TEX t0, tc0, texture[0], 2D; MOV Result, t0; " *if_radialbluradd " TEX t1, tc1, texture[1], 2D; ADD Result.rgb, Result, t1; " *if_radialblurmul " TEX t1, tc1, texture[1], 2D; MUL Result.rgb, Result, t1; " *end " MOV oCol, Result; END " }