/** * Set the color texture to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture } and adds this texture as the * only target. * * @param tex The color texture to set. */ public void setColorTexture(Texture2D tex){ clearColorTargets(); addColorTexture(tex); }
/** * Set the color texture array to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture } and adds this texture as the * only target. * * @param tex The color texture array to set. */ public void setColorTexture(TextureArray tex, int layer){ clearColorTargets(); addColorTexture(tex, layer); }
/** * Set the color texture to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture } and adds this texture as the * only target. * * @param tex The cube-map texture to set. * @param face The face of the cube-map to render to. */ public void setColorTexture(TextureCubeMap tex, TextureCubeMap.Face face) { clearColorTargets(); addColorTexture(tex, face); }
/** * Set the color texture to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture(com.jme3.texture.Texture2D) } * and adds this texture as the only target. * * @param tex The color texture to set. */ public void setColorTexture(Texture2D tex){ clearColorTargets(); addColorTexture(tex); }
/** * Set the color texture to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture } and adds this texture as the * only target. * * @param tex The color texture to set. */ public void setColorTexture(Texture2D tex){ clearColorTargets(); addColorTexture(tex); }
/** * Set the color texture array to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture } and adds this texture as the * only target. * * @param tex The color texture array to set. */ public void setColorTexture(TextureArray tex, int layer){ clearColorTargets(); addColorTexture(tex, layer); }
/** * Set the color texture to use for this framebuffer. * This automatically clears all existing textures added previously * with {@link FrameBuffer#addColorTexture } and adds this texture as the * only target. * * @param tex The cube-map texture to set. * @param face The face of the cube-map to render to. */ public void setColorTexture(TextureCubeMap tex, TextureCubeMap.Face face) { clearColorTargets(); addColorTexture(tex, face); }