Răsfoiți Sursa

WebGLMultisampleRenderTarget: Added samples to options

Mugen87 6 ani în urmă
părinte
comite
4c7ab771ab
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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 );
 	WebGLRenderTarget.call( this, width, height, options );
 
 
-	this.samples = 4;
+	options = options || {};
+
+	this.samples = options.samples !== undefined ? options.samples : 4;
 
 
 }
 }