21 lines
		
	
	
		
			314 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			314 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;
 |