Skip to content

Commit 79d9eca

Browse files
committed
fix anti-aliasing seams
1 parent afa3509 commit 79d9eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/ChipmunkDebugDraw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ ChipmunkDebugDrawInit(void)
126126

127127
void main(){
128128
float len = length(FRAG.uv);
129-
float fw = length(fwidth(FRAG.uv));
129+
float fw = length(vec2(dFdx(len), dFdy(len)));
130130
float mask = smoothstep(-1.0, fw - 1.0, -len);
131131

132132
float outline = 1.0 - fw;

0 commit comments

Comments
 (0)