mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
add notes to smoothing numbers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user