FramebufferTexture.js 403 B

1234567891011121314151617181920212223
  1. import { Texture } from './Texture.js';
  2. import { NearestFilter } from '../constants.js';
  3. class FramebufferTexture extends Texture {
  4. constructor( width, height ) {
  5. super( { width, height } );
  6. this.isFramebufferTexture = true;
  7. this.magFilter = NearestFilter;
  8. this.minFilter = NearestFilter;
  9. this.generateMipmaps = false;
  10. this.needsUpdate = true;
  11. }
  12. }
  13. export { FramebufferTexture };