StorageTexture.js 314 B

1234567891011121314151617181920
  1. import { Texture, LinearFilter } from 'three';
  2. class StorageTexture extends Texture {
  3. constructor( width = 1, height = 1 ) {
  4. super();
  5. this.image = { width, height };
  6. this.magFilter = LinearFilter;
  7. this.minFilter = LinearFilter;
  8. this.isStorageTexture = true;
  9. }
  10. }
  11. export default StorageTexture;