@Deprecated
    public void addColorTexture(TextureArray tex, int layer) {
        if (id != -1) {
            throw new UnsupportedOperationException("FrameBuffer already initialized.");
        }

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

        RenderBuffer colorBuf = new RenderBuffer();
        colorBuf.slot = colorBufs.size();
        colorBuf.tex = tex;
        colorBuf.format = img.getFormat();
        colorBuf.layer = layer;

        colorBufs.add(colorBuf);
    }
Add a color texture array to use for this framebuffer.
If MRT is enabled, then each subsequently added texture can be
rendered to through a shader that writes to the array <code>gl_FragData</code>.
If MRT is not enabled, then the index set with {@link FrameBuffer#setTargetIndex(int) }
is rendered to by the shader.

@param tex The texture array to add.
@param layer (default=-1)
@deprecated Use addColorTarget
jme3-core/src/main/java/com/jme3/texture/FrameBuffer.java