@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.7 → 2.0.0-alpha.8
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
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.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.8
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { math, DestroyOptions, glContext, ShaderType, GLSLVersion, Material, Mesh, GLGeometry, createShaderWithMarcos, Texture, noop, Geometry, Transform, RendererComponent, assertExist, ItemBehaviour, HitTestType, spec, VFXItem, removeItem, RenderPass, RenderPassPriorityPostprocess, TextureLoadAction, RenderPassPriorityPrepare, AbstractPlugin, registerPlugin, logger } from '@galacean/effects';
|
|
@@ -3330,16 +3330,16 @@ var BoundingType;
|
|
|
3330
3330
|
var vpMat4 = proMat4.clone().multiply(viewMat4);
|
|
3331
3331
|
var mvpMat4 = vpMat4.clone().multiply(modelMat4);
|
|
3332
3332
|
var screenCenter = mvpMat4.projectPoint(center, new Vector3());
|
|
3333
|
-
screenCenter.x;
|
|
3334
|
-
screenCenter.y;
|
|
3333
|
+
// const screenCenterX = screenCenter.x;
|
|
3334
|
+
// const screenCenterY = screenCenter.y;
|
|
3335
3335
|
// 包围球上的点正交投影到屏幕上
|
|
3336
3336
|
var radius = bounding.radius;
|
|
3337
3337
|
var up = new Vector3(localMat4.elements[1], localMat4.elements[5], localMat4.elements[9]).normalize();
|
|
3338
3338
|
var point = up.clone().multiply(radius);
|
|
3339
3339
|
point.add(center);
|
|
3340
3340
|
var screenPoint = mvpMat4.projectPoint(point, new Vector3());
|
|
3341
|
-
screenPoint.x;
|
|
3342
|
-
screenPoint.y;
|
|
3341
|
+
// const screenPointX = screenPoint.x;
|
|
3342
|
+
// const screenPointY = screenPoint.y;
|
|
3343
3343
|
// 计算正交投影到屏幕上的包围球的半径
|
|
3344
3344
|
var screenCenter2 = screenCenter.toVector2();
|
|
3345
3345
|
var screenPoint2 = screenPoint.toVector2();
|
|
@@ -3698,7 +3698,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
3698
3698
|
}(AbstractPlugin);
|
|
3699
3699
|
|
|
3700
3700
|
registerPlugin("editor-gizmo", EditorGizmoPlugin, GizmoVFXItem);
|
|
3701
|
-
var version = "2.0.0-alpha.
|
|
3701
|
+
var version = "2.0.0-alpha.8";
|
|
3702
3702
|
logger.info("plugin editor gizmo version: " + version);
|
|
3703
3703
|
|
|
3704
3704
|
export { DirectionLightData, GeometryType, GizmoSubType, GizmoVFXItem, createGeometry, version };
|