@Deprecated
    public void setDepthTexture(Texture2D tex) {
        if (id != -1) {
            throw new UnsupportedOperationException("FrameBuffer already initialized.");
        }

        Image img = tex.getImage();
        checkSetTexture(tex, true);

        depthBuf = new RenderBuffer();
        depthBuf.slot = img.getFormat().isDepthStencilFormat() ? SLOT_DEPTH_STENCIL : SLOT_DEPTH;
        depthBuf.tex = tex;
        depthBuf.format = img.getFormat();
    }
Set the depth texture to use for this framebuffer.

@param tex The color texture to set.
@deprecated Use
{@link #setDepthTarget(com.jme3.texture.FrameBuffer.FrameBufferTextureTarget)}
jme3-core/src/main/java/com/jme3/texture/FrameBuffer.java