Best way to filter for a bloom effect

Started by
10 comments, last by pachesantiago 11 years, 6 months ago
hy. im using this to in my bloom shader. is simple and it works really well


float4 color = tex2D( srcTex, IN.uv );
color = (-color + (pow(tex2D( srcTex, IN.uv ),Power) * Scale) )/Bias;
return color;

here's a screenshot using scale = 1.83, power = 4 and bias = 0.27
WXed6.jpg
PS: this is HLSL, but i think it should be really similar
Advertisement

hy. im using this to in my bloom shader. is simple and it works really well


float4 color = tex2D( srcTex, IN.uv );
color = (-color + (pow(tex2D( srcTex, IN.uv ),Power) * Scale) )/Bias;
return color;

here's a screenshot using scale = 1.83, power = 4 and bias = 0.27
WXed6.jpg
PS: this is HLSL, but i think it should be really similar

Sorry, didnt mention that the grayscale is another shader, is not part of the "bright pass"
Using colors:
21Oys.png

This topic is closed to new replies.

Advertisement