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

class FramebufferTexture extends Texture {

	constructor( width, height, format ) {

		super( { width, height } );

		this.isFramebufferTexture = true;

		this.format = format;

		this.magFilter = NearestFilter;
		this.minFilter = NearestFilter;

		this.generateMipmaps = false;

		this.needsUpdate = true;

	}

}

export { FramebufferTexture };