@galacean/effects-threejs 2.1.3-alpha.3 → 2.1.3

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.mjs 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.1.3-alpha.3
6
+ * Version: v2.1.3
7
7
  */
8
8
 
9
9
  import * as THREE from 'three';
@@ -22192,7 +22192,7 @@ var ParticleMesh = /*#__PURE__*/ function() {
22192
22192
  var rotation = aRot;
22193
22193
  if (!this.rotationOverLifetime) {
22194
22194
  aRotationMatrix.setZero();
22195
- } else if (this.rotationOverLifetime.asRotation) {
22195
+ } else {
22196
22196
  // Adjust rotation based on the specified lifetime components
22197
22197
  if (this.rotationOverLifetime.x) {
22198
22198
  if (_instanceof1(this.rotationOverLifetime.x, RandomValue)) {
@@ -22215,30 +22215,31 @@ var ParticleMesh = /*#__PURE__*/ function() {
22215
22215
  rotation.z += this.rotationOverLifetime.z.getValue(life);
22216
22216
  }
22217
22217
  }
22218
- } else {
22219
- // Adjust rotation based on the specified lifetime components
22220
- if (this.rotationOverLifetime.x) {
22221
- if (_instanceof1(this.rotationOverLifetime.x, RandomValue)) {
22222
- rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, aSeed) * duration;
22223
- } else {
22224
- rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, duration) * duration;
22225
- }
22226
- }
22227
- if (this.rotationOverLifetime.y) {
22228
- if (_instanceof1(this.rotationOverLifetime.y, RandomValue)) {
22229
- rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, aSeed) * duration;
22230
- } else {
22231
- rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, duration) * duration;
22232
- }
22233
- }
22234
- if (this.rotationOverLifetime.z) {
22235
- if (_instanceof1(this.rotationOverLifetime.z, RandomValue)) {
22236
- rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, aSeed) * duration;
22237
- } else {
22238
- rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, duration) * duration;
22239
- }
22240
- }
22241
22218
  }
22219
+ // else {
22220
+ // // Adjust rotation based on the specified lifetime components
22221
+ // if (this.rotationOverLifetime.x) {
22222
+ // if (this.rotationOverLifetime.x instanceof RandomValue) {
22223
+ // rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, aSeed) * duration;
22224
+ // } else {
22225
+ // rotation.x += this.rotationOverLifetime.x.getIntegrateValue(0.0, life, duration) * duration;
22226
+ // }
22227
+ // }
22228
+ // if (this.rotationOverLifetime.y) {
22229
+ // if (this.rotationOverLifetime.y instanceof RandomValue) {
22230
+ // rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, aSeed) * duration;
22231
+ // } else {
22232
+ // rotation.y += this.rotationOverLifetime.y.getIntegrateValue(0.0, life, duration) * duration;
22233
+ // }
22234
+ // }
22235
+ // if (this.rotationOverLifetime.z) {
22236
+ // if (this.rotationOverLifetime.z instanceof RandomValue) {
22237
+ // rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, aSeed) * duration;
22238
+ // } else {
22239
+ // rotation.z += this.rotationOverLifetime.z.getIntegrateValue(0.0, life, duration) * duration;
22240
+ // }
22241
+ // }
22242
+ // }
22242
22243
  // If the rotation vector is zero, return the identity matrix
22243
22244
  if (rotation.dot(rotation) === 0.0) {
22244
22245
  aRotationMatrix.identity();
@@ -31377,7 +31378,7 @@ registerPlugin("sprite", SpriteLoader, VFXItem, true);
31377
31378
  registerPlugin("particle", ParticleLoader, VFXItem, true);
31378
31379
  registerPlugin("cal", CalculateLoader, VFXItem, true);
31379
31380
  registerPlugin("interact", InteractLoader, VFXItem, true);
31380
- var version$1 = "2.1.3-alpha.3";
31381
+ var version$1 = "2.1.3";
31381
31382
  logger.info("Core version: " + version$1 + ".");
31382
31383
 
31383
31384
  var _obj;
@@ -33004,7 +33005,7 @@ setMaxSpriteMeshItemCount(8);
33004
33005
  */ Mesh.create = function(engine, props) {
33005
33006
  return new ThreeMesh(engine, props);
33006
33007
  };
33007
- var version = "2.1.3-alpha.3";
33008
+ var version = "2.1.3";
33008
33009
  logger.info("THREEJS plugin version: " + version + ".");
33009
33010
 
33010
33011
  export { AbstractPlugin, ActivationPlayable, ActivationPlayableAsset, ActivationTrack, AnimationClip, AnimationClipPlayable, Asset, AssetLoader, AssetManager, BYTES_TYPE_MAP, BaseRenderComponent, Behaviour, BezierCurve, BezierCurvePath, BezierCurveQuat, BinaryAsset, COMPRESSED_TEXTURE, CONSTANT_MAP_BLEND, CONSTANT_MAP_DEPTH, CONSTANT_MAP_STENCIL_FUNC, CONSTANT_MAP_STENCIL_OP, COPY_FRAGMENT_SHADER, COPY_MESH_SHADER_ID, COPY_VERTEX_SHADER, CalculateLoader, Camera, CameraController, CameraVFXItemLoader, ColorCurve, ColorPropertyPlayableAsset, ColorPropertyTrack, Component, Composition, CompositionComponent, CompositionSourceManager, DEFAULT_FONTS, DEFAULT_FPS, Database, DestroyOptions, Downloader, EFFECTS_COPY_MESH_NAME, EVENT_TYPE_CLICK, EVENT_TYPE_TOUCH_END, EVENT_TYPE_TOUCH_MOVE, EVENT_TYPE_TOUCH_START, EffectComponent, EffectsObject, EffectsPackage, Engine, EventEmitter, EventSystem, Fake3DAnimationMode, Fake3DComponent, FilterMode, Float16ArrayWrapper, FloatPropertyPlayableAsset, FloatPropertyTrack, Framebuffer, GLSLVersion, GPUCapability, Geometry, GlobalUniforms, GradientValue, HELP_LINK, HitTestType, InteractComponent, InteractLoader, InteractMesh, Item, KTXTexture, LineSegments, LinearValue, Material, MaterialDataBlock, MaterialRenderType, MaterialTrack, Mesh, MeshCollider, ObjectBindingTrack, OrderType, PLAYER_OPTIONS_ENV_EDITOR, POST_PROCESS_SETTINGS, ParticleBehaviourPlayable, ParticleBehaviourPlayableAsset, ParticleLoader, ParticleMesh, ParticleSystem, ParticleSystemRenderer, PassTextureCache, PathSegments, PluginSystem, PostProcessVolume, PropertyTrack, RENDER_PASS_NAME_PREFIX, RENDER_PREFER_LOOKUP_TEXTURE, RUNTIME_ENV, RandomSetValue, RandomValue, RandomVectorValue, RenderFrame, RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, RenderTargetHandle, RenderTextureFormat, Renderbuffer, Renderer, RendererComponent, RuntimeClip, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_0, SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_SIZE_0, SEMANTIC_PRE_COLOR_ATTACHMENT_0, SEMANTIC_PRE_COLOR_ATTACHMENT_SIZE_0, SPRITE_VERTEX_STRIDE, Scene, SemanticMap, SerializationHelper, Shader, ShaderCompileResultStatus, ShaderFactory, ShaderType, ShaderVariant, ShapeComponent, SpriteColorPlayableAsset, SpriteColorTrack, SpriteComponent, SpriteLoader, StaticValue, SubCompositionPlayableAsset, SubCompositionTrack, TEMPLATE_USE_OFFSCREEN_CANVAS, TEXTURE_UNIFORM_MAP, TextComponent, TextComponentBase, TextLayout, TextLoader, TextStyle, Texture, TextureFactory, TextureLoadAction, TextureSourceType, TextureStoreAction, ThreeComposition, ThreeDisplayObject, ThreeEngine, ThreeMaterial, ThreeSpriteComponent, ThreeTextComponent, ThreeTexture, Ticker, TimelineAsset, TimelineClip, TimelinePlayable, TrackAsset, TrackSortWrapper, TrackType, Transform, TransformAnimationPlayable, TransformPlayableAsset, TransformTrack, VFXItem, ValueGetter, Vector4Curve, Vector4PropertyPlayableAsset, Vector4PropertyTrack, addByOrder, addItem, addItemWithOrder, applyMixins, assertExist, asserts, base64ToFile, blend, calculateTranslation, canvasPool, colorGradingFrag, colorStopsFromGradient, colorToArr$1 as colorToArr, combineImageTemplate, createCopyShader, createGLContext, createKeyFrameMeta, createShape, createValueGetter, decimalEqual, defaultPlugins, deserializeMipmapTexture, earcut, effectsClass, effectsClassStore, enlargeBuffer, ensureFixedNumber, ensureVec3, findPreviousRenderPass, gaussianDown_frag as gaussianDownFrag, gaussianDownHFrag, gaussianDownVFrag, gaussianUpFrag, generateEmptyTypedArray, generateGUID, generateHalfFloatTexture, generateTransparentTexture, generateWhiteTexture, getBackgroundImage, getColorFromGradientStops, getConfig, getDefaultTextureFactory, getGeometryByShape, getGeometryTriangles, getImageItemRenderInfo, getKTXTextureOptions, getKeyFrameMetaByRawValue, getMergedStore, getParticleMeshShader, getPixelRatio, getPreMultiAlpha, getStandardComposition, getStandardImage, getStandardItem, getStandardJSON, getTextureSize, glContext, glType2VertexFormatType, gpuTimer, imageDataFromColor, imageDataFromGradient, initErrors, initGLContext, integrate, interpolateColor, isAlipayMiniApp, isAndroid, isArray, isCanvas, isFunction, isIOS, isIOSByUA, isMiniProgram, isObject, isSimulatorCellPhone, isString, isUniformStruct, isUniformStructArray, isValidFontFamily, isWebGL2, isWechatMiniApp, itemFrag, itemFrameFrag, itemVert, loadAVIFOptional, loadBinary, loadBlob, loadImage, loadMedia, loadVideo, loadWebPOptional, logger, index as math, maxSpriteMeshItemCount, modifyMaxKeyframeShader, nearestPowerOfTwo, noop, normalizeColor, numberToFix, parsePercent$1 as parsePercent, particleFrag, particleOriginTranslateMap$1 as particleOriginTranslateMap, particleUniformTypeMap, particleVert, passRenderLevel, pluginLoaderMap, randomInRange, registerPlugin, removeItem, rotateVec2, screenMeshVert, serialize, setBlendMode, setConfig, setDefaultTextureFactory, setMaskMode, setMaxSpriteMeshItemCount, setRayFromCamera, setSideMode, setSpriteMeshMaxItemCountByGPU, setUniformValue, sortByOrder, index$1 as spec, spriteMeshShaderFromFilter, spriteMeshShaderFromRenderInfo, spriteMeshShaderIdFromRenderInfo, thresholdFrag, throwDestroyedError, trailVert, translatePoint, trianglesFromRect, unregisterPlugin, valIfUndefined, value, valueDefine, vecFill, vecMulCombine, version, vertexFormatType2GLType };