diff --git a/examples/webgl_buffergeometry_instancing_billboards.html b/examples/webgl_buffergeometry_instancing_billboards.html index 6e3cc3424431b641c0533b187c48534be74db6d2..dde2b92f3d5bf01ad6fca39a6e5c6324c7376928 100644 --- a/examples/webgl_buffergeometry_instancing_billboards.html +++ b/examples/webgl_buffergeometry_instancing_billboards.html @@ -158,7 +158,7 @@ } - geometry.addAttribute( 'translate', new THREE.InstancedBufferAttribute( translateArray, 3, 1 ) ); + geometry.addAttribute( 'translate', new THREE.InstancedBufferAttribute( translateArray, 3 ) ); material = new THREE.RawShaderMaterial( { uniforms: { diff --git a/examples/webgl_interactive_instances_gpu.html b/examples/webgl_interactive_instances_gpu.html index 63c621dae0e25ae961ba97182d4dc4ce25491974..b7acd365c13951a9ed745359015d87583e32a775 100644 --- a/examples/webgl_interactive_instances_gpu.html +++ b/examples/webgl_interactive_instances_gpu.html @@ -857,19 +857,19 @@ igeo.addAttribute( 'position', vertices ); // var matrices = new THREE.InstancedBufferAttribute( - // new Float32Array( instanceCount * 16 ), 16, 1 + // new Float32Array( instanceCount * 16 ), 16 // ); var mcol0 = new THREE.InstancedBufferAttribute( - new Float32Array( instanceCount * 3 ), 3, 1 + new Float32Array( instanceCount * 3 ), 3 ); var mcol1 = new THREE.InstancedBufferAttribute( - new Float32Array( instanceCount * 3 ), 3, 1 + new Float32Array( instanceCount * 3 ), 3 ); var mcol2 = new THREE.InstancedBufferAttribute( - new Float32Array( instanceCount * 3 ), 3, 1 + new Float32Array( instanceCount * 3 ), 3 ); var mcol3 = new THREE.InstancedBufferAttribute( - new Float32Array( instanceCount * 3 ), 3, 1 + new Float32Array( instanceCount * 3 ), 3 ); var matrix = new THREE.Matrix4(); var me = matrix.elements; @@ -899,7 +899,7 @@ }; var colors = new THREE.InstancedBufferAttribute( - new Float32Array( instanceCount * 3 ), 3, 1 + new Float32Array( instanceCount * 3 ), 3 ); for ( var i = 0, ul = colors.count; i < ul; i ++ ) { @@ -910,7 +910,7 @@ var col = new THREE.Color(); var pickingColors = new THREE.InstancedBufferAttribute( - new Float32Array( instanceCount * 3 ), 3, 1 + new Float32Array( instanceCount * 3 ), 3 ); for ( var i = 0, ul = pickingColors.count; i < ul; i ++ ) {