Explorar el Código

Make copyTextureToTexture generate mipmaps if needed

Fixes #14423
Frank Olivier hace 5 años
padre
commit
807aca8f2d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/renderers/WebGLRenderer.js

+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -2820,6 +2820,8 @@ function WebGLRenderer( parameters ) {
 
 		}
 
+		if (dstTexture.generateMipmaps) _gl.generateMipmap( _gl.TEXTURE_2D );
+
 		state.unbindTexture();
 
 	};