@galacean/effects-threejs 2.0.0-alpha.29 → 2.0.0-alpha.30

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 runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.0.0-alpha.29
6
+ * Version: v2.0.0-alpha.30
7
7
  */
8
8
 
9
9
  'use strict';
@@ -13060,7 +13060,7 @@ var Renderer = /*#__PURE__*/ function() {
13060
13060
  };
13061
13061
 
13062
13062
  var vertex = "\nprecision highp float;\n\nattribute vec2 aPoint;\nuniform vec4 uPos;\nuniform vec2 uSize;\nuniform vec4 uQuat;\nuniform vec4 uColor;\nuniform mat4 effects_ObjectToWorld;\nuniform mat4 effects_MatrixInvV;\nuniform mat4 effects_MatrixVP;\nvarying vec4 vColor;\n#ifdef ENV_EDITOR\n uniform vec4 uEditorTransform;\n#endif\n\nvec3 rotateByQuat(vec3 a, vec4 quat){\n vec3 qvec = quat.xyz;\n vec3 uv = cross(qvec, a);\n vec3 uuv = cross(qvec, uv) * 2.;\n return a +(uv * 2. * quat.w + uuv);\n}\n\nvoid main() {\n vec4 _pos = uPos;\n vec3 point = rotateByQuat(vec3(aPoint.xy * uSize, 0.),uQuat);\n vec4 pos = vec4(_pos.xyz, 1.0);\n pos = effects_ObjectToWorld * pos;\n pos.xyz += effects_MatrixInvV[0].xyz * point.x+ effects_MatrixInvV[1].xyz * point.y;\n gl_Position = effects_MatrixVP * pos;\n vColor = uColor;\n #ifdef ENV_EDITOR\n gl_Position = vec4(gl_Position.xy * uEditorTransform.xy + uEditorTransform.zw * gl_Position.w, gl_Position.zw);\n #endif\n}\n";
13063
- var fragment = "\nprecision highp float;\n\n#define fragColor gl_FragColor\n\nvarying vec4 vColor;\nvoid main() {\n gl_FragColor = vColor;\n}\n";
13063
+ var fragment = "\nprecision highp float;\n\n#define fragColor gl_FragColor\n\nvarying vec4 vColor;\nvoid main() {\n gl_FragColor = vColor*vColor.a;\n}\n";
13064
13064
  var seed$5 = 1;
13065
13065
  var InteractMesh = /*#__PURE__*/ function() {
13066
13066
  function InteractMesh(props, rendererOptions, transform, engine) {
@@ -13115,6 +13115,7 @@ var InteractMesh = /*#__PURE__*/ function() {
13115
13115
  }
13116
13116
  };
13117
13117
  var material = Material.create(this.engine, materialProps);
13118
+ material.blending = true;
13118
13119
  material.depthTest = false;
13119
13120
  material.setVector4("uPos", new Vector4(0, 0, 0, 0));
13120
13121
  material.setVector2("uSize", new Vector2(1, 1));
@@ -27470,7 +27471,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
27470
27471
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
27471
27472
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
27472
27473
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
27473
- var version$1 = "2.0.0-alpha.29";
27474
+ var version$1 = "2.0.0-alpha.30";
27474
27475
  logger.info("Core version: " + version$1 + ".");
27475
27476
 
27476
27477
  var _obj;
@@ -29103,7 +29104,7 @@ setMaxSpriteMeshItemCount(8);
29103
29104
  */ Mesh.create = function(engine, props) {
29104
29105
  return new ThreeMesh(engine, props);
29105
29106
  };
29106
- var version = "2.0.0-alpha.29";
29107
+ var version = "2.0.0-alpha.30";
29107
29108
  logger.info("THREEJS plugin version: " + version + ".");
29108
29109
 
29109
29110
  exports.AbstractPlugin = AbstractPlugin;