Hi !

I need help to modify a shader. Indeed, I use a modified pp_bloomblur effect in my game. It's work but I want to apply a green render to the view, like a night vision. But I don't know how to do this. I try a green transparent panel but it's not render like I want. Look this picture of cod4 , it's just the green effect I want to add:



Code:
Texture TargetMap;
sampler2D g_samSrcColor = sampler_state { texture = <TargetMap>; MipFilter = Linear;	};

float4 vecViewPort;
float4 vecSkill1;

float4 postprocessing_bloomblur( float2 Tex : TEXCOORD0 ) : COLOR0 
{
	float facBlur = vecSkill1.x/20.;
   float4 Color = tex2D( g_samSrcColor, Tex.xy);
	Color += tex2D( g_samSrcColor, Tex.xy+vecViewPort.zw*facBlur);
	Color += tex2D( g_samSrcColor, Tex.xy+vecViewPort.zw*facBlur*2);
	Color += tex2D( g_samSrcColor, Tex.xy+vecViewPort.zw*facBlur*3);
	return Color *2;
}

technique PostProcess 
{
	pass p1 
	{
		AlphaBlendEnable = false;
		VertexShader = null;
		PixelShader = compile ps_2_0 postprocessing_bloomblur();
	}
}




Leader "Mach Creation"
A7.80.1 Pro