public void toggleSmoothing() {
        if (smoothMore && useSmoothing) { // Smoothing Disabled
            useSmoothing = false;
            smoothMore = false;

        } else if (useSmoothing) { // 2 pass Smoothing
            useSmoothing = true;
            smoothMore = true;
        } else if (!smoothMore) { // 1 pass Smoothing
            useSmoothing = true;
            smoothMore = false;
        }
        if (material != null) {
            material.setBoolean("UseSmoothing", useSmoothing);
            material.setBoolean("SmoothMore", smoothMore);
        }
    }