|
@@ -100,8 +100,8 @@ export class PrePassRendererSceneComponent implements ISceneComponent {
|
|
this.scene._beforeCameraDrawStage.registerStep(SceneComponentConstants.STEP_BEFORECAMERADRAW_PREPASS, this, this._beforeCameraDraw);
|
|
this.scene._beforeCameraDrawStage.registerStep(SceneComponentConstants.STEP_BEFORECAMERADRAW_PREPASS, this, this._beforeCameraDraw);
|
|
this.scene._afterCameraDrawStage.registerStep(SceneComponentConstants.STEP_AFTERCAMERADRAW_PREPASS, this, this._afterCameraDraw);
|
|
this.scene._afterCameraDrawStage.registerStep(SceneComponentConstants.STEP_AFTERCAMERADRAW_PREPASS, this, this._afterCameraDraw);
|
|
this.scene._beforeClearStage.registerStep(SceneComponentConstants.STEP_BEFORECLEARSTAGE_PREPASS, this, this._beforeClearStage);
|
|
this.scene._beforeClearStage.registerStep(SceneComponentConstants.STEP_BEFORECLEARSTAGE_PREPASS, this, this._beforeClearStage);
|
|
- this.scene._beforeRenderingMeshStage.registerStep(SceneComponentConstants.STEP_BEFORECLEARSTAGE_PREPASS, this, this._beforeRenderingMeshStage);
|
|
|
|
- this.scene._afterRenderingMeshStage.registerStep(SceneComponentConstants.STEP_BEFORECLEARSTAGE_PREPASS, this, this._afterRenderingMeshStage);
|
|
|
|
|
|
+ this.scene._beforeRenderingMeshStage.registerStep(SceneComponentConstants.STEP_BEFORERENDERINGMESH_PREPASS, this, this._beforeRenderingMeshStage);
|
|
|
|
+ this.scene._afterRenderingMeshStage.registerStep(SceneComponentConstants.STEP_AFTERRENDERINGMESH_PREPASS, this, this._afterRenderingMeshStage);
|
|
}
|
|
}
|
|
|
|
|
|
private _beforeCameraDraw() {
|
|
private _beforeCameraDraw() {
|
|
@@ -136,7 +136,7 @@ export class PrePassRendererSceneComponent implements ISceneComponent {
|
|
|
|
|
|
private _afterRenderingMeshStage(mesh: AbstractMesh) {
|
|
private _afterRenderingMeshStage(mesh: AbstractMesh) {
|
|
const scene = mesh.getScene();
|
|
const scene = mesh.getScene();
|
|
-
|
|
|
|
|
|
+
|
|
if (scene.prePassRenderer) {
|
|
if (scene.prePassRenderer) {
|
|
scene.prePassRenderer.restoreAttachments();
|
|
scene.prePassRenderer.restoreAttachments();
|
|
}
|
|
}
|