Explorar o código

Examples: Clean up.

Mugen87 %!s(int64=4) %!d(string=hai) anos
pai
achega
cb0c220645
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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: {