FramebufferTexture.js 436 B

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