瀏覽代碼

WebGLMultisampleRenderTarget: Added samples to options

Mugen87 6 年之前
父節點
當前提交
4c7ab771ab
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/renderers/WebGLMultisampleRenderTarget.js

+ 3 - 1
src/renderers/WebGLMultisampleRenderTarget.js

@@ -9,7 +9,9 @@ function WebGLMultisampleRenderTarget( width, height, options ) {
 
 	WebGLRenderTarget.call( this, width, height, options );
 
-	this.samples = 4;
+	options = options || {};
+
+	this.samples = options.samples !== undefined ? options.samples : 4;
 
 }