public void setDepth(int depth) {
        this.depth = depth;
        setUpdateNeeded();
    }
<code>setDepth</code> sets the depth value of the image. It is
typically a good idea to try to keep this as a multiple of 2. This is
used for 3d images.

@param depth
           the depth of the image.
jme3-core/src/main/java/com/jme3/texture/Image.java