Skip to content

Commit

Permalink
fix anti-aliasing seams
Browse files Browse the repository at this point in the history
  • Loading branch information
slembcke committed Mar 8, 2023
1 parent afa3509 commit 79d9eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/ChipmunkDebugDraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ ChipmunkDebugDrawInit(void)

void main(){
float len = length(FRAG.uv);
float fw = length(fwidth(FRAG.uv));
float fw = length(vec2(dFdx(len), dFdy(len)));
float mask = smoothstep(-1.0, fw - 1.0, -len);

float outline = 1.0 - fw;
Expand Down

0 comments on commit 79d9eca

Please sign in to comment.