@galacean/effects-core 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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime core for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v2.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.30
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -13038,7 +13038,7 @@ var Renderer = /*#__PURE__*/ function() {
|
|
|
13038
13038
|
};
|
|
13039
13039
|
|
|
13040
13040
|
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";
|
|
13041
|
-
var fragment = "\nprecision highp float;\n\n#define fragColor gl_FragColor\n\nvarying vec4 vColor;\nvoid main() {\n gl_FragColor = vColor;\n}\n";
|
|
13041
|
+
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";
|
|
13042
13042
|
var seed$4 = 1;
|
|
13043
13043
|
var InteractMesh = /*#__PURE__*/ function() {
|
|
13044
13044
|
function InteractMesh(props, rendererOptions, transform, engine) {
|
|
@@ -13093,6 +13093,7 @@ var InteractMesh = /*#__PURE__*/ function() {
|
|
|
13093
13093
|
}
|
|
13094
13094
|
};
|
|
13095
13095
|
var material = Material.create(this.engine, materialProps);
|
|
13096
|
+
material.blending = true;
|
|
13096
13097
|
material.depthTest = false;
|
|
13097
13098
|
material.setVector4("uPos", new Vector4(0, 0, 0, 0));
|
|
13098
13099
|
material.setVector2("uSize", new Vector2(1, 1));
|
|
@@ -27448,7 +27449,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
27448
27449
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
27449
27450
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
27450
27451
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
27451
|
-
var version = "2.0.0-alpha.
|
|
27452
|
+
var version = "2.0.0-alpha.30";
|
|
27452
27453
|
logger.info("Core version: " + version + ".");
|
|
27453
27454
|
|
|
27454
27455
|
exports.AbstractPlugin = AbstractPlugin;
|