@galacean/effects-threejs 2.3.0-alpha.0 → 2.3.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.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.3.0-alpha.0
6
+ * Version: v2.3.0-alpha.1
7
7
  */
8
8
 
9
9
  import * as THREE from 'three';
@@ -10184,7 +10184,7 @@ var integrate = "float calculateMovement(float t,vec2 p1,vec2 p2,vec2 p3,vec2 p4
10184
10184
 
10185
10185
  var itemVert = "precision highp float;attribute vec2 atlasOffset;attribute vec3 aPos;varying vec2 vTexCoord;varying vec3 vParams;varying vec4 vColor;uniform vec2 _Size;uniform vec3 _Scale;uniform vec4 _Color;uniform vec4 _TexParams;uniform vec4 _TexOffset;uniform mat4 effects_MatrixVP;uniform mat4 effects_ObjectToWorld;uniform mat4 effects_MatrixV;\n#ifdef ENV_EDITOR\nuniform vec4 uEditorTransform;\n#endif\nvoid main(){vec4 texParams=_TexParams;vTexCoord=vec2(atlasOffset.xy*_TexOffset.zw+_TexOffset.xy);vColor=_Color;vParams=vec3(0.0,texParams.y,texParams.x);if(texParams.z==1.0){vec4 pos=vec4(aPos.xy*_Size,aPos.z,1.0);gl_Position=effects_MatrixVP*effects_ObjectToWorld*pos;}else{mat4 view=effects_MatrixV;vec3 camRight=vec3(view[0][0],view[1][0],view[2][0]);vec3 camUp=vec3(view[0][1],view[1][1],view[2][1]);vec3 worldPosition=vec3(effects_ObjectToWorld*vec4(0.0,0.0,0.0,1.0));vec3 vertexPosition=worldPosition+camRight*aPos.x*_Size.x*_Scale.x+camUp*aPos.y*_Size.y*_Scale.y;gl_Position=effects_MatrixVP*vec4(vertexPosition,1.0);}\n#ifdef ENV_EDITOR\ngl_Position=vec4(gl_Position.xy*uEditorTransform.xy+uEditorTransform.zw*gl_Position.w,gl_Position.zw);\n#endif\n}";
10186
10186
 
10187
- var itemFrag = "precision highp float;varying vec4 vColor;varying vec2 vTexCoord;varying vec3 vParams;uniform sampler2D _MainTex;vec4 blendColor(vec4 color,vec4 vc,float mode){vec4 ret=color*vc;float alpha=ret.a;if(mode==1.){ret.rgb*=alpha;}else if(mode==2.){ret.rgb*=alpha;ret.a=dot(ret.rgb,vec3(0.33333333));}else if(mode==3.){alpha=color.r*alpha;ret=vec4(vc.rgb*alpha,alpha);}return ret;}void main(){vec4 color=vec4(0.);vec4 texColor=texture2D(_MainTex,vTexCoord.xy);color=blendColor(texColor,vColor,floor(0.5+vParams.y));\n#ifdef ALPHA_CLIP\nif(vParams.z==0.&&color.a<0.04){discard;}\n#endif\ncolor.a=clamp(color.a,0.0,1.0);gl_FragColor=color;}";
10187
+ var itemFrag = "precision highp float;varying vec4 vColor;varying vec2 vTexCoord;varying vec3 vParams;uniform sampler2D _MainTex;vec4 blendColor(vec4 color,vec4 vc,float mode){vec4 ret=color*vc;float alpha=ret.a;if(mode==1.){ret.rgb*=alpha;}else if(mode==2.){ret.rgb*=alpha;ret.a=dot(ret.rgb,vec3(0.33333333));}else if(mode==3.){alpha=color.r*alpha;ret=vec4(vc.rgb*alpha,alpha);}return ret;}void main(){vec4 color=vec4(0.);\n#ifdef TRANSPARENT_VIDEO\nvec2 uv_rgb=vec2(vTexCoord.x*0.5000,vTexCoord.y);vec2 uv_alpha=vec2(vTexCoord.x*0.5000+0.5000,vTexCoord.y);vec3 rgb=texture2D(_MainTex,uv_rgb).rgb;float alpha=texture2D(_MainTex,uv_alpha).r;vec4 texColor=vec4(rgb/alpha,alpha);\n#else\nvec4 texColor=texture2D(_MainTex,vTexCoord.xy);\n#endif\ncolor=blendColor(texColor,vColor,floor(0.5+vParams.y));\n#ifdef ALPHA_CLIP\nif(vParams.z==0.&&color.a<0.04){discard;}\n#endif\ncolor.a=clamp(color.a,0.0,1.0);gl_FragColor=color;}";
10188
10188
 
10189
10189
  var particleFrag = "#version 100\nprecision mediump float;vec4 blendColor(vec4 color,vec4 vc,float mode){vec4 ret=color*vc;float alpha=ret.a;if(mode==1.){ret.rgb*=alpha;}else if(mode==2.){ret.rgb*=alpha;ret.a=dot(ret.rgb,vec3(0.33333333));}else if(mode==3.){alpha=color.r*alpha;ret=vec4(vc.rgb*alpha,alpha);}return ret;}\n#define PATICLE_SHADER 1\nvarying float vLife;varying vec2 vTexCoord;varying vec4 vColor;uniform vec3 emissionColor;uniform float emissionIntensity;uniform sampler2D uMaskTex;uniform vec4 uColorParams;uniform vec2 uTexOffset;\n#ifdef COLOR_OVER_LIFETIME\nuniform sampler2D uColorOverLifetime;\n#endif\n#ifdef USE_SPRITE\nvarying vec4 vTexCoordBlend;\n#endif\nvarying float vSeed;\n#ifdef PREVIEW_BORDER\nuniform vec4 uPreviewColor;\n#endif\n#ifdef USE_SPRITE\nvec4 getTextureColor(sampler2D tex,vec2 texCoord){if(vTexCoordBlend.w>0.){return mix(texture2D(tex,texCoord),texture2D(tex,vTexCoordBlend.xy+texCoord),vTexCoordBlend.z);}return texture2D(tex,texCoord);}\n#else\n#define getTextureColor texture2D\n#endif\n#ifndef WEBGL2\n#define round(a) floor(0.5+a)\n#endif\n#ifdef PREVIEW_BORDER\nvoid main(){gl_FragColor=uPreviewColor;}\n#else\nvoid main(){vec4 color=vec4(1.0);vec4 tempColor=vColor;vec2 texOffset=uTexOffset;if(vLife<0.){discard;}if(uColorParams.x>0.0){color=getTextureColor(uMaskTex,vTexCoord);}\n#ifdef COLOR_OVER_LIFETIME\n#ifndef ENABLE_VERTEX_TEXTURE\ntempColor*=texture2D(uColorOverLifetime,vec2(vLife,0.));\n#endif\n#endif\ncolor=blendColor(color,tempColor,round(uColorParams.y));if(color.a<=0.01&&uColorParams.w>0.){float _at=texture2D(uMaskTex,vTexCoord+texOffset).a+texture2D(uMaskTex,vTexCoord+texOffset*-1.).a;if(_at<=0.02){discard;}}vec3 emission=emissionColor*pow(2.0,emissionIntensity);color=vec4(pow(pow(color.rgb,vec3(2.2))+emission,vec3(1.0/2.2)),color.a);gl_FragColor=color;}\n#endif\n";
10190
10190
 
@@ -13566,11 +13566,14 @@ var ColorCurve = /*#__PURE__*/ function(ValueGetter) {
13566
13566
  maxVertex: 4
13567
13567
  });
13568
13568
  };
13569
- _proto.createMaterial = function createMaterial(renderInfo, count) {
13570
- var side = renderInfo.side, occlusion = renderInfo.occlusion, blending = renderInfo.blending, maskMode = renderInfo.maskMode, mask = renderInfo.mask;
13571
- var materialProps = {
13569
+ _proto.getMaterialProps = function getMaterialProps(renderInfo, count) {
13570
+ return {
13572
13571
  shader: spriteMeshShaderFromRenderInfo(renderInfo, count, 1)
13573
13572
  };
13573
+ };
13574
+ _proto.createMaterial = function createMaterial(renderInfo, count) {
13575
+ var side = renderInfo.side, occlusion = renderInfo.occlusion, blending = renderInfo.blending, maskMode = renderInfo.maskMode, mask = renderInfo.mask;
13576
+ var materialProps = this.getMaterialProps(renderInfo, count);
13574
13577
  this.preMultiAlpha = getPreMultiAlpha(blending);
13575
13578
  var material = Material.create(this.engine, materialProps);
13576
13579
  var states = {
@@ -16439,6 +16442,13 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16439
16442
  join: "miter",
16440
16443
  miterLimit: 10
16441
16444
  };
16445
+ _this.shapeAttribute = {
16446
+ type: ShapePrimitiveType.Custom,
16447
+ points: [],
16448
+ easingIns: [],
16449
+ easingOuts: [],
16450
+ shapes: []
16451
+ };
16442
16452
  return _this;
16443
16453
  }
16444
16454
  var _proto = ShapeComponent.prototype;
@@ -16447,7 +16457,7 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16447
16457
  };
16448
16458
  _proto.onUpdate = function onUpdate(dt) {
16449
16459
  if (this.shapeDirty) {
16450
- this.buildPath(this.data);
16460
+ this.buildPath(this.shapeAttribute);
16451
16461
  this.buildGeometryFromPath(this.graphicsPath.shapePath);
16452
16462
  this.shapeDirty = false;
16453
16463
  }
@@ -16505,17 +16515,16 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16505
16515
  this.geometry.setIndexData(indexArray);
16506
16516
  this.geometry.setDrawCount(indices.length);
16507
16517
  };
16508
- _proto.buildPath = function buildPath(data) {
16518
+ _proto.buildPath = function buildPath(shapeAttribute) {
16509
16519
  this.graphicsPath.clear();
16510
- var shapeData = data;
16511
- switch(shapeData.type){
16520
+ switch(shapeAttribute.type){
16512
16521
  case ShapePrimitiveType.Custom:
16513
16522
  {
16514
- var customData = shapeData;
16515
- var points = customData.points;
16516
- var easingIns = customData.easingIns;
16517
- var easingOuts = customData.easingOuts;
16518
- for(var _iterator = _create_for_of_iterator_helper_loose(customData.shapes), _step; !(_step = _iterator()).done;){
16523
+ var customShapeAtribute = this.shapeAttribute;
16524
+ var points = customShapeAtribute.points;
16525
+ var easingIns = customShapeAtribute.easingIns;
16526
+ var easingOuts = customShapeAtribute.easingOuts;
16527
+ for(var _iterator = _create_for_of_iterator_helper_loose(customShapeAtribute.shapes), _step; !(_step = _iterator()).done;){
16519
16528
  var shape = _step.value;
16520
16529
  this.curveValues = [];
16521
16530
  this.setFillColor(shape.fill);
@@ -16548,28 +16557,28 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16548
16557
  }
16549
16558
  case ShapePrimitiveType.Ellipse:
16550
16559
  {
16551
- var ellipseData = shapeData;
16560
+ var ellipseData = shapeAttribute;
16552
16561
  this.graphicsPath.ellipse(0, 0, ellipseData.xRadius, ellipseData.yRadius);
16553
16562
  this.setFillColor(ellipseData.fill);
16554
16563
  break;
16555
16564
  }
16556
16565
  case ShapePrimitiveType.Rectangle:
16557
16566
  {
16558
- var rectangleData = shapeData;
16567
+ var rectangleData = shapeAttribute;
16559
16568
  this.graphicsPath.rect(-rectangleData.width / 2, -rectangleData.height / 2, rectangleData.width, rectangleData.height);
16560
16569
  this.setFillColor(rectangleData.fill);
16561
16570
  break;
16562
16571
  }
16563
16572
  case ShapePrimitiveType.Star:
16564
16573
  {
16565
- var starData = shapeData;
16574
+ var starData = shapeAttribute;
16566
16575
  this.graphicsPath.polyStar(starData.pointCount, starData.outerRadius, starData.innerRadius, starData.outerRoundness, starData.innerRoundness, StarType.Star);
16567
16576
  this.setFillColor(starData.fill);
16568
16577
  break;
16569
16578
  }
16570
16579
  case ShapePrimitiveType.Polygon:
16571
16580
  {
16572
- var polygonData = shapeData;
16581
+ var polygonData = shapeAttribute;
16573
16582
  this.graphicsPath.polyStar(polygonData.pointCount, polygonData.radius, polygonData.radius, polygonData.roundness, polygonData.roundness, StarType.Polygon);
16574
16583
  this.setFillColor(polygonData.fill);
16575
16584
  break;
@@ -16584,13 +16593,93 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16584
16593
  };
16585
16594
  _proto.fromData = function fromData(data) {
16586
16595
  MeshComponent.prototype.fromData.call(this, data);
16587
- this.data = data;
16588
16596
  this.shapeDirty = true;
16589
16597
  var strokeParam = data.stroke;
16590
16598
  if (strokeParam) {
16591
16599
  this.isStroke = true;
16592
16600
  this.strokeAttributes.width = strokeParam.width;
16593
16601
  }
16602
+ switch(data.type){
16603
+ case ShapePrimitiveType.Custom:
16604
+ {
16605
+ this.shapeAttribute = {
16606
+ type: ShapePrimitiveType.Custom,
16607
+ points: [],
16608
+ easingIns: [],
16609
+ easingOuts: [],
16610
+ shapes: []
16611
+ };
16612
+ var customShapeData = data;
16613
+ var customShapeAttribute = this.shapeAttribute;
16614
+ for(var _iterator = _create_for_of_iterator_helper_loose(customShapeData.points), _step; !(_step = _iterator()).done;){
16615
+ var point = _step.value;
16616
+ customShapeAttribute.points.push(new Vector2(point.x, point.y));
16617
+ }
16618
+ for(var _iterator1 = _create_for_of_iterator_helper_loose(customShapeData.easingIns), _step1; !(_step1 = _iterator1()).done;){
16619
+ var easingIn = _step1.value;
16620
+ customShapeAttribute.easingIns.push(new Vector2(easingIn.x, easingIn.y));
16621
+ }
16622
+ for(var _iterator2 = _create_for_of_iterator_helper_loose(customShapeData.easingOuts), _step2; !(_step2 = _iterator2()).done;){
16623
+ var easingOut = _step2.value;
16624
+ customShapeAttribute.easingOuts.push(new Vector2(easingOut.x, easingOut.y));
16625
+ }
16626
+ customShapeAttribute.shapes = customShapeData.shapes;
16627
+ break;
16628
+ }
16629
+ case ShapePrimitiveType.Ellipse:
16630
+ {
16631
+ var ellipseData = data;
16632
+ var ellipseAttribute = {
16633
+ type: ShapePrimitiveType.Ellipse,
16634
+ xRadius: ellipseData.xRadius,
16635
+ yRadius: ellipseData.yRadius,
16636
+ fill: ellipseData.fill
16637
+ };
16638
+ this.shapeAttribute = ellipseAttribute;
16639
+ break;
16640
+ }
16641
+ case ShapePrimitiveType.Rectangle:
16642
+ {
16643
+ var rectangleData = data;
16644
+ var rectangleAttribute = {
16645
+ type: ShapePrimitiveType.Rectangle,
16646
+ width: rectangleData.width,
16647
+ height: rectangleData.height,
16648
+ roundness: rectangleData.roundness,
16649
+ fill: rectangleData.fill
16650
+ };
16651
+ this.shapeAttribute = rectangleAttribute;
16652
+ break;
16653
+ }
16654
+ case ShapePrimitiveType.Star:
16655
+ {
16656
+ var starData = data;
16657
+ var starAttribute = {
16658
+ type: ShapePrimitiveType.Star,
16659
+ pointCount: starData.pointCount,
16660
+ innerRadius: starData.innerRadius,
16661
+ outerRadius: starData.outerRadius,
16662
+ innerRoundness: starData.innerRoundness,
16663
+ outerRoundness: starData.outerRoundness,
16664
+ fill: starData.fill
16665
+ };
16666
+ this.shapeAttribute = starAttribute;
16667
+ break;
16668
+ }
16669
+ case ShapePrimitiveType.Polygon:
16670
+ {
16671
+ var polygonData = data;
16672
+ var polygonAttribute = {
16673
+ type: ShapePrimitiveType.Polygon,
16674
+ pointCount: polygonData.pointCount,
16675
+ radius: polygonData.radius,
16676
+ roundness: polygonData.roundness,
16677
+ fill: polygonData.fill
16678
+ };
16679
+ this.shapeAttribute = polygonAttribute;
16680
+ break;
16681
+ }
16682
+ }
16594
16683
  var material = this.material;
16595
16684
  //@ts-expect-error // TODO 新版蒙版上线后重构
16596
16685
  material.stencilRef = data.renderer.mask !== undefined ? [
@@ -16602,10 +16691,10 @@ var ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16602
16691
  };
16603
16692
  _create_class(ShapeComponent, [
16604
16693
  {
16605
- key: "path",
16694
+ key: "shape",
16606
16695
  get: function get() {
16607
16696
  this.shapeDirty = true;
16608
- return this.data;
16697
+ return this.shapeAttribute;
16609
16698
  }
16610
16699
  }
16611
16700
  ]);
@@ -21010,19 +21099,17 @@ var ParticleSystem = /*#__PURE__*/ function(Component) {
21010
21099
  rotation: rotation,
21011
21100
  path: path
21012
21101
  };
21013
- var parentTransform = this.transform.parentTransform;
21014
21102
  var selfPos = position.clone();
21015
21103
  if (path) {
21016
21104
  selfPos.add(path.getValue(0));
21017
21105
  }
21018
21106
  this.transform.setPosition(selfPos.x, selfPos.y, selfPos.z);
21019
- if (this.options.particleFollowParent && parentTransform) {
21020
- var worldMatrix = parentTransform.getWorldMatrix();
21107
+ if (this.options.particleFollowParent) {
21108
+ var worldMatrix = this.transform.getWorldMatrix();
21021
21109
  this.renderer.updateWorldMatrix(worldMatrix);
21022
21110
  }
21023
21111
  };
21024
21112
  _proto.updateEmitterTransform = function updateEmitterTransform(time) {
21025
- var parentTransform = this.transform.parentTransform;
21026
21113
  var _this_basicTransform = this.basicTransform, path = _this_basicTransform.path, position = _this_basicTransform.position;
21027
21114
  var selfPos = position.clone();
21028
21115
  if (path) {
@@ -21030,8 +21117,8 @@ var ParticleSystem = /*#__PURE__*/ function(Component) {
21030
21117
  selfPos.add(path.getValue(time / duration));
21031
21118
  }
21032
21119
  this.transform.setPosition(selfPos.x, selfPos.y, selfPos.z);
21033
- if (this.options.particleFollowParent && parentTransform) {
21034
- var worldMatrix = parentTransform.getWorldMatrix();
21120
+ if (this.options.particleFollowParent) {
21121
+ var worldMatrix = this.transform.getWorldMatrix();
21035
21122
  this.renderer.updateWorldMatrix(worldMatrix);
21036
21123
  }
21037
21124
  };
@@ -21419,7 +21506,7 @@ var ParticleSystem = /*#__PURE__*/ function(Component) {
21419
21506
  var lifetime = this.lifetime;
21420
21507
  var shape = this.shape;
21421
21508
  var speed = options.startSpeed.getValue(lifetime);
21422
- var matrix4 = options.particleFollowParent ? this.transform.getMatrix() : this.transform.getWorldMatrix();
21509
+ var matrix4 = options.particleFollowParent ? Matrix4.IDENTITY : this.transform.getWorldMatrix();
21423
21510
  var pointPosition = data.position;
21424
21511
  // 粒子的位置受发射器的位置影响,自身的旋转和缩放不受影响
21425
21512
  var position = matrix4.transformPoint(pointPosition, new Vector3());
@@ -24241,7 +24328,7 @@ var SerializationHelper = /*#__PURE__*/ function() {
24241
24328
  this.timelinePlayable.setTime(time);
24242
24329
  // The properties of the object may change dynamically,
24243
24330
  // so reset the track binding to avoid invalidation of the previously obtained binding object.
24244
- // this.resolveBindings();
24331
+ this.resolveBindings();
24245
24332
  this.timelinePlayable.evaluate();
24246
24333
  this.graph.evaluate(dt);
24247
24334
  };
@@ -24480,7 +24567,10 @@ var Vector4PropertyMixerPlayable = /*#__PURE__*/ function(PropertyMixerPlayable)
24480
24567
  }
24481
24568
  var _proto = Vector4PropertyMixerPlayable.prototype;
24482
24569
  _proto.resetPropertyValue = function resetPropertyValue() {
24483
- this.propertyValue.setZero();
24570
+ this.propertyValue.x = 0;
24571
+ this.propertyValue.y = 0;
24572
+ this.propertyValue.z = 0;
24573
+ this.propertyValue.w = 0;
24484
24574
  };
24485
24575
  _proto.addWeightedValue = function addWeightedValue(curveValue, weight) {
24486
24576
  var result = this.propertyValue;
@@ -24498,7 +24588,8 @@ var Vector2PropertyMixerPlayable = /*#__PURE__*/ function(PropertyMixerPlayable)
24498
24588
  }
24499
24589
  var _proto = Vector2PropertyMixerPlayable.prototype;
24500
24590
  _proto.resetPropertyValue = function resetPropertyValue() {
24501
- this.propertyValue.setZero();
24591
+ this.propertyValue.x = 0;
24592
+ this.propertyValue.y = 0;
24502
24593
  };
24503
24594
  _proto.addWeightedValue = function addWeightedValue(curveValue, weight) {
24504
24595
  var result = this.propertyValue;
@@ -31985,7 +32076,7 @@ registerPlugin("sprite", SpriteLoader, VFXItem, true);
31985
32076
  registerPlugin("particle", ParticleLoader, VFXItem, true);
31986
32077
  registerPlugin("cal", CalculateLoader, VFXItem, true);
31987
32078
  registerPlugin("interact", InteractLoader, VFXItem, true);
31988
- var version$1 = "2.3.0-alpha.0";
32079
+ var version$1 = "2.3.0-alpha.1";
31989
32080
  logger.info("Core version: " + version$1 + ".");
31990
32081
 
31991
32082
  var _obj;
@@ -33618,7 +33709,7 @@ setMaxSpriteMeshItemCount(8);
33618
33709
  */ Mesh.create = function(engine, props) {
33619
33710
  return new ThreeMesh(engine, props);
33620
33711
  };
33621
- var version = "2.3.0-alpha.0";
33712
+ var version = "2.3.0-alpha.1";
33622
33713
  logger.info("THREEJS plugin version: " + version + ".");
33623
33714
 
33624
33715
  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, ParticleTrack, 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, Vector2Curve, Vector2PropertyPlayableAsset, Vector2PropertyTrack, 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 };