@galacean/effects-plugin-editor-gizmo 2.8.0-alpha.0 → 2.8.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects player editor gizmo plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 茂安,旻诺
6
- * Version: v2.8.0-alpha.0
6
+ * Version: v2.8.0-alpha.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -3485,13 +3485,7 @@ exports.GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
3485
3485
  return renderPass.name === behindRenderPassName;
3486
3486
  });
3487
3487
  if (!rp) {
3488
- rp = new EFFECTS.RenderPass(pipeline.renderer, {
3489
- name: behindRenderPassName,
3490
- priority: EFFECTS.RenderPassPriorityPostprocess + EFFECTS.RenderPassPriorityPostprocess,
3491
- clearAction: {
3492
- depthAction: EFFECTS.TextureLoadAction.clear
3493
- }
3494
- });
3488
+ rp = new DrawGizmoBehindPass(pipeline.renderer, {});
3495
3489
  pipeline.addRenderPass(rp);
3496
3490
  }
3497
3491
  return rp;
@@ -3501,10 +3495,7 @@ exports.GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
3501
3495
  return renderPass.name === editorRenderPassName;
3502
3496
  });
3503
3497
  if (!rp) {
3504
- rp = new EFFECTS.RenderPass(pipeline.renderer, {
3505
- name: editorRenderPassName,
3506
- priority: EFFECTS.RenderPassPriorityPostprocess + 2
3507
- });
3498
+ rp = new DrawGizmoEditorPass(pipeline.renderer, {});
3508
3499
  pipeline.addRenderPass(rp);
3509
3500
  }
3510
3501
  return rp;
@@ -3514,10 +3505,7 @@ exports.GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
3514
3505
  return renderPass.name === frontRenderPassName;
3515
3506
  });
3516
3507
  if (!rp) {
3517
- rp = new EFFECTS.RenderPass(pipeline.renderer, {
3518
- name: frontRenderPassName,
3519
- priority: EFFECTS.RenderPassPriorityPrepare + 2
3520
- });
3508
+ rp = new DrawGizmoFrontPass(pipeline.renderer, {});
3521
3509
  pipeline.addRenderPass(rp);
3522
3510
  }
3523
3511
  return rp;
@@ -3535,6 +3523,54 @@ exports.CoordinateSpace = void 0;
3535
3523
  CoordinateSpace[CoordinateSpace["Local"] = 0] = "Local";
3536
3524
  CoordinateSpace[CoordinateSpace["World"] = 1] = "World";
3537
3525
  })(exports.CoordinateSpace || (exports.CoordinateSpace = {}));
3526
+ var DrawGizmoBehindPass = /*#__PURE__*/ function(RenderPass) {
3527
+ _inherits(DrawGizmoBehindPass, RenderPass);
3528
+ function DrawGizmoBehindPass(renderer, options) {
3529
+ var _this;
3530
+ _this = RenderPass.call(this, renderer, options) || this;
3531
+ _this.priority = EFFECTS.RenderPassPriorityPostprocess + EFFECTS.RenderPassPriorityPostprocess;
3532
+ _this.name = behindRenderPassName;
3533
+ return _this;
3534
+ }
3535
+ var _proto = DrawGizmoBehindPass.prototype;
3536
+ _proto.execute = function execute(renderer) {
3537
+ renderer.clear({
3538
+ depthAction: EFFECTS.TextureLoadAction.clear
3539
+ });
3540
+ renderer.renderMeshes(this.meshes);
3541
+ };
3542
+ return DrawGizmoBehindPass;
3543
+ }(EFFECTS.RenderPass);
3544
+ var DrawGizmoFrontPass = /*#__PURE__*/ function(RenderPass) {
3545
+ _inherits(DrawGizmoFrontPass, RenderPass);
3546
+ function DrawGizmoFrontPass(renderer, options) {
3547
+ var _this;
3548
+ _this = RenderPass.call(this, renderer, options) || this;
3549
+ _this.priority = EFFECTS.RenderPassPriorityPrepare + 2;
3550
+ _this.name = frontRenderPassName;
3551
+ return _this;
3552
+ }
3553
+ var _proto = DrawGizmoFrontPass.prototype;
3554
+ _proto.execute = function execute(renderer) {
3555
+ renderer.renderMeshes(this.meshes);
3556
+ };
3557
+ return DrawGizmoFrontPass;
3558
+ }(EFFECTS.RenderPass);
3559
+ var DrawGizmoEditorPass = /*#__PURE__*/ function(RenderPass) {
3560
+ _inherits(DrawGizmoEditorPass, RenderPass);
3561
+ function DrawGizmoEditorPass(renderer, options) {
3562
+ var _this;
3563
+ _this = RenderPass.call(this, renderer, options) || this;
3564
+ _this.priority = EFFECTS.RenderPassPriorityPostprocess + 2;
3565
+ _this.name = editorRenderPassName;
3566
+ return _this;
3567
+ }
3568
+ var _proto = DrawGizmoEditorPass.prototype;
3569
+ _proto.execute = function execute(renderer) {
3570
+ renderer.renderMeshes(this.meshes);
3571
+ };
3572
+ return DrawGizmoEditorPass;
3573
+ }(EFFECTS.RenderPass);
3538
3574
 
3539
3575
  var iconImages = new Map();
3540
3576
  var iconTextures = new Map();
@@ -3622,7 +3658,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3622
3658
  EFFECTS.registerPlugin("editor-gizmo", EditorGizmoPlugin, EFFECTS.VFXItem);
3623
3659
  /**
3624
3660
  * 插件版本号
3625
- */ var version = "2.8.0-alpha.0";
3661
+ */ var version = "2.8.0-alpha.1";
3626
3662
  EFFECTS.logger.info("Plugin editor gizmo version: " + version + ".");
3627
3663
  if (version !== EFFECTS__namespace.version) {
3628
3664
  console.error("注意:请统一 Editor Gizmo 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Editor Gizmo plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");