Kaynağa Gözat

Pass optional mapping property to Texture constructor

WestLangley 5 yıl önce
ebeveyn
işleme
3617f2c809
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/renderers/WebGLRenderTarget.js

+ 1 - 1
src/renderers/WebGLRenderTarget.js

@@ -26,7 +26,7 @@ function WebGLRenderTarget( width, height, options ) {
 
 	options = options || {};
 
-	this.texture = new Texture( undefined, undefined, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding );
+	this.texture = new Texture( undefined, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.encoding );
 
 	this.texture.image = {};
 	this.texture.image.width = width;