private void capPassesToSize(int w, int h) {
        int limit = Math.min(w, h);
        for (int i = 0; i < numSamplingPasses; i++) {
            limit = limit >> 1;
            if (limit <= 2) {
                numSamplingPasses = i;
                logger.log(Level.INFO, "Number of sampling passes capped at {0} due to texture size.", i);
                break;
            }
        }
    }
Caps the number of sampling passes so that texture size does
not go below 1 on any axis.
<p>
A message will be logged if the number of sampling passes is changed.

@param w texture width
@param h texture height
jme3-effects/src/main/java/com/jme3/post/filters/SoftBloomFilter.java