Hello,
I am new in HLSL and I m trying to sort things out.
I m texturizing a triangle strip in my PixelShader to create a picture using:
float4 PixelShader(VertexOut input) : COLOR0
float4 color;
color = tex2D( ColoredTextureSampler, input.textureCoordinates.xy)*2;
return color;
The *2 makes the picture brighter. My problem is that after that I want to blur the image using a 3x3 kernel so I created another method doing:
float4 Blur(VertexOut input) : COLOR0
float4 k11 = tex2D( ColoredTextureSampler, input.textureCoordinates.xy + float2(-1,-1));
etc...
return addedStuff/9; :P
but I don't get the picture any brighter only blurred, I suppose that the input uses the normal texture that is not brightened... So how do I get it both brightened and blurred?