|
@@ -22307,6 +22307,8 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ scene.onBeforeRender( _this, scene, camera, renderTarget );
|
|
|
+
|
|
|
_projScreenMatrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
|
|
|
_frustum.setFromMatrix( _projScreenMatrix );
|
|
|
|
|
@@ -22405,6 +22407,8 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
state.setPolygonOffset( false );
|
|
|
|
|
|
+ scene.onAfterRender( _this, scene, camera, renderTarget );
|
|
|
+
|
|
|
if ( vr.enabled ) {
|
|
|
|
|
|
vr.submitFrame();
|