|
@@ -862,19 +862,6 @@
|
|
* Gets the current postprocess manager
|
|
* Gets the current postprocess manager
|
|
*/
|
|
*/
|
|
public postProcessManager: PostProcessManager;
|
|
public postProcessManager: PostProcessManager;
|
|
- private _postProcessRenderPipelineManager: PostProcessRenderPipelineManager
|
|
|
|
- /**
|
|
|
|
- * Gets the postprocess render pipeline manager
|
|
|
|
- * @see http://doc.babylonjs.com/how_to/how_to_use_postprocessrenderpipeline
|
|
|
|
- * @see http://doc.babylonjs.com/how_to/using_default_rendering_pipeline
|
|
|
|
- */
|
|
|
|
- public get postProcessRenderPipelineManager(): PostProcessRenderPipelineManager {
|
|
|
|
- if (!this._postProcessRenderPipelineManager) {
|
|
|
|
- this._postProcessRenderPipelineManager = new PostProcessRenderPipelineManager();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return this._postProcessRenderPipelineManager;
|
|
|
|
- }
|
|
|
|
|
|
|
|
// Customs render targets
|
|
// Customs render targets
|
|
/**
|
|
/**
|
|
@@ -1195,6 +1182,11 @@
|
|
* Defines the actions happening just after the active camera has been drawn.
|
|
* Defines the actions happening just after the active camera has been drawn.
|
|
*/
|
|
*/
|
|
public _afterCameraDrawStage = Stage.Create<CameraStageAction>();
|
|
public _afterCameraDrawStage = Stage.Create<CameraStageAction>();
|
|
|
|
+ /**
|
|
|
|
+ * @hidden
|
|
|
|
+ * Defines the actions happening when Geometries are rebuilding.
|
|
|
|
+ */
|
|
|
|
+ public _rebuildGeometryStage = Stage.Create<SimpleStageAction>();
|
|
|
|
|
|
/**
|
|
/**
|
|
* Creates a new Scene
|
|
* Creates a new Scene
|
|
@@ -4667,11 +4659,6 @@
|
|
step.action(this._renderTargets);
|
|
step.action(this._renderTargets);
|
|
}
|
|
}
|
|
|
|
|
|
- // RenderPipeline
|
|
|
|
- if (this._postProcessRenderPipelineManager) {
|
|
|
|
- this._postProcessRenderPipelineManager.update();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// Multi-cameras?
|
|
// Multi-cameras?
|
|
if (this.activeCameras.length > 0) {
|
|
if (this.activeCameras.length > 0) {
|
|
for (var cameraIndex = 0; cameraIndex < this.activeCameras.length; cameraIndex++) {
|
|
for (var cameraIndex = 0; cameraIndex < this.activeCameras.length; cameraIndex++) {
|
|
@@ -4895,6 +4882,7 @@
|
|
this._afterCameraDrawStage.clear();
|
|
this._afterCameraDrawStage.clear();
|
|
this._beforeCameraUpdateStage.clear();
|
|
this._beforeCameraUpdateStage.clear();
|
|
this._gatherRenderTargetsStage.clear();
|
|
this._gatherRenderTargetsStage.clear();
|
|
|
|
+ this._rebuildGeometryStage.clear();
|
|
for (let component of this._components) {
|
|
for (let component of this._components) {
|
|
component.dispose();
|
|
component.dispose();
|
|
}
|
|
}
|
|
@@ -5043,10 +5031,6 @@
|
|
// Post-processes
|
|
// Post-processes
|
|
this.postProcessManager.dispose();
|
|
this.postProcessManager.dispose();
|
|
|
|
|
|
- if (this._postProcessRenderPipelineManager) {
|
|
|
|
- this._postProcessRenderPipelineManager.dispose();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// Physics
|
|
// Physics
|
|
if (this._physicsEngine) {
|
|
if (this._physicsEngine) {
|
|
this.disablePhysicsEngine();
|
|
this.disablePhysicsEngine();
|
|
@@ -5623,8 +5607,8 @@
|
|
system.rebuild();
|
|
system.rebuild();
|
|
}
|
|
}
|
|
|
|
|
|
- if (this._postProcessRenderPipelineManager) {
|
|
|
|
- this._postProcessRenderPipelineManager._rebuild();
|
|
|
|
|
|
+ for (let step of this._rebuildGeometryStage) {
|
|
|
|
+ step.action();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|