Skip to content

Commit

Permalink
Make use of bilinear filtering in SSAA
Browse files Browse the repository at this point in the history
  • Loading branch information
x2048 committed May 12, 2023
1 parent b6d4121 commit 7344f35
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/shaders/second_stage/opengl_fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ void main(void)
{
vec2 uv = varTexCoord.st;
#ifdef ENABLE_SSAA
vec4 color = 0.25 * (
texture2D(rendered, uv + vec2(-1., -1.) * 0.25 * texelSize0).rgba +
texture2D(rendered, uv + vec2(1., -1.) * 0.25 * texelSize0).rgba +
texture2D(rendered, uv + vec2(-1., 1.) * 0.25 * texelSize0).rgba +
texture2D(rendered, uv + vec2(1., 1.) * 0.25 * texelSize0).rgba);
vec4 color = texture2D(rendered, uv + texelSize0 * 1.).rgba;
#else
vec4 color = texture2D(rendered, uv).rgba;
#endif
Expand Down

0 comments on commit 7344f35

Please sign in to comment.