|
@@ -159,6 +159,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
// frustum
|
|
|
|
|
|
+ _camera = null,
|
|
|
_frustum = new Frustum(),
|
|
|
|
|
|
// clipping
|
|
@@ -1043,6 +1044,7 @@ function WebGLRenderer( parameters ) {
|
|
|
_currentGeometryProgram.wireframe = false;
|
|
|
_currentMaterialId = - 1;
|
|
|
_currentCamera = null;
|
|
|
+ _camera = camera;
|
|
|
|
|
|
// update scene graph
|
|
|
|
|
@@ -1124,12 +1126,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- // opaque pass (front-to-back order)
|
|
|
-
|
|
|
if ( opaqueObjects.length ) renderObjects( opaqueObjects, scene, camera );
|
|
|
-
|
|
|
- // transparent pass (back-to-front order)
|
|
|
-
|
|
|
if ( transparentObjects.length ) renderObjects( transparentObjects, scene, camera );
|
|
|
|
|
|
}
|
|
@@ -1154,7 +1151,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( vr.enabled ) {
|
|
|
|
|
|
- vr.submitFrame();
|
|
|
+ vr.submitFrame( scene, _camera );
|
|
|
|
|
|
}
|
|
|
|