|
@@ -269,7 +269,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( renderTarget.isWebGLRenderTargetCube ) {
|
|
|
+ if ( renderTarget.isWebGLCubeRenderTarget ) {
|
|
|
|
|
|
for ( var i = 0; i < 6; i ++ ) {
|
|
|
|
|
@@ -903,7 +903,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
// Setup resources for a Depth Texture for a FBO (needs an extension)
|
|
|
function setupDepthTexture( framebuffer, renderTarget ) {
|
|
|
|
|
|
- var isCube = ( renderTarget && renderTarget.isWebGLRenderTargetCube );
|
|
|
+ var isCube = ( renderTarget && renderTarget.isWebGLCubeRenderTarget );
|
|
|
if ( isCube ) throw new Error( 'Depth Texture with cube render targets is not supported' );
|
|
|
|
|
|
_gl.bindFramebuffer( _gl.FRAMEBUFFER, framebuffer );
|
|
@@ -950,7 +950,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
var renderTargetProperties = properties.get( renderTarget );
|
|
|
|
|
|
- var isCube = ( renderTarget.isWebGLRenderTargetCube === true );
|
|
|
+ var isCube = ( renderTarget.isWebGLCubeRenderTarget === true );
|
|
|
|
|
|
if ( renderTarget.depthTexture ) {
|
|
|
|
|
@@ -998,7 +998,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
info.memory.textures ++;
|
|
|
|
|
|
- var isCube = ( renderTarget.isWebGLRenderTargetCube === true );
|
|
|
+ var isCube = ( renderTarget.isWebGLCubeRenderTarget === true );
|
|
|
var isMultisample = ( renderTarget.isWebGLMultisampleRenderTarget === true );
|
|
|
var isMultiview = ( renderTarget.isWebGLMultiviewRenderTarget === true );
|
|
|
var supportsMips = isPowerOfTwo( renderTarget ) || isWebGL2;
|
|
@@ -1154,7 +1154,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
if ( textureNeedsGenerateMipmaps( texture, supportsMips ) ) {
|
|
|
|
|
|
- var target = renderTarget.isWebGLRenderTargetCube ? _gl.TEXTURE_CUBE_MAP : _gl.TEXTURE_2D;
|
|
|
+ var target = renderTarget.isWebGLCubeRenderTarget ? _gl.TEXTURE_CUBE_MAP : _gl.TEXTURE_2D;
|
|
|
var webglTexture = properties.get( texture ).__webglTexture;
|
|
|
|
|
|
state.bindTexture( target, webglTexture );
|
|
@@ -1243,7 +1243,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
function safeSetTextureCube( texture, slot ) {
|
|
|
|
|
|
- if ( texture && texture.isWebGLRenderTargetCube ) {
|
|
|
+ if ( texture && texture.isWebGLCubeRenderTarget ) {
|
|
|
|
|
|
if ( warnedTextureCube === false ) {
|
|
|
|
|
@@ -1256,7 +1256,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
}
|
|
|
|
|
|
- // currently relying on the fact that WebGLRenderTargetCube.texture is a Texture and NOT a CubeTexture
|
|
|
+ // currently relying on the fact that WebGLCubeRenderTarget.texture is a Texture and NOT a CubeTexture
|
|
|
// TODO: unify these code paths
|
|
|
if ( ( texture && texture.isCubeTexture ) ||
|
|
|
( Array.isArray( texture.image ) && texture.image.length === 6 ) ) {
|
|
@@ -1268,7 +1268,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- // assumed: texture property of THREE.WebGLRenderTargetCube
|
|
|
+ // assumed: texture property of THREE.WebGLCubeRenderTarget
|
|
|
setTextureCubeDynamic( texture, slot );
|
|
|
|
|
|
}
|