Explorar o código

fix depth sensing (#31831)

Rik Cabanier hai 4 meses
pai
achega
839287d882
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/renderers/webgl/WebGLTextures.js

+ 4 - 0
src/renderers/webgl/WebGLTextures.js

@@ -554,6 +554,10 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 			uploadTexture( textureProperties, texture, slot );
 			return;
 
+		} else if ( texture.isExternalTexture ) {
+
+			textureProperties.__webglTexture = texture.sourceTexture ? texture.sourceTexture : null;
+
 		}
 
 		state.bindTexture( _gl.TEXTURE_2D_ARRAY, textureProperties.__webglTexture, _gl.TEXTURE0 + slot );

粤ICP备19079148号