Newer
Older
HuangJiPC / public / static / three / src / textures / CanvasTexture.js
@zhangdeliang zhangdeliang on 21 Jun 361 bytes update
import { Texture } from './Texture.js';

class CanvasTexture extends Texture {

	constructor( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {

		super( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );

		this.isCanvasTexture = true;

		this.needsUpdate = true;

	}

}

export { CanvasTexture };