/*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*\ File: Author: Anders Ekermo Copyright: Starbreeze AB 2007 History: \*____________________________________________________________________________________________*/ *flags { } *generate { *gen 0 } *program { *do0 "!!ARBfp1.0 #----------------------------------------- # Texture0 = Input texture #----------------------------------------- # TexCoord0 = Mapping tex coord #----------------------------------------- OUTPUT oCol = result.color; ATTRIB MappingTexCoord = fragment.texcoord[0]; PARAM whdim = program.env[0]; TEMP r0; @TEMP16 r1; @TEMP16 t0; #----------------------------------------- # Fetch Textures # Top-left MAD r0, whdim, {-1.0, -1.0, 0.0, 0.0}, MappingTexCoord; TEX r1, r0, texture[0], 2D; # Top-right MAD r0, whdim, { 1.0, -1.0, 0.0, 0.0}, MappingTexCoord; TEX t0, r0, texture[0], 2D; ADD r1, r1, t0; # Bottom-right MAD r0, whdim, { 1.0, 1.0, 0.0, 0.0}, MappingTexCoord; TEX t0, r0, texture[0], 2D; ADD r1, r1, t0; # Top-right MAD r0, whdim, {-1.0, 1.0, 0.0, 0.0}, MappingTexCoord; TEX t0, r0, texture[0], 2D; ADD r1, r1, t0; MUL oCol, r1, 0.25; END " }