//Author: peachykeen
//Title: Nightvision (Red) - Easy
///Author: Timeslip
//SModel: ps1.4
//Desc:
//Similar to the standard nightvision shader, but the red channel is amplified instead.
//		Based off Timeslip's shader, but far simpler.

Technique T0
{
	Pass P0
	{
		PixelShader = asm
		{
			ps.1.4				//Need shader 1.4 to perform scaler operations on the r, g and b channels
			texld r0,t0			//Sample the backbuffer
			// green ^ 4
			mul r0.g,r0.g,r0.g
			mul r0.g,r0.g,r0.g
			// blue ^ 4
			mul r0.b,r0.b,r0.b
			mul r0.b,r0.b,r0.b
			// avg blue & green
			add_d2 r0.b,r0.g,r0.b
			mov r0.g,r0.b
		};
	}
}
