Explorar o código

Retain filter settings

WestLangley %!s(int64=5) %!d(string=hai) anos
pai
achega
a56e9baae2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/renderers/WebGLCubeRenderTarget.js

+ 4 - 0
src/renderers/WebGLCubeRenderTarget.js

@@ -37,6 +37,10 @@ WebGLCubeRenderTarget.prototype.fromEquirectangularTexture = function ( renderer
 	this.texture.format = texture.format;
 	this.texture.encoding = texture.encoding;
 
+	this.texture.generateMipmaps = texture.generateMipmaps;
+	this.texture.minFilter = texture.minFilter;
+	this.texture.magFilter = texture.magFilter;
+
 	const scene = new Scene();
 
 	const shader = {