If you're looking to generate a staircase geometry using ExtrudeGeometry, there are several approaches you could take. One method involves creating a shape and defining the steps with a specific step size.
const shape = new THREE.Shape();
shape.moveTo( 0, 0 );
const numSteps = 10;
const stepSize = 10;
for ( let i = 0; i < numSteps; i ++ ) {
shape.lineTo( i * stepSize, ( i + 1 ) * stepSize );
shape.lineTo( ( i + 1 ) * stepSize, ( i + 1 ) * stepSize );
}
const extrudeSettings = { amount: 100, bevelEnabled: false };
const geometry = new THREE.ExtrudeGeometry( shape, extrudeSettings );
const material = new THREE.MeshBasicMaterial( {color: 0xffffff } );
const steps = new THREE.Mesh( geometry, material );
For a complete example utilizing webgl_geometry_extrude_shapes2, check out the link below:
http://jsfiddle.net/cc146hcx/