first commit
This commit is contained in:
22
web-app/node_modules/three/src/textures/DataTexture.js
generated
vendored
Normal file
22
web-app/node_modules/three/src/textures/DataTexture.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Texture } from './Texture.js';
|
||||
import { NearestFilter } from '../constants.js';
|
||||
|
||||
class DataTexture extends Texture {
|
||||
|
||||
constructor( data = null, width = 1, height = 1, format, type, mapping, wrapS, wrapT, magFilter = NearestFilter, minFilter = NearestFilter, anisotropy, colorSpace ) {
|
||||
|
||||
super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace );
|
||||
|
||||
this.isDataTexture = true;
|
||||
|
||||
this.image = { data: data, width: width, height: height };
|
||||
|
||||
this.generateMipmaps = false;
|
||||
this.flipY = false;
|
||||
this.unpackAlignment = 1;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export { DataTexture };
|
||||
Reference in New Issue
Block a user