/** * Creates a new two-dimensional texture for the purpose of offscreen * rendering. * * @see com.jme3.texture.FrameBuffer * * @param width * @param height * @param format * @param numSamples */ public Texture2D(int width, int height, int numSamples, Image.Format format){ this(new Image(format, width, height, null, ColorSpace.Linear)); getImage().setMultiSamples(numSamples); }
/** * Creates a new three-dimensional texture for the purpose of offscreen * rendering. * * @see com.jme3.texture.FrameBuffer * * @param width * @param height * @param format * @param numSamples */ public Texture3D(int width, int height, int depth, int numSamples, Image.Format format) { this(new Image(format, width, height, depth, null, ColorSpace.Linear)); getImage().setMultiSamples(numSamples); }
img.setMultiSamples(Math.min(limits.get(Limits.DepthTextureSamples), imageSamples)); } else { img.setMultiSamples(Math.min(limits.get(Limits.ColorTextureSamples), imageSamples)); img.setMultiSamples(imageSamples);
/** * Creates a new three-dimensional texture for the purpose of offscreen * rendering. * * @see com.jme3.texture.FrameBuffer * * @param width * @param height * @param format * @param numSamples */ public Texture3D(int width, int height, int depth, int numSamples, Image.Format format) { this(new Image(format, width, height, depth, null, ColorSpace.Linear)); getImage().setMultiSamples(numSamples); }
/** * Creates a new two-dimensional texture for the purpose of offscreen * rendering. * * @see com.jme3.texture.FrameBuffer * * @param width * @param height * @param format * @param numSamples */ public Texture2D(int width, int height, int numSamples, Image.Format format){ this(new Image(format, width, height, null, ColorSpace.Linear)); getImage().setMultiSamples(numSamples); }
/** * Creates a new three-dimensional texture for the purpose of offscreen * rendering. * * @see com.jme3.texture.FrameBuffer * * @param width * @param height * @param format * @param numSamples */ public Texture3D(int width, int height, int depth, int numSamples, Image.Format format) { this(new Image(format, width, height, depth, null)); getImage().setMultiSamples(numSamples); }
/** * Creates a new two-dimensional texture for the purpose of offscreen * rendering. * * @see com.jme3.texture.FrameBuffer * * @param width * @param height * @param format * @param numSamples */ public Texture2D(int width, int height, int numSamples, Image.Format format){ this(new Image(format, width, height, null)); getImage().setMultiSamples(numSamples); }
img.setMultiSamples(Math.min(limits.get(Limits.DepthTextureSamples), imageSamples)); } else { img.setMultiSamples(Math.min(limits.get(Limits.ColorTextureSamples), imageSamples)); img.setMultiSamples(imageSamples);
if (imageSamples > 1) { if (img.getFormat().isDepthFormat()) { img.setMultiSamples(Math.min(maxDepthTexSamples, imageSamples)); } else { img.setMultiSamples(Math.min(maxColorTexSamples, imageSamples)); img.setMultiSamples(imageSamples);