From cc10ea32562faf89a2407b4e29a84aaa48c1e30b Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Tue, 9 Jun 2015 12:06:16 -0400 Subject: [PATCH] add notes to smoothing numbers --- core/src/processing/opengl/PGL.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 9bcd56ea7..4a9cca21b 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -359,10 +359,13 @@ public abstract class PGL { static protected int smoothToSamples(int smooth) { if (smooth == 0) { + // smooth(0) is noSmooth(), which is 1x sampling return 1; } else if (smooth == 1) { + // smooth(1) means "default smoothing", which is 2x for OpenGL return 2; } else { + // smooth(N) can be used for 4x, 8x, etc return smooth; } }