fireball/lib/renderers/WebGLRenderTargetCube.js

23 lines
582 B
JavaScript
Raw Normal View History

2018-12-25 13:59:22 +00:00
import { WebGLRenderTarget } from './WebGLRenderTarget.js';
/**
* @author alteredq / http://alteredqualia.com
*/
function WebGLRenderTargetCube( width, height, options ) {
WebGLRenderTarget.call( this, width, height, options );
this.activeCubeFace = 0; // PX 0, NX 1, PY 2, NY 3, PZ 4, NZ 5
this.activeMipMapLevel = 0;
}
WebGLRenderTargetCube.prototype = Object.create( WebGLRenderTarget.prototype );
WebGLRenderTargetCube.prototype.constructor = WebGLRenderTargetCube;
WebGLRenderTargetCube.prototype.isWebGLRenderTargetCube = true;
export { WebGLRenderTargetCube };