|
@@ -159,7 +159,6 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
// frustum
|
|
|
|
|
|
- _camera = null,
|
|
|
_frustum = new Frustum(),
|
|
|
|
|
|
// clipping
|
|
@@ -1044,7 +1043,6 @@ function WebGLRenderer( parameters ) {
|
|
|
_currentGeometryProgram.wireframe = false;
|
|
|
_currentMaterialId = - 1;
|
|
|
_currentCamera = null;
|
|
|
- _camera = camera;
|
|
|
|
|
|
// update scene graph
|
|
|
|
|
@@ -1126,7 +1124,12 @@ 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 );
|
|
|
|
|
|
}
|
|
@@ -1151,7 +1154,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( vr.enabled ) {
|
|
|
|
|
|
- vr.submitFrame( scene, _camera );
|
|
|
+ vr.submitFrame();
|
|
|
|
|
|
}
|
|
|
|