You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
313 B
JavaScript
20 lines
313 B
JavaScript
import { Texture, LinearFilter } from 'three';
|
|
|
|
class StorageTexture extends Texture {
|
|
|
|
constructor( width = 1, height = 1 ) {
|
|
|
|
super();
|
|
|
|
this.image = { width, height };
|
|
|
|
this.magFilter = LinearFilter;
|
|
this.minFilter = LinearFilter;
|
|
|
|
this.isStorageTexture = true;
|
|
|
|
}
|
|
}
|
|
|
|
export default StorageTexture;
|