Skip to content

Commit

Permalink
Improve brightness in the shader
Browse files Browse the repository at this point in the history
  • Loading branch information
samoylovfp committed Apr 10, 2023
1 parent 8d574fa commit 6b8319c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/shaders/post.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ fn fragment(
let px_strength = abs(max(f32(x*2), 1.0) * max(f32(y*2), 1.0));
output_color += textureSample(texture, our_sampler, uv + vec2<f32>(f32(x)*blur_strength.x, f32(y)*blur_strength.x))
/px_strength
/4.0
/f32(resolution*resolution);
/12.0;
}
}

Expand Down

0 comments on commit 6b8319c

Please sign in to comment.