I made you vertical setup:
/*********************************************************/
/********************** COVER SETUP **********************/
/*********************************************************/
// Set the range of covers to draw.
//
// Returns: (leftmostCover, rightmostCover)
function drawCovers(){
return new Array(-15, 15);
}
// Set the position of a point on each cover.
//
// See also coverAlign() below
function coverPosition(coverId){
var x, y, z;
x = coverId*1;
y = 0;
z = -Math.abs(coverId)*0.8;
z = (straightCos(coverId)-1)*0.9;
return new Array(y, -x, z);
}
function straightCos(x){
if (Math.abs(x) < Math.PI/2)
return Math.cos(x);
else
return Math.PI/2 - Math.abs(x);
}
// Set which point of the cover coverPosition() defines.
//
// (-1,-1) means bottom left, (0,0) means center,
// (1,1) means top right, (0, -1) means bottom center etc.
//
// Returns: (x, y)
function coverAlign(coverId){
return new Array(0, 0);
}
// Set the rotation of each cover.
//
// Returns: (angle, x, y, z) - this rotates the cover
// `angle` degrees around the axis along (x,y,z). Per
// default, the covers are parallel to the x-y-plane.
function coverRotation(coverId){
return new Array(0, 0, 1, 0);
}
// Set the the size boundaries for the cover.
//
// Preserving its aspect ratio, the cover is scaled to fit
// inside the given rectangle.
//
// Returns: (width, height)
function coverSizeLimits(coverId){
return new Array(1.1, 1);
}
/*********************************************************/
/********************* CAMERA SETUP **********************/
/*********************************************************/
// Defines how the viewport behaves when the aspect ratio
// of the window changes.
//
// Returns: Expand into (width, height)
// If this returns (0,1), the height is fixed.
// If this returns (1,0), the width is fixed.
// Can also return mixed values, i.e. (1,2) for mixed
// scaling.
function aspectBehaviour(){
return new Array(1, 0);
}
// Set the position of the camera.
function eyePos(){
return new Array(0, 0, 1.4);
}
// Set the point that the camera is looking at.
function lookAt(){
return new Array(0, 0, 0);
}
// Set where up is.
//
// This can be used to rotate the view. The returned vector
// will point upwards in the viewport.
function upVector(){
return new Array(0, 1, 0);
}
/*********************************************************/
/********************* MIRROR SETUP **********************/
/*********************************************************/
// Decide whether the mirror should be rendered.
function showMirrorPlane(){
return false;
}
// Set an arbitrary point on the mirror plane.
function mirrorPoint(){
return new Array(-0.5, 0, 0);
}
// Set the normal vector of the mirror plane.
function mirrorNormal(){
return new Array(1, 0, 0);
}