|
@@ -23749,14 +23749,14 @@ var BABYLON;
|
|
|
SceneComponentConstants.STEP_BEFORERENDERINGMESH_OUTLINE = 0;
|
|
|
SceneComponentConstants.STEP_AFTERRENDERINGMESH_OUTLINE = 0;
|
|
|
SceneComponentConstants.STEP_AFTERRENDERINGGROUPDRAW_EFFECTLAYER_DRAW = 0;
|
|
|
+ SceneComponentConstants.STEP_AFTERRENDERINGGROUPDRAW_BOUNDINGBOXRENDERER = 1;
|
|
|
SceneComponentConstants.STEP_BEFORECAMERAUPDATE_SIMPLIFICATIONQUEUE = 0;
|
|
|
SceneComponentConstants.STEP_BEFORECAMERAUPDATE_GAMEPAD = 1;
|
|
|
SceneComponentConstants.STEP_BEFORECLEAR_PROCEDURALTEXTURE = 0;
|
|
|
SceneComponentConstants.STEP_AFTERCAMERADRAW_EFFECTLAYER = 0;
|
|
|
SceneComponentConstants.STEP_AFTERCAMERADRAW_LENSFLARESYSTEM = 1;
|
|
|
- SceneComponentConstants.STEP_AFTERCAMERADRAW_BOUNDINGBOXRENDERER = 2;
|
|
|
- SceneComponentConstants.STEP_AFTERCAMERADRAW_EFFECTLAYER_DRAW = 3;
|
|
|
- SceneComponentConstants.STEP_AFTERCAMERADRAW_LAYER = 4;
|
|
|
+ SceneComponentConstants.STEP_AFTERCAMERADRAW_EFFECTLAYER_DRAW = 2;
|
|
|
+ SceneComponentConstants.STEP_AFTERCAMERADRAW_LAYER = 3;
|
|
|
SceneComponentConstants.STEP_GATHERRENDERTARGETS_SHADOWGENERATOR = 0;
|
|
|
SceneComponentConstants.STEP_GATHERRENDERTARGETS_GEOMETRYBUFFERRENDERER = 1;
|
|
|
SceneComponentConstants.STEP_GATHERRENDERTARGETS_DEPTHRENDERER = 2;
|
|
@@ -61879,7 +61879,7 @@ var BABYLON;
|
|
|
this.scene._beforeEvaluateActiveMeshStage.registerStep(BABYLON.SceneComponentConstants.STEP_BEFOREEVALUATEACTIVEMESH_BOUNDINGBOXRENDERER, this, this.reset);
|
|
|
this.scene._activeMeshStage.registerStep(BABYLON.SceneComponentConstants.STEP_ACTIVEMESH_BOUNDINGBOXRENDERER, this, this._activeMesh);
|
|
|
this.scene._evaluateSubMeshStage.registerStep(BABYLON.SceneComponentConstants.STEP_EVALUATESUBMESH_BOUNDINGBOXRENDERER, this, this._evaluateSubMesh);
|
|
|
- this.scene._afterRenderingGroupDrawStage.registerStep(BABYLON.SceneComponentConstants.STEP_AFTERCAMERADRAW_BOUNDINGBOXRENDERER, this, this.render);
|
|
|
+ this.scene._afterRenderingGroupDrawStage.registerStep(BABYLON.SceneComponentConstants.STEP_AFTERRENDERINGGROUPDRAW_BOUNDINGBOXRENDERER, this, this.render);
|
|
|
};
|
|
|
BoundingBoxRenderer.prototype._evaluateSubMesh = function (mesh, subMesh) {
|
|
|
if (mesh.showSubMeshesBoundingBox) {
|
|
@@ -61928,6 +61928,10 @@ var BABYLON;
|
|
|
BoundingBoxRenderer.prototype.reset = function () {
|
|
|
this.renderList.reset();
|
|
|
};
|
|
|
+ /**
|
|
|
+ * Render the bounding boxes of a specific rendering group
|
|
|
+ * @param renderingGroupId defines the rendering group to render
|
|
|
+ */
|
|
|
BoundingBoxRenderer.prototype.render = function (renderingGroupId) {
|
|
|
if (this.renderList.length === 0) {
|
|
|
return;
|