Browse Source

Examples: Clean up.

Mugen87 4 years ago
parent
commit
cb0c220645
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl2_rendertarget_texture2darray.html

+ 2 - 2
examples/webgl2_rendertarget_texture2darray.html

@@ -131,9 +131,9 @@
 			renderTargetTexture.format = THREE.RedFormat;
 			renderTargetTexture.type = THREE.UnsignedByteType;
 
-			const renderTarget = new THREE.WebGLRenderTarget();
+			const renderTarget = new THREE.WebGLRenderTarget( DIMENSIONS.width, DIMENSIONS.height );
+			renderTarget.depth = DIMENSIONS.depth;
 			renderTarget.setTexture( renderTargetTexture );
-			renderTarget.setSize( DIMENSIONS.width, DIMENSIONS.height, DIMENSIONS.depth );
 
 			const postProcessMaterial = new THREE.ShaderMaterial( {
 				uniforms: {