|
@@ -53,7 +53,7 @@
|
|
|
var views = [
|
|
|
{
|
|
|
left: 0,
|
|
|
- top: 0,
|
|
|
+ bottom: 0,
|
|
|
width: 0.5,
|
|
|
height: 1.0,
|
|
|
background: new THREE.Color( 0.5, 0.5, 0.7 ),
|
|
@@ -68,7 +68,7 @@
|
|
|
},
|
|
|
{
|
|
|
left: 0.5,
|
|
|
- top: 0.5,
|
|
|
+ bottom: 0.5,
|
|
|
width: 0.5,
|
|
|
height: 0.5,
|
|
|
background: new THREE.Color( 0.7, 0.5, 0.5 ),
|
|
@@ -83,7 +83,7 @@
|
|
|
},
|
|
|
{
|
|
|
left: 0.5,
|
|
|
- top: 0,
|
|
|
+ bottom: 0,
|
|
|
width: 0.5,
|
|
|
height: 0.5,
|
|
|
background: new THREE.Color( 0.5, 0.7, 0.7 ),
|
|
@@ -275,12 +275,12 @@
|
|
|
view.updateCamera( camera, scene, mouseX, mouseY );
|
|
|
|
|
|
var left = Math.floor( windowWidth * view.left );
|
|
|
- var top = Math.floor( windowHeight * view.top );
|
|
|
+ var bottom = Math.floor( windowHeight * view.bottom );
|
|
|
var width = Math.floor( windowWidth * view.width );
|
|
|
var height = Math.floor( windowHeight * view.height );
|
|
|
|
|
|
- renderer.setViewport( left, top, width, height );
|
|
|
- renderer.setScissor( left, top, width, height );
|
|
|
+ renderer.setViewport( left, bottom, width, height );
|
|
|
+ renderer.setScissor( left, bottom, width, height );
|
|
|
renderer.setScissorTest( true );
|
|
|
renderer.setClearColor( view.background );
|
|
|
|