!!ARBfp1.0
#OPTION ARB_precision_hint_fastest;

#/*ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ*\
#	File:			Program for darkness vision
#					
#	Author:			Magnus Högdahl
#					
#	Copyright:		Starbreeze AB 2004
#					
#	History:
#
#\*____________________________________________________________________________________________*/

#-----------------------------------------
OUTPUT oCol = result.color;

ATTRIB v0 = fragment.color;
ATTRIB tc0 = fragment.texcoord[0];
ATTRIB tc1 = fragment.texcoord[1];

PARAM c0 = program.env[0];
#PARAM c1 = program.env[1];
#PARAM c2 = program.env[2];
#PARAM c3 = program.env[3];

#PARAM const_val = { 0.5, 1.0, 2.0, 4.0 };

TEMP t0;
TEMP t1;
#TEMP t2;

TEMP r0;
#TEMP Z;
#TEMP r1;
#TEMP r2;
#-----------------------------------------

TEX t0, tc0, texture[0], 2D;
TEX t1, tc1, texture[1], 2D;

MOV r0.rgb, t0;
#MUL_SAT r0.a, c0.x, t1.r;

MUL r0.a, 3, t1.r;
MUL_SAT r0.a, r0.a, c0.x;

MOV oCol, r0;

END
