瀏覽代碼

Merge pull request #18432 from WestLangley/dev_webgl_render_target

WebGLRenderTarget: pass optional mapping property to Texture constructor
WestLangley 5 年之前
父節點
當前提交
ca35751622
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/WebGLRenderTarget.js

+ 1 - 1
src/renderers/WebGLRenderTarget.js

@@ -26,7 +26,7 @@ function WebGLRenderTarget( width, height, options ) {
 
 
 	options = 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 = {};
 	this.texture.image.width = width;
 	this.texture.image.width = width;