@galacean/engine-core 2.0.0-alpha.46 → 2.0.0-alpha.48
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/main.js +200 -132
- package/dist/main.js.map +1 -1
- package/dist/module.js +200 -132
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/ISpriteRenderer.d.ts +1 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
- package/types/2d/sprite/SpriteMask.d.ts +1 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +1 -0
- package/types/2d/text/ITextRenderer.d.ts +3 -0
- package/types/Camera.d.ts +2 -0
- package/types/Engine.d.ts +1 -0
- package/types/Renderer.d.ts +3 -0
- package/types/Signal.d.ts +1 -0
- package/types/SystemInfo.d.ts +3 -0
- package/types/Transform.d.ts +1 -0
- package/types/animation/Animator.d.ts +1 -0
- package/types/graphic/Buffer.d.ts +3 -0
- package/types/graphic/BufferUtil.d.ts +6 -3
- package/types/graphic/Mesh.d.ts +3 -0
- package/types/graphic/VertexElement.d.ts +1 -0
- package/types/input/InputManager.d.ts +6 -6
- package/types/input/pointer/Pointer.d.ts +1 -1
- package/types/material/Material.d.ts +3 -0
- package/types/mesh/MeshRenderer.d.ts +1 -0
- package/types/mesh/ModelMesh.d.ts +3 -2
- package/types/mesh/PrimitiveMesh.d.ts +6 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +1 -0
- package/types/particle/ParticleGenerator.d.ts +1 -0
- package/types/particle/ParticleRenderer.d.ts +1 -0
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +7 -0
- package/types/particle/modules/EmissionModule.d.ts +1 -0
- package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +26 -0
- package/types/particle/modules/MainModule.d.ts +2 -0
- package/types/particle/modules/NoiseModule.d.ts +13 -0
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +12 -0
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +9 -0
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +31 -0
- package/types/particle/modules/shape/MeshShape.d.ts +1 -0
- package/types/physics/Collider.d.ts +1 -0
- package/types/physics/DynamicCollider.d.ts +1 -0
- package/types/physics/PhysicsScene.d.ts +2 -0
- package/types/physics/shape/ColliderShape.d.ts +1 -0
- package/types/physics/shape/MeshColliderShape.d.ts +1 -0
- package/types/postProcess/PostProcess.d.ts +3 -0
- package/types/postProcess/PostProcessEffectParameter.d.ts +15 -0
- package/types/postProcess/PostProcessPass.d.ts +1 -0
- package/types/postProcess/PostProcessUberPass.d.ts +1 -0
- package/types/shader/ShaderData.d.ts +1 -0
- package/types/trail/TrailRenderer.d.ts +7 -7
package/dist/module.js
CHANGED
|
@@ -904,7 +904,9 @@ var AssetPromise = /*#__PURE__*/ function() {
|
|
|
904
904
|
}
|
|
905
905
|
return this._simdSupported;
|
|
906
906
|
};
|
|
907
|
-
|
|
907
|
+
/**
|
|
908
|
+
* @internal
|
|
909
|
+
*/ SystemInfo._checkWebpSupported = function _checkWebpSupported() {
|
|
908
910
|
var _this = this;
|
|
909
911
|
if (!this._webpSupported) {
|
|
910
912
|
this._webpSupported = new AssetPromise(function(resolve) {
|
|
@@ -4755,7 +4757,9 @@ function _extends() {
|
|
|
4755
4757
|
this._data = null;
|
|
4756
4758
|
this._readable = false;
|
|
4757
4759
|
};
|
|
4758
|
-
|
|
4760
|
+
/**
|
|
4761
|
+
* @internal
|
|
4762
|
+
*/ _proto._rebuild = function _rebuild() {
|
|
4759
4763
|
var platformBuffer = this._engine._hardwareRenderer.createPlatformBuffer(this._type, this._byteLength, this._bufferUsage);
|
|
4760
4764
|
this._platformBuffer = platformBuffer;
|
|
4761
4765
|
this._engine._renderingStatistics._bufferMemory += this._byteLength;
|
|
@@ -5354,6 +5358,7 @@ registerDefaultCloneMode(UpdateFlag, CloneMode.Ignore);
|
|
|
5354
5358
|
this._updateAllWorldFlag(444);
|
|
5355
5359
|
};
|
|
5356
5360
|
/**
|
|
5361
|
+
* @internal
|
|
5357
5362
|
* @inheritdoc
|
|
5358
5363
|
*/ _proto._onClone = function _onClone(target) {
|
|
5359
5364
|
target._copyLocalPoseFrom(this);
|
|
@@ -7333,6 +7338,7 @@ for(var i = 0, n = copyFromCloneTypes.length; i < n; i++){
|
|
|
7333
7338
|
}
|
|
7334
7339
|
};
|
|
7335
7340
|
/**
|
|
7341
|
+
* @internal
|
|
7336
7342
|
* @inheritdoc
|
|
7337
7343
|
*/ _proto._onClone = function _onClone(target) {
|
|
7338
7344
|
this.cloneTo(target);
|
|
@@ -7458,7 +7464,7 @@ var Renderer = /*#__PURE__*/ function(Component) {
|
|
|
7458
7464
|
_inherits(Renderer, Component);
|
|
7459
7465
|
function Renderer(entity) {
|
|
7460
7466
|
var _this;
|
|
7461
|
-
_this = Component.call(this, entity) || this, /** @internal */ _this._onUpdateIndex = -1, /** @internal */ _this._rendererIndex = -1, /** @internal */ _this._globalShaderMacro = new ShaderMacroCollection(), /** @internal */ _this._maskInteraction = SpriteMaskInteraction.None, _this._maskLayer = SpriteMaskLayer.Layer0, _this._overrideUpdate = false, _this._materials = [], _this._dirtyUpdateFlag = 0, _this._rendererLayer = new Vector4(), _this._bounds = new BoundingBox(), _this._shaderData = new ShaderData(ShaderDataGroup.Renderer), _this._mvMatrix = new Matrix(), _this._mvpMatrix = new Matrix(), _this._normalMatrix = new Matrix(), _this._materialsInstanced = [], _this._priority = 0, _this._receiveShadows = true, /** Whether cast shadow. */ _this.castShadows = true;
|
|
7467
|
+
_this = Component.call(this, entity) || this, /** @internal */ _this._onUpdateIndex = -1, /** @internal */ _this._rendererIndex = -1, /** @internal */ _this._globalShaderMacro = new ShaderMacroCollection(), /** @internal */ _this._maskInteraction = SpriteMaskInteraction.None, /** @internal */ _this._maskLayer = SpriteMaskLayer.Layer0, _this._overrideUpdate = false, _this._materials = [], _this._dirtyUpdateFlag = 0, _this._rendererLayer = new Vector4(), _this._bounds = new BoundingBox(), _this._shaderData = new ShaderData(ShaderDataGroup.Renderer), _this._mvMatrix = new Matrix(), _this._mvpMatrix = new Matrix(), _this._normalMatrix = new Matrix(), _this._materialsInstanced = [], _this._priority = 0, _this._receiveShadows = true, /** Whether cast shadow. */ _this.castShadows = true;
|
|
7462
7468
|
var prototype = Renderer.prototype;
|
|
7463
7469
|
var shaderData = _this.shaderData;
|
|
7464
7470
|
_this._overrideUpdate = _this.update !== prototype.update;
|
|
@@ -7579,6 +7585,7 @@ var Renderer = /*#__PURE__*/ function(Component) {
|
|
|
7579
7585
|
ShaderMacroCollection.unionCollection(context.camera._globalShaderMacro, this.shaderData._macroCollection, this._globalShaderMacro);
|
|
7580
7586
|
};
|
|
7581
7587
|
/**
|
|
7588
|
+
* @internal
|
|
7582
7589
|
* @inheritdoc
|
|
7583
7590
|
*/ _proto._onClone = function _onClone(target) {
|
|
7584
7591
|
var materials = this._materials;
|
|
@@ -10633,6 +10640,7 @@ var RenderElement = /*#__PURE__*/ function() {
|
|
|
10633
10640
|
this._updateWorldSpaceTransformShaderData(context, onlyMVP);
|
|
10634
10641
|
};
|
|
10635
10642
|
/**
|
|
10643
|
+
* @internal
|
|
10636
10644
|
* @inheritdoc
|
|
10637
10645
|
*/ _proto._onClone = function _onClone(target) {
|
|
10638
10646
|
Renderer.prototype._onClone.call(this, target);
|
|
@@ -10925,6 +10933,7 @@ __decorate([
|
|
|
10925
10933
|
this._updateWorldSpaceTransformShaderData(context, onlyMVP);
|
|
10926
10934
|
};
|
|
10927
10935
|
/**
|
|
10936
|
+
* @internal
|
|
10928
10937
|
* @inheritdoc
|
|
10929
10938
|
*/ _proto._onClone = function _onClone(target) {
|
|
10930
10939
|
Renderer.prototype._onClone.call(this, target);
|
|
@@ -11960,7 +11969,9 @@ var TextChunk = function TextChunk() {
|
|
|
11960
11969
|
return VertexElementFormat;
|
|
11961
11970
|
}({});
|
|
11962
11971
|
|
|
11963
|
-
|
|
11972
|
+
/**
|
|
11973
|
+
* @internal
|
|
11974
|
+
*/ var BufferUtil = /*#__PURE__*/ function() {
|
|
11964
11975
|
function BufferUtil() {}
|
|
11965
11976
|
BufferUtil._getGLIndexType = function _getGLIndexType(indexFormat) {
|
|
11966
11977
|
switch(indexFormat){
|
|
@@ -11982,9 +11993,7 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
11982
11993
|
return 4;
|
|
11983
11994
|
}
|
|
11984
11995
|
};
|
|
11985
|
-
|
|
11986
|
-
* @internal
|
|
11987
|
-
*/ BufferUtil._getElementInfo = function _getElementInfo(format) {
|
|
11996
|
+
BufferUtil._getElementInfo = function _getElementInfo(format) {
|
|
11988
11997
|
var size;
|
|
11989
11998
|
var type;
|
|
11990
11999
|
var normalized = false;
|
|
@@ -12204,7 +12213,9 @@ var BufferUtil = /*#__PURE__*/ function() {
|
|
|
12204
12213
|
target.shader = this.shader;
|
|
12205
12214
|
this.shaderData.cloneTo(target.shaderData);
|
|
12206
12215
|
};
|
|
12207
|
-
|
|
12216
|
+
/**
|
|
12217
|
+
* @internal
|
|
12218
|
+
*/ _proto._addReferCount = function _addReferCount(value) {
|
|
12208
12219
|
if (this._destroyed) return;
|
|
12209
12220
|
ReferResource.prototype._addReferCount.call(this, value);
|
|
12210
12221
|
this.shaderData._addReferCount(value);
|
|
@@ -13995,7 +14006,9 @@ var BlendShapeFrameDirty = /*#__PURE__*/ function(BlendShapeFrameDirty) {
|
|
|
13995
14006
|
*/ _proto._setVertexBufferBinding = function _setVertexBufferBinding(index, binding) {
|
|
13996
14007
|
this._primitive.setVertexBufferBinding(index, binding);
|
|
13997
14008
|
};
|
|
13998
|
-
|
|
14009
|
+
/**
|
|
14010
|
+
* @internal
|
|
14011
|
+
*/ _proto._addReferCount = function _addReferCount(value) {
|
|
13999
14012
|
ReferResource.prototype._addReferCount.call(this, value);
|
|
14000
14013
|
this._primitive._addReferCount(value);
|
|
14001
14014
|
};
|
|
@@ -14199,6 +14212,7 @@ var BlendShapeFrameDirty = /*#__PURE__*/ function(BlendShapeFrameDirty) {
|
|
|
14199
14212
|
Renderer.prototype._onDestroy.call(this);
|
|
14200
14213
|
};
|
|
14201
14214
|
/**
|
|
14215
|
+
* @internal
|
|
14202
14216
|
* @inheritdoc
|
|
14203
14217
|
*/ _proto._onClone = function _onClone(target) {
|
|
14204
14218
|
Renderer.prototype._onClone.call(this, target);
|
|
@@ -14822,6 +14836,7 @@ BlendShapeManager._blendShapeTextureInfoProperty = ShaderProperty.getByName("ren
|
|
|
14822
14836
|
|
|
14823
14837
|
/**
|
|
14824
14838
|
* Mesh containing common vertex elements of the model.
|
|
14839
|
+
* Define draw ranges with `addSubMesh()` and assign a material to each corresponding MeshRenderer slot.
|
|
14825
14840
|
*/ var ModelMesh = /*#__PURE__*/ function(Mesh) {
|
|
14826
14841
|
_inherits(ModelMesh, Mesh);
|
|
14827
14842
|
function ModelMesh(engine, name) {
|
|
@@ -15155,8 +15170,8 @@ BlendShapeManager._blendShapeTextureInfoProperty = ShaderProperty.getByName("ren
|
|
|
15155
15170
|
return blendShapes[index].name;
|
|
15156
15171
|
};
|
|
15157
15172
|
/**
|
|
15158
|
-
* Upload data to GPU
|
|
15159
|
-
*
|
|
15173
|
+
* Upload mesh data to the GPU, generating vertex elements and buffer bindings as needed.
|
|
15174
|
+
* Bounds must be set separately for culling.
|
|
15160
15175
|
*
|
|
15161
15176
|
* @param releaseData - Whether to release the data cache, release data can reduce memory usage.
|
|
15162
15177
|
*/ _proto.uploadData = function uploadData(releaseData) {
|
|
@@ -16562,7 +16577,9 @@ var BufferUpdateInfo = /*#__PURE__*/ function() {
|
|
|
16562
16577
|
}
|
|
16563
16578
|
PrimitiveMesh._initialize(planeMesh, vertices, indices, noLongerAccessible, isRestoreMode, restoreVertexBuffer);
|
|
16564
16579
|
};
|
|
16565
|
-
|
|
16580
|
+
/**
|
|
16581
|
+
* @internal
|
|
16582
|
+
*/ PrimitiveMesh._setCylinderData = function _setCylinderData(cylinderMesh, radiusTop, radiusBottom, height, radialSegments, heightSegments, noLongerAccessible, isRestoreMode, restoreVertexBuffer) {
|
|
16566
16583
|
if (radiusTop === void 0) radiusTop = 0.5;
|
|
16567
16584
|
if (radiusBottom === void 0) radiusBottom = 0.5;
|
|
16568
16585
|
if (height === void 0) height = 2;
|
|
@@ -16883,7 +16900,9 @@ var BufferUpdateInfo = /*#__PURE__*/ function() {
|
|
|
16883
16900
|
}
|
|
16884
16901
|
PrimitiveMesh._initialize(coneMesh, vertices, indices, noLongerAccessible, isRestoreMode, restoreVertexBuffer);
|
|
16885
16902
|
};
|
|
16886
|
-
|
|
16903
|
+
/**
|
|
16904
|
+
* @internal
|
|
16905
|
+
*/ PrimitiveMesh._setCapsuleData = function _setCapsuleData(capsuleMesh, radius, height, radialSegments, heightSegments, noLongerAccessible, isRestoreMode, restoreVertexBuffer) {
|
|
16887
16906
|
radialSegments = Math.max(2, Math.floor(radialSegments));
|
|
16888
16907
|
heightSegments = Math.floor(heightSegments);
|
|
16889
16908
|
var radialCount = radialSegments + 1;
|
|
@@ -17223,6 +17242,7 @@ var SkinUpdateFlag = /*#__PURE__*/ function(SkinUpdateFlag) {
|
|
|
17223
17242
|
this._jointTexture = null;
|
|
17224
17243
|
};
|
|
17225
17244
|
/**
|
|
17245
|
+
* @internal
|
|
17226
17246
|
* @inheritdoc
|
|
17227
17247
|
*/ _proto._onClone = function _onClone(target) {
|
|
17228
17248
|
MeshRenderer.prototype._onClone.call(this, target);
|
|
@@ -19580,7 +19600,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
19580
19600
|
* Pointer.
|
|
19581
19601
|
*/ var Pointer = /*#__PURE__*/ function() {
|
|
19582
19602
|
function Pointer(id) {
|
|
19583
|
-
/** The phase of pointer. */ this.phase = PointerPhase.Leave;
|
|
19603
|
+
/** The current phase of this pointer. */ this.phase = PointerPhase.Leave;
|
|
19584
19604
|
/** The position of the pointer in screen space pixel coordinates. */ this.position = new Vector2();
|
|
19585
19605
|
/** The change of the pointer. */ this.deltaPosition = new Vector2();
|
|
19586
19606
|
/** @internal */ this._events = [];
|
|
@@ -19737,6 +19757,7 @@ var Collider = /*#__PURE__*/ function(Component) {
|
|
|
19737
19757
|
this.scene.physics._removeCollider(this);
|
|
19738
19758
|
};
|
|
19739
19759
|
/**
|
|
19760
|
+
* @internal
|
|
19740
19761
|
* @inheritdoc
|
|
19741
19762
|
*/ _proto._onClone = function _onClone(target) {
|
|
19742
19763
|
target._syncNative();
|
|
@@ -20142,6 +20163,7 @@ __decorate([
|
|
|
20142
20163
|
return Math.sqrt(distance);
|
|
20143
20164
|
};
|
|
20144
20165
|
/**
|
|
20166
|
+
* @internal
|
|
20145
20167
|
* @inheritdoc
|
|
20146
20168
|
*/ _proto._onClone = function _onClone(target) {
|
|
20147
20169
|
target._syncNative();
|
|
@@ -20311,6 +20333,7 @@ __decorate([
|
|
|
20311
20333
|
return ColliderShape.prototype.getClosestPoint.call(this, point, outClosestPoint);
|
|
20312
20334
|
};
|
|
20313
20335
|
/**
|
|
20336
|
+
* @internal
|
|
20314
20337
|
* @inheritdoc
|
|
20315
20338
|
*/ _proto._onClone = function _onClone(target) {
|
|
20316
20339
|
target.mesh = this._mesh;
|
|
@@ -20559,6 +20582,7 @@ __decorate([
|
|
|
20559
20582
|
this._updateFlag.flag = false;
|
|
20560
20583
|
};
|
|
20561
20584
|
/**
|
|
20585
|
+
* @internal
|
|
20562
20586
|
* @inheritdoc
|
|
20563
20587
|
*/ _proto._onClone = function _onClone(target) {
|
|
20564
20588
|
target._linearVelocity.copyFrom(this.linearVelocity);
|
|
@@ -21082,8 +21106,12 @@ __decorate([
|
|
|
21082
21106
|
if (outHitResult) {
|
|
21083
21107
|
hitResult = outHitResult;
|
|
21084
21108
|
}
|
|
21109
|
+
var normalizedDirection = PhysicsScene._normalizeDirection(ray.direction);
|
|
21085
21110
|
var preFilter = this._createPreFilter(layerMask);
|
|
21086
|
-
var result =
|
|
21111
|
+
var result = false;
|
|
21112
|
+
if (normalizedDirection) {
|
|
21113
|
+
result = this._nativePhysicsScene.raycast(ray.origin, normalizedDirection, distance, preFilter, hitResult ? this._createHitCallback(hitResult) : undefined);
|
|
21114
|
+
}
|
|
21087
21115
|
if (!result && hitResult) {
|
|
21088
21116
|
this._clearHitResult(hitResult);
|
|
21089
21117
|
}
|
|
@@ -21114,8 +21142,12 @@ __decorate([
|
|
|
21114
21142
|
if (outHitResult) {
|
|
21115
21143
|
hitResult = outHitResult;
|
|
21116
21144
|
}
|
|
21145
|
+
var normalizedDirection = PhysicsScene._normalizeDirection(direction);
|
|
21117
21146
|
var preFilter = this._createPreFilter(layerMask);
|
|
21118
|
-
var result =
|
|
21147
|
+
var result = false;
|
|
21148
|
+
if (normalizedDirection) {
|
|
21149
|
+
result = this._nativePhysicsScene.boxCast(center, orientation, halfExtents, normalizedDirection, distance, preFilter, hitResult ? this._createHitCallback(hitResult) : undefined);
|
|
21150
|
+
}
|
|
21119
21151
|
if (!result && hitResult) {
|
|
21120
21152
|
this._clearHitResult(hitResult);
|
|
21121
21153
|
}
|
|
@@ -21139,8 +21171,12 @@ __decorate([
|
|
|
21139
21171
|
if (outHitResult) {
|
|
21140
21172
|
hitResult = outHitResult;
|
|
21141
21173
|
}
|
|
21174
|
+
var normalizedDirection = PhysicsScene._normalizeDirection(direction);
|
|
21142
21175
|
var preFilter = this._createPreFilter(layerMask);
|
|
21143
|
-
var result =
|
|
21176
|
+
var result = false;
|
|
21177
|
+
if (normalizedDirection) {
|
|
21178
|
+
result = this._nativePhysicsScene.sphereCast(center, radius, normalizedDirection, distance, preFilter, hitResult ? this._createHitCallback(hitResult) : undefined);
|
|
21179
|
+
}
|
|
21144
21180
|
if (!result && hitResult) {
|
|
21145
21181
|
this._clearHitResult(hitResult);
|
|
21146
21182
|
}
|
|
@@ -21170,8 +21206,12 @@ __decorate([
|
|
|
21170
21206
|
if (outHitResult) {
|
|
21171
21207
|
hitResult = outHitResult;
|
|
21172
21208
|
}
|
|
21209
|
+
var normalizedDirection = PhysicsScene._normalizeDirection(direction);
|
|
21173
21210
|
var preFilter = this._createPreFilter(layerMask);
|
|
21174
|
-
var result =
|
|
21211
|
+
var result = false;
|
|
21212
|
+
if (normalizedDirection) {
|
|
21213
|
+
result = this._nativePhysicsScene.capsuleCast(center, radius, height, orientation, normalizedDirection, distance, preFilter, hitResult ? this._createHitCallback(hitResult) : undefined);
|
|
21214
|
+
}
|
|
21175
21215
|
if (!result && hitResult) {
|
|
21176
21216
|
this._clearHitResult(hitResult);
|
|
21177
21217
|
}
|
|
@@ -21446,6 +21486,10 @@ __decorate([
|
|
|
21446
21486
|
hitResult.point.set(0, 0, 0);
|
|
21447
21487
|
hitResult.normal.set(0, 0, 0);
|
|
21448
21488
|
};
|
|
21489
|
+
PhysicsScene._normalizeDirection = function _normalizeDirection(direction) {
|
|
21490
|
+
var out = PhysicsScene._tempDirection;
|
|
21491
|
+
return Vector3.normalize(direction, out) ? out : null;
|
|
21492
|
+
};
|
|
21449
21493
|
_create_class(PhysicsScene, [
|
|
21450
21494
|
{
|
|
21451
21495
|
key: "gravity",
|
|
@@ -21477,6 +21521,7 @@ __decorate([
|
|
|
21477
21521
|
}();
|
|
21478
21522
|
PhysicsScene._collision = new Collision();
|
|
21479
21523
|
PhysicsScene._identityQuaternion = new Quaternion(0, 0, 0, 1);
|
|
21524
|
+
PhysicsScene._tempDirection = new Vector3();
|
|
21480
21525
|
PhysicsScene._scriptIndexSetter = function(element, index) {
|
|
21481
21526
|
element._entityScriptsIndex = index;
|
|
21482
21527
|
};
|
|
@@ -23059,9 +23104,9 @@ PointerEventEmitter._tempRay = new Ray();
|
|
|
23059
23104
|
}
|
|
23060
23105
|
};
|
|
23061
23106
|
/**
|
|
23062
|
-
* Whether
|
|
23063
|
-
* @param pointerButton - The
|
|
23064
|
-
* @returns
|
|
23107
|
+
* Whether any pointer was pressed this frame.
|
|
23108
|
+
* @param pointerButton - The button to query; omit to include all buttons
|
|
23109
|
+
* @returns The result remains true for the frame, even if a release also occurred
|
|
23065
23110
|
*/ _proto.isPointerDown = function isPointerDown(pointerButton) {
|
|
23066
23111
|
if (this._initialized) {
|
|
23067
23112
|
if (pointerButton === undefined) {
|
|
@@ -23074,9 +23119,9 @@ PointerEventEmitter._tempRay = new Ray();
|
|
|
23074
23119
|
}
|
|
23075
23120
|
};
|
|
23076
23121
|
/**
|
|
23077
|
-
* Whether
|
|
23078
|
-
* @param pointerButton - The
|
|
23079
|
-
* @returns
|
|
23122
|
+
* Whether any pointer was released this frame.
|
|
23123
|
+
* @param pointerButton - The button to query; omit to include all buttons
|
|
23124
|
+
* @returns The result remains true for the frame, even if a press also occurred
|
|
23080
23125
|
*/ _proto.isPointerUp = function isPointerUp(pointerButton) {
|
|
23081
23126
|
if (this._initialized) {
|
|
23082
23127
|
if (pointerButton === undefined) {
|
|
@@ -23455,7 +23500,9 @@ Blitter._defaultScaleOffset = new Vector4(1, 1, 0, 0);
|
|
|
23455
23500
|
return _this;
|
|
23456
23501
|
}
|
|
23457
23502
|
var _proto = PostProcessEffectFloatParameter.prototype;
|
|
23458
|
-
|
|
23503
|
+
/**
|
|
23504
|
+
* @internal
|
|
23505
|
+
*/ _proto._lerp = function _lerp(to, factor) {
|
|
23459
23506
|
if (this._needLerp) {
|
|
23460
23507
|
this.value = MathUtil.lerp(this.value, to, factor);
|
|
23461
23508
|
} else {
|
|
@@ -23502,7 +23549,9 @@ Blitter._defaultScaleOffset = new Vector4(1, 1, 0, 0);
|
|
|
23502
23549
|
return PostProcessEffectParameter.call(this, value, needLerp) || this;
|
|
23503
23550
|
}
|
|
23504
23551
|
var _proto = PostProcessEffectColorParameter.prototype;
|
|
23505
|
-
|
|
23552
|
+
/**
|
|
23553
|
+
* @internal
|
|
23554
|
+
*/ _proto._lerp = function _lerp(to, factor) {
|
|
23506
23555
|
if (this._needLerp) {
|
|
23507
23556
|
Color.lerp(this.value, to, factor, this.value);
|
|
23508
23557
|
} else {
|
|
@@ -23520,7 +23569,9 @@ Blitter._defaultScaleOffset = new Vector4(1, 1, 0, 0);
|
|
|
23520
23569
|
return PostProcessEffectParameter.call(this, value, needLerp) || this;
|
|
23521
23570
|
}
|
|
23522
23571
|
var _proto = PostProcessEffectVector2Parameter.prototype;
|
|
23523
|
-
|
|
23572
|
+
/**
|
|
23573
|
+
* @internal
|
|
23574
|
+
*/ _proto._lerp = function _lerp(to, factor) {
|
|
23524
23575
|
if (this._needLerp) {
|
|
23525
23576
|
Vector2.lerp(this.value, to, factor, this.value);
|
|
23526
23577
|
} else {
|
|
@@ -23538,7 +23589,9 @@ Blitter._defaultScaleOffset = new Vector4(1, 1, 0, 0);
|
|
|
23538
23589
|
return PostProcessEffectParameter.call(this, value, needLerp) || this;
|
|
23539
23590
|
}
|
|
23540
23591
|
var _proto = PostProcessEffectVector3Parameter.prototype;
|
|
23541
|
-
|
|
23592
|
+
/**
|
|
23593
|
+
* @internal
|
|
23594
|
+
*/ _proto._lerp = function _lerp(to, factor) {
|
|
23542
23595
|
if (this._needLerp) {
|
|
23543
23596
|
Vector3.lerp(this.value, to, factor, this.value);
|
|
23544
23597
|
} else {
|
|
@@ -23556,7 +23609,9 @@ Blitter._defaultScaleOffset = new Vector4(1, 1, 0, 0);
|
|
|
23556
23609
|
return PostProcessEffectParameter.call(this, value, needLerp) || this;
|
|
23557
23610
|
}
|
|
23558
23611
|
var _proto = PostProcessEffectVector4Parameter.prototype;
|
|
23559
|
-
|
|
23612
|
+
/**
|
|
23613
|
+
* @internal
|
|
23614
|
+
*/ _proto._lerp = function _lerp(to, factor) {
|
|
23560
23615
|
if (this._needLerp) {
|
|
23561
23616
|
Vector4.lerp(this.value, to, factor, this.value);
|
|
23562
23617
|
} else {
|
|
@@ -23753,6 +23808,7 @@ var TonemappingEffect = /*#__PURE__*/ function(PostProcessEffect) {
|
|
|
23753
23808
|
return this._isActive;
|
|
23754
23809
|
};
|
|
23755
23810
|
/**
|
|
23811
|
+
* @internal
|
|
23756
23812
|
* @inheritdoc
|
|
23757
23813
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
23758
23814
|
EngineObject.prototype._onDestroy.call(this);
|
|
@@ -23850,6 +23906,7 @@ var PostProcessUberPass = /*#__PURE__*/ function(PostProcessPass) {
|
|
|
23850
23906
|
Blitter.blitTexture(camera.engine, srcTexture, destTarget, 0, viewport, this._uberMaterial, undefined);
|
|
23851
23907
|
};
|
|
23852
23908
|
/**
|
|
23909
|
+
* @internal
|
|
23853
23910
|
* @inheritdoc
|
|
23854
23911
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
23855
23912
|
PostProcessPass.prototype._onDestroy.call(this);
|
|
@@ -24658,12 +24715,14 @@ var Camera = /*#__PURE__*/ function(Component) {
|
|
|
24658
24715
|
this._replacementFailureStrategy = null;
|
|
24659
24716
|
};
|
|
24660
24717
|
/**
|
|
24718
|
+
* @internal
|
|
24661
24719
|
* @inheritdoc
|
|
24662
24720
|
*/ _proto._onEnableInScene = function _onEnableInScene() {
|
|
24663
24721
|
this.scene._componentsManager.addCamera(this);
|
|
24664
24722
|
this._dispatchModify(CameraModifyFlags.EnableInScene);
|
|
24665
24723
|
};
|
|
24666
24724
|
/**
|
|
24725
|
+
* @internal
|
|
24667
24726
|
* @inheritdoc
|
|
24668
24727
|
*/ _proto._onDisableInScene = function _onDisableInScene() {
|
|
24669
24728
|
this.scene._componentsManager.removeCamera(this);
|
|
@@ -25364,16 +25423,19 @@ ScalableAmbientObscurancePass._kernelProp = ShaderProperty.getByName("material_k
|
|
|
25364
25423
|
}
|
|
25365
25424
|
};
|
|
25366
25425
|
/**
|
|
25426
|
+
* @internal
|
|
25367
25427
|
* @inheritdoc
|
|
25368
25428
|
*/ _proto._onEnableInScene = function _onEnableInScene() {
|
|
25369
25429
|
this.scene.postProcessManager._addPostProcess(this);
|
|
25370
25430
|
};
|
|
25371
25431
|
/**
|
|
25432
|
+
* @internal
|
|
25372
25433
|
* @inheritdoc
|
|
25373
25434
|
*/ _proto._onDisableInScene = function _onDisableInScene() {
|
|
25374
25435
|
this.scene.postProcessManager._removePostProcess(this);
|
|
25375
25436
|
};
|
|
25376
25437
|
/**
|
|
25438
|
+
* @internal
|
|
25377
25439
|
* @inheritdoc
|
|
25378
25440
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
25379
25441
|
Component.prototype._onDestroy.call(this);
|
|
@@ -29703,6 +29765,7 @@ var PointerMethods = /*#__PURE__*/ function(PointerMethods) {
|
|
|
29703
29765
|
for(var i = 0, n = listeners.length; i < n; i++)_this = this, _loop(i);
|
|
29704
29766
|
};
|
|
29705
29767
|
/**
|
|
29768
|
+
* @internal
|
|
29706
29769
|
* @inheritdoc
|
|
29707
29770
|
*/ _proto._onClone = function _onClone(target, cloneMap) {
|
|
29708
29771
|
var listeners = this._listeners.getLoopArray();
|
|
@@ -32011,6 +32074,7 @@ var AnimatorLayerBlendingMode = /*#__PURE__*/ function(AnimatorLayerBlendingMode
|
|
|
32011
32074
|
}
|
|
32012
32075
|
};
|
|
32013
32076
|
/**
|
|
32077
|
+
* @internal
|
|
32014
32078
|
* @inheritdoc
|
|
32015
32079
|
*/ _proto._onClone = function _onClone(target) {
|
|
32016
32080
|
var animatorController = target._animatorController;
|
|
@@ -34081,6 +34145,7 @@ var ParticleStopMode = /*#__PURE__*/ function(ParticleStopMode) {
|
|
|
34081
34145
|
this.generator._destroy();
|
|
34082
34146
|
};
|
|
34083
34147
|
/**
|
|
34148
|
+
* @internal
|
|
34084
34149
|
* @inheritdoc
|
|
34085
34150
|
*/ _proto._onClone = function _onClone(target) {
|
|
34086
34151
|
Renderer.prototype._onClone.call(this, target);
|
|
@@ -35109,13 +35174,13 @@ __decorate([
|
|
|
35109
35174
|
};
|
|
35110
35175
|
return ColorOverLifetimeModule;
|
|
35111
35176
|
}(ParticleGeneratorModule);
|
|
35112
|
-
ColorOverLifetimeModule._gradientMacro = ShaderMacro.getByName("RENDERER_COL_GRADIENT");
|
|
35113
|
-
ColorOverLifetimeModule._randomGradientsMacro = ShaderMacro.getByName("RENDERER_COL_RANDOM_GRADIENTS");
|
|
35114
|
-
ColorOverLifetimeModule._minGradientColor = ShaderProperty.getByName("renderer_COLMinGradientColor");
|
|
35115
|
-
ColorOverLifetimeModule._minGradientAlpha = ShaderProperty.getByName("renderer_COLMinGradientAlpha");
|
|
35116
|
-
ColorOverLifetimeModule._maxGradientColor = ShaderProperty.getByName("renderer_COLMaxGradientColor");
|
|
35117
|
-
ColorOverLifetimeModule._maxGradientAlpha = ShaderProperty.getByName("renderer_COLMaxGradientAlpha");
|
|
35118
|
-
ColorOverLifetimeModule._gradientKeysCount = ShaderProperty.getByName("renderer_COLGradientKeysMaxTime");
|
|
35177
|
+
/** @internal */ ColorOverLifetimeModule._gradientMacro = ShaderMacro.getByName("RENDERER_COL_GRADIENT");
|
|
35178
|
+
/** @internal */ ColorOverLifetimeModule._randomGradientsMacro = ShaderMacro.getByName("RENDERER_COL_RANDOM_GRADIENTS");
|
|
35179
|
+
/** @internal */ ColorOverLifetimeModule._minGradientColor = ShaderProperty.getByName("renderer_COLMinGradientColor");
|
|
35180
|
+
/** @internal */ ColorOverLifetimeModule._minGradientAlpha = ShaderProperty.getByName("renderer_COLMinGradientAlpha");
|
|
35181
|
+
/** @internal */ ColorOverLifetimeModule._maxGradientColor = ShaderProperty.getByName("renderer_COLMaxGradientColor");
|
|
35182
|
+
/** @internal */ ColorOverLifetimeModule._maxGradientAlpha = ShaderProperty.getByName("renderer_COLMaxGradientAlpha");
|
|
35183
|
+
/** @internal */ ColorOverLifetimeModule._gradientKeysCount = ShaderProperty.getByName("renderer_COLGradientKeysMaxTime");
|
|
35119
35184
|
__decorate([
|
|
35120
35185
|
ignoreClone
|
|
35121
35186
|
], ColorOverLifetimeModule.prototype, "_colorGradientRand", void 0);
|
|
@@ -36433,32 +36498,32 @@ __decorate([
|
|
|
36433
36498
|
]);
|
|
36434
36499
|
return LimitVelocityOverLifetimeModule;
|
|
36435
36500
|
}(ParticleGeneratorModule);
|
|
36436
|
-
LimitVelocityOverLifetimeModule._enabledMacro = ShaderMacro.getByName("RENDERER_LVL_MODULE_ENABLED");
|
|
36437
|
-
LimitVelocityOverLifetimeModule._separateAxesMacro = ShaderMacro.getByName("RENDERER_LVL_SEPARATE_AXES");
|
|
36438
|
-
LimitVelocityOverLifetimeModule._speedConstantModeMacro = ShaderMacro.getByName("RENDERER_LVL_SPEED_CONSTANT_MODE");
|
|
36439
|
-
LimitVelocityOverLifetimeModule._speedCurveModeMacro = ShaderMacro.getByName("RENDERER_LVL_SPEED_CURVE_MODE");
|
|
36440
|
-
LimitVelocityOverLifetimeModule._speedIsRandomMacro = ShaderMacro.getByName("RENDERER_LVL_SPEED_IS_RANDOM_TWO");
|
|
36441
|
-
LimitVelocityOverLifetimeModule._dragCurveModeMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_CURVE_MODE");
|
|
36442
|
-
LimitVelocityOverLifetimeModule._dragIsRandomMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_IS_RANDOM_TWO");
|
|
36443
|
-
LimitVelocityOverLifetimeModule._multiplyDragBySizeMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_MULTIPLY_SIZE");
|
|
36444
|
-
LimitVelocityOverLifetimeModule._multiplyDragByVelocityMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_MULTIPLY_VELOCITY");
|
|
36445
|
-
LimitVelocityOverLifetimeModule._speedMaxConstProperty = ShaderProperty.getByName("renderer_LVLSpeedMaxConst");
|
|
36446
|
-
LimitVelocityOverLifetimeModule._speedMinConstProperty = ShaderProperty.getByName("renderer_LVLSpeedMinConst");
|
|
36447
|
-
LimitVelocityOverLifetimeModule._speedMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedMaxCurve");
|
|
36448
|
-
LimitVelocityOverLifetimeModule._speedMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedMinCurve");
|
|
36449
|
-
LimitVelocityOverLifetimeModule._speedMaxConstVecProperty = ShaderProperty.getByName("renderer_LVLSpeedMaxConstVector");
|
|
36450
|
-
LimitVelocityOverLifetimeModule._speedMinConstVecProperty = ShaderProperty.getByName("renderer_LVLSpeedMinConstVector");
|
|
36451
|
-
LimitVelocityOverLifetimeModule._speedXMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedXMaxCurve");
|
|
36452
|
-
LimitVelocityOverLifetimeModule._speedXMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedXMinCurve");
|
|
36453
|
-
LimitVelocityOverLifetimeModule._speedYMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedYMaxCurve");
|
|
36454
|
-
LimitVelocityOverLifetimeModule._speedYMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedYMinCurve");
|
|
36455
|
-
LimitVelocityOverLifetimeModule._speedZMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedZMaxCurve");
|
|
36456
|
-
LimitVelocityOverLifetimeModule._speedZMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedZMinCurve");
|
|
36457
|
-
LimitVelocityOverLifetimeModule._dampenProperty = ShaderProperty.getByName("renderer_LVLDampen");
|
|
36458
|
-
LimitVelocityOverLifetimeModule._dragConstantProperty = ShaderProperty.getByName("renderer_LVLDragConstant");
|
|
36459
|
-
LimitVelocityOverLifetimeModule._dragMaxCurveProperty = ShaderProperty.getByName("renderer_LVLDragMaxCurve");
|
|
36460
|
-
LimitVelocityOverLifetimeModule._dragMinCurveProperty = ShaderProperty.getByName("renderer_LVLDragMinCurve");
|
|
36461
|
-
LimitVelocityOverLifetimeModule._spaceProperty = ShaderProperty.getByName("renderer_LVLSpace");
|
|
36501
|
+
/** @internal */ LimitVelocityOverLifetimeModule._enabledMacro = ShaderMacro.getByName("RENDERER_LVL_MODULE_ENABLED");
|
|
36502
|
+
/** @internal */ LimitVelocityOverLifetimeModule._separateAxesMacro = ShaderMacro.getByName("RENDERER_LVL_SEPARATE_AXES");
|
|
36503
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedConstantModeMacro = ShaderMacro.getByName("RENDERER_LVL_SPEED_CONSTANT_MODE");
|
|
36504
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedCurveModeMacro = ShaderMacro.getByName("RENDERER_LVL_SPEED_CURVE_MODE");
|
|
36505
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedIsRandomMacro = ShaderMacro.getByName("RENDERER_LVL_SPEED_IS_RANDOM_TWO");
|
|
36506
|
+
/** @internal */ LimitVelocityOverLifetimeModule._dragCurveModeMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_CURVE_MODE");
|
|
36507
|
+
/** @internal */ LimitVelocityOverLifetimeModule._dragIsRandomMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_IS_RANDOM_TWO");
|
|
36508
|
+
/** @internal */ LimitVelocityOverLifetimeModule._multiplyDragBySizeMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_MULTIPLY_SIZE");
|
|
36509
|
+
/** @internal */ LimitVelocityOverLifetimeModule._multiplyDragByVelocityMacro = ShaderMacro.getByName("RENDERER_LVL_DRAG_MULTIPLY_VELOCITY");
|
|
36510
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedMaxConstProperty = ShaderProperty.getByName("renderer_LVLSpeedMaxConst");
|
|
36511
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedMinConstProperty = ShaderProperty.getByName("renderer_LVLSpeedMinConst");
|
|
36512
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedMaxCurve");
|
|
36513
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedMinCurve");
|
|
36514
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedMaxConstVecProperty = ShaderProperty.getByName("renderer_LVLSpeedMaxConstVector");
|
|
36515
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedMinConstVecProperty = ShaderProperty.getByName("renderer_LVLSpeedMinConstVector");
|
|
36516
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedXMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedXMaxCurve");
|
|
36517
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedXMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedXMinCurve");
|
|
36518
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedYMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedYMaxCurve");
|
|
36519
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedYMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedYMinCurve");
|
|
36520
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedZMaxCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedZMaxCurve");
|
|
36521
|
+
/** @internal */ LimitVelocityOverLifetimeModule._speedZMinCurveProperty = ShaderProperty.getByName("renderer_LVLSpeedZMinCurve");
|
|
36522
|
+
/** @internal */ LimitVelocityOverLifetimeModule._dampenProperty = ShaderProperty.getByName("renderer_LVLDampen");
|
|
36523
|
+
/** @internal */ LimitVelocityOverLifetimeModule._dragConstantProperty = ShaderProperty.getByName("renderer_LVLDragConstant");
|
|
36524
|
+
/** @internal */ LimitVelocityOverLifetimeModule._dragMaxCurveProperty = ShaderProperty.getByName("renderer_LVLDragMaxCurve");
|
|
36525
|
+
/** @internal */ LimitVelocityOverLifetimeModule._dragMinCurveProperty = ShaderProperty.getByName("renderer_LVLDragMinCurve");
|
|
36526
|
+
/** @internal */ LimitVelocityOverLifetimeModule._spaceProperty = ShaderProperty.getByName("renderer_LVLSpace");
|
|
36462
36527
|
__decorate([
|
|
36463
36528
|
ignoreClone
|
|
36464
36529
|
], LimitVelocityOverLifetimeModule.prototype, "_speedRand", void 0);
|
|
@@ -36509,7 +36574,7 @@ var MainModule = /*#__PURE__*/ function(DataObject) {
|
|
|
36509
36574
|
_inherits(MainModule, DataObject);
|
|
36510
36575
|
function MainModule(generator) {
|
|
36511
36576
|
var _this;
|
|
36512
|
-
_this = DataObject.call(this) || this, _this._tempVector40 = new Vector4(), /** The duration of the Particle Generator in seconds. */ _this.duration = 5.0, /** Specifies whether the Particle Generator loops. */ _this.isLoop = true, /** Start delay in seconds. */ _this.startDelay = new ParticleCompositeCurve(0), /** A flag to enable 3D particle rotation, when disabled, only `startRotationZ` is used. */ _this.startRotation3D = false, /** The initial rotation of particles around the x-axis when emitted, in degrees. */ _this.startRotationX = new ParticleCompositeCurve(0), /** The initial rotation of particles around the y-axis when emitted, in degrees. */ _this.startRotationY = new ParticleCompositeCurve(0), /** The initial rotation of particles around the z-axis when emitted, in degrees. */ _this.startRotationZ = new ParticleCompositeCurve(0), /** Makes some particles spin in the opposite direction. */ _this.flipRotation = 0, /** The mode of start color */ _this.startColor = new ParticleCompositeGradient(new Color(1, 1, 1, 1)), /** A scale that this Particle Generator applies to gravity, defined by Physics.gravity. */ /** Override the default playback speed of the Particle Generator. */ _this.simulationSpeed = 1.0, /** Control how the Particle Generator applies its Transform component to the particles it emits. */ _this.scalingMode = ParticleScaleMode.Local, /** If set to true, the Particle Generator automatically begins to play on startup. */ _this.playOnEnabled = true, /** @internal */ _this._maxParticleBuffer = 1000, /** @internal */ _this._startDelayRand = new Rand(0, ParticleRandomSubSeeds.StartDelay), /** @internal */ _this._startSpeedRand = new Rand(0, ParticleRandomSubSeeds.StartSpeed), /** @internal */ _this._startLifeTimeRand = new Rand(0, ParticleRandomSubSeeds.StartLifetime), /** @internal */ _this._startColorRand = new Rand(0, ParticleRandomSubSeeds.StartColor), /** @internal */ _this._startSizeRand = new Rand(0, ParticleRandomSubSeeds.StartSize), /** @internal */ _this._startRotationRand = new Rand(0, ParticleRandomSubSeeds.StartRotation), _this._gravityModifierRand = new Rand(0, ParticleRandomSubSeeds.GravityModifier), _this._startSize3D = false, _this._simulationSpace = ParticleSimulationSpace.Local;
|
|
36577
|
+
_this = DataObject.call(this) || this, _this._tempVector40 = new Vector4(), /** The duration of the Particle Generator in seconds. */ _this.duration = 5.0, /** Specifies whether the Particle Generator loops. */ _this.isLoop = true, /** Start delay in seconds. */ _this.startDelay = new ParticleCompositeCurve(0), /** A flag to enable 3D particle rotation, when disabled, only `startRotationZ` is used. */ _this.startRotation3D = false, /** The initial rotation of particles around the x-axis when emitted, in degrees. */ _this.startRotationX = new ParticleCompositeCurve(0), /** The initial rotation of particles around the y-axis when emitted, in degrees. */ _this.startRotationY = new ParticleCompositeCurve(0), /** The initial rotation of particles around the z-axis when emitted, in degrees. */ _this.startRotationZ = new ParticleCompositeCurve(0), /** Makes some particles spin in the opposite direction. */ _this.flipRotation = 0, /** The mode of start color */ _this.startColor = new ParticleCompositeGradient(new Color(1, 1, 1, 1)), /** A scale that this Particle Generator applies to gravity, defined by Physics.gravity. */ /** Override the default playback speed of the Particle Generator. */ _this.simulationSpeed = 1.0, /** Control how the Particle Generator applies its Transform component to the particles it emits. */ _this.scalingMode = ParticleScaleMode.Local, /** If set to true, the Particle Generator automatically begins to play on startup. */ _this.playOnEnabled = true, /** @internal */ _this._maxParticleBuffer = 1000, /** @internal */ _this._startDelayRand = new Rand(0, ParticleRandomSubSeeds.StartDelay), /** @internal */ _this._startSpeedRand = new Rand(0, ParticleRandomSubSeeds.StartSpeed), /** @internal */ _this._startLifeTimeRand = new Rand(0, ParticleRandomSubSeeds.StartLifetime), /** @internal */ _this._startColorRand = new Rand(0, ParticleRandomSubSeeds.StartColor), /** @internal */ _this._startSizeRand = new Rand(0, ParticleRandomSubSeeds.StartSize), /** @internal */ _this._startRotationRand = new Rand(0, ParticleRandomSubSeeds.StartRotation), /** @internal */ _this._gravityModifierRand = new Rand(0, ParticleRandomSubSeeds.GravityModifier), _this._startSize3D = false, _this._simulationSpace = ParticleSimulationSpace.Local;
|
|
36513
36578
|
_this._generator = generator;
|
|
36514
36579
|
_this.startLifetime = new ParticleCompositeCurve(5);
|
|
36515
36580
|
_this.startSpeed = new ParticleCompositeCurve(5);
|
|
@@ -36580,6 +36645,7 @@ var MainModule = /*#__PURE__*/ function(DataObject) {
|
|
|
36580
36645
|
shaderData.setInt(MainModule._scaleMode, this.scalingMode);
|
|
36581
36646
|
};
|
|
36582
36647
|
/**
|
|
36648
|
+
* @internal
|
|
36583
36649
|
* @inheritdoc
|
|
36584
36650
|
*/ _proto._onClone = function _onClone(target) {
|
|
36585
36651
|
if (target._simulationSpace === ParticleSimulationSpace.World) {
|
|
@@ -36839,18 +36905,18 @@ __decorate([
|
|
|
36839
36905
|
};
|
|
36840
36906
|
return RotationOverLifetimeModule;
|
|
36841
36907
|
}(ParticleGeneratorModule);
|
|
36842
|
-
RotationOverLifetimeModule._constantModeMacro = ShaderMacro.getByName("RENDERER_ROL_CONSTANT_MODE");
|
|
36843
|
-
RotationOverLifetimeModule._curveModeMacro = ShaderMacro.getByName("RENDERER_ROL_CURVE_MODE");
|
|
36844
|
-
RotationOverLifetimeModule._isSeparateMacro = ShaderMacro.getByName("RENDERER_ROL_IS_SEPARATE");
|
|
36845
|
-
RotationOverLifetimeModule._isRandomTwoMacro = ShaderMacro.getByName("RENDERER_ROL_IS_RANDOM_TWO");
|
|
36846
|
-
RotationOverLifetimeModule._minConstantProperty = ShaderProperty.getByName("renderer_ROLMinConst");
|
|
36847
|
-
RotationOverLifetimeModule._minCurveXProperty = ShaderProperty.getByName("renderer_ROLMinCurveX");
|
|
36848
|
-
RotationOverLifetimeModule._minCurveYProperty = ShaderProperty.getByName("renderer_ROLMinCurveY");
|
|
36849
|
-
RotationOverLifetimeModule._minCurveZProperty = ShaderProperty.getByName("renderer_ROLMinCurveZ");
|
|
36850
|
-
RotationOverLifetimeModule._maxConstantProperty = ShaderProperty.getByName("renderer_ROLMaxConst");
|
|
36851
|
-
RotationOverLifetimeModule._maxCurveXProperty = ShaderProperty.getByName("renderer_ROLMaxCurveX");
|
|
36852
|
-
RotationOverLifetimeModule._maxCurveYProperty = ShaderProperty.getByName("renderer_ROLMaxCurveY");
|
|
36853
|
-
RotationOverLifetimeModule._maxCurveZProperty = ShaderProperty.getByName("renderer_ROLMaxCurveZ");
|
|
36908
|
+
/** @internal */ RotationOverLifetimeModule._constantModeMacro = ShaderMacro.getByName("RENDERER_ROL_CONSTANT_MODE");
|
|
36909
|
+
/** @internal */ RotationOverLifetimeModule._curveModeMacro = ShaderMacro.getByName("RENDERER_ROL_CURVE_MODE");
|
|
36910
|
+
/** @internal */ RotationOverLifetimeModule._isSeparateMacro = ShaderMacro.getByName("RENDERER_ROL_IS_SEPARATE");
|
|
36911
|
+
/** @internal */ RotationOverLifetimeModule._isRandomTwoMacro = ShaderMacro.getByName("RENDERER_ROL_IS_RANDOM_TWO");
|
|
36912
|
+
/** @internal */ RotationOverLifetimeModule._minConstantProperty = ShaderProperty.getByName("renderer_ROLMinConst");
|
|
36913
|
+
/** @internal */ RotationOverLifetimeModule._minCurveXProperty = ShaderProperty.getByName("renderer_ROLMinCurveX");
|
|
36914
|
+
/** @internal */ RotationOverLifetimeModule._minCurveYProperty = ShaderProperty.getByName("renderer_ROLMinCurveY");
|
|
36915
|
+
/** @internal */ RotationOverLifetimeModule._minCurveZProperty = ShaderProperty.getByName("renderer_ROLMinCurveZ");
|
|
36916
|
+
/** @internal */ RotationOverLifetimeModule._maxConstantProperty = ShaderProperty.getByName("renderer_ROLMaxConst");
|
|
36917
|
+
/** @internal */ RotationOverLifetimeModule._maxCurveXProperty = ShaderProperty.getByName("renderer_ROLMaxCurveX");
|
|
36918
|
+
/** @internal */ RotationOverLifetimeModule._maxCurveYProperty = ShaderProperty.getByName("renderer_ROLMaxCurveY");
|
|
36919
|
+
/** @internal */ RotationOverLifetimeModule._maxCurveZProperty = ShaderProperty.getByName("renderer_ROLMaxCurveZ");
|
|
36854
36920
|
__decorate([
|
|
36855
36921
|
ignoreClone
|
|
36856
36922
|
], RotationOverLifetimeModule.prototype, "_rotationRand", void 0);
|
|
@@ -37217,15 +37283,15 @@ __decorate([
|
|
|
37217
37283
|
]);
|
|
37218
37284
|
return SizeOverLifetimeModule;
|
|
37219
37285
|
}(ParticleGeneratorModule);
|
|
37220
|
-
SizeOverLifetimeModule._curveModeMacro = ShaderMacro.getByName("RENDERER_SOL_CURVE_MODE");
|
|
37221
|
-
SizeOverLifetimeModule._isSeparateMacro = ShaderMacro.getByName("RENDERER_SOL_IS_SEPARATE");
|
|
37222
|
-
SizeOverLifetimeModule._isRandomTwoMacro = ShaderMacro.getByName("RENDERER_SOL_IS_RANDOM_TWO");
|
|
37223
|
-
SizeOverLifetimeModule._minCurveXProperty = ShaderProperty.getByName("renderer_SOLMinCurveX");
|
|
37224
|
-
SizeOverLifetimeModule._minCurveYProperty = ShaderProperty.getByName("renderer_SOLMinCurveY");
|
|
37225
|
-
SizeOverLifetimeModule._minCurveZProperty = ShaderProperty.getByName("renderer_SOLMinCurveZ");
|
|
37226
|
-
SizeOverLifetimeModule._maxCurveXProperty = ShaderProperty.getByName("renderer_SOLMaxCurveX");
|
|
37227
|
-
SizeOverLifetimeModule._maxCurveYProperty = ShaderProperty.getByName("renderer_SOLMaxCurveY");
|
|
37228
|
-
SizeOverLifetimeModule._maxCurveZProperty = ShaderProperty.getByName("renderer_SOLMaxCurveZ");
|
|
37286
|
+
/** @internal */ SizeOverLifetimeModule._curveModeMacro = ShaderMacro.getByName("RENDERER_SOL_CURVE_MODE");
|
|
37287
|
+
/** @internal */ SizeOverLifetimeModule._isSeparateMacro = ShaderMacro.getByName("RENDERER_SOL_IS_SEPARATE");
|
|
37288
|
+
/** @internal */ SizeOverLifetimeModule._isRandomTwoMacro = ShaderMacro.getByName("RENDERER_SOL_IS_RANDOM_TWO");
|
|
37289
|
+
/** @internal */ SizeOverLifetimeModule._minCurveXProperty = ShaderProperty.getByName("renderer_SOLMinCurveX");
|
|
37290
|
+
/** @internal */ SizeOverLifetimeModule._minCurveYProperty = ShaderProperty.getByName("renderer_SOLMinCurveY");
|
|
37291
|
+
/** @internal */ SizeOverLifetimeModule._minCurveZProperty = ShaderProperty.getByName("renderer_SOLMinCurveZ");
|
|
37292
|
+
/** @internal */ SizeOverLifetimeModule._maxCurveXProperty = ShaderProperty.getByName("renderer_SOLMaxCurveX");
|
|
37293
|
+
/** @internal */ SizeOverLifetimeModule._maxCurveYProperty = ShaderProperty.getByName("renderer_SOLMaxCurveY");
|
|
37294
|
+
/** @internal */ SizeOverLifetimeModule._maxCurveZProperty = ShaderProperty.getByName("renderer_SOLMaxCurveZ");
|
|
37229
37295
|
__decorate([
|
|
37230
37296
|
ignoreClone
|
|
37231
37297
|
], SizeOverLifetimeModule.prototype, "_sizeRand", void 0);
|
|
@@ -37558,19 +37624,19 @@ __decorate([
|
|
|
37558
37624
|
]);
|
|
37559
37625
|
return NoiseModule;
|
|
37560
37626
|
}(ParticleGeneratorModule);
|
|
37561
|
-
NoiseModule._enabledMacro = ShaderMacro.getByName("RENDERER_NOISE_MODULE_ENABLED");
|
|
37562
|
-
NoiseModule._strengthCurveMacro = ShaderMacro.getByName("RENDERER_NOISE_STRENGTH_CURVE");
|
|
37563
|
-
NoiseModule._strengthIsRandomTwoMacro = ShaderMacro.getByName("RENDERER_NOISE_STRENGTH_IS_RANDOM_TWO");
|
|
37564
|
-
NoiseModule._separateAxesMacro = ShaderMacro.getByName("RENDERER_NOISE_IS_SEPARATE");
|
|
37565
|
-
NoiseModule._noiseProperty = ShaderProperty.getByName("renderer_NoiseParams");
|
|
37566
|
-
NoiseModule._noiseOctaveProperty = ShaderProperty.getByName("renderer_NoiseOctaveParams");
|
|
37567
|
-
NoiseModule._strengthMinConstProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinConst");
|
|
37568
|
-
NoiseModule._strengthMaxCurveXProperty = ShaderProperty.getByName("renderer_NoiseStrengthMaxCurveX");
|
|
37569
|
-
NoiseModule._strengthMaxCurveYProperty = ShaderProperty.getByName("renderer_NoiseStrengthMaxCurveY");
|
|
37570
|
-
NoiseModule._strengthMaxCurveZProperty = ShaderProperty.getByName("renderer_NoiseStrengthMaxCurveZ");
|
|
37571
|
-
NoiseModule._strengthMinCurveXProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinCurveX");
|
|
37572
|
-
NoiseModule._strengthMinCurveYProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinCurveY");
|
|
37573
|
-
NoiseModule._strengthMinCurveZProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinCurveZ");
|
|
37627
|
+
/** @internal */ NoiseModule._enabledMacro = ShaderMacro.getByName("RENDERER_NOISE_MODULE_ENABLED");
|
|
37628
|
+
/** @internal */ NoiseModule._strengthCurveMacro = ShaderMacro.getByName("RENDERER_NOISE_STRENGTH_CURVE");
|
|
37629
|
+
/** @internal */ NoiseModule._strengthIsRandomTwoMacro = ShaderMacro.getByName("RENDERER_NOISE_STRENGTH_IS_RANDOM_TWO");
|
|
37630
|
+
/** @internal */ NoiseModule._separateAxesMacro = ShaderMacro.getByName("RENDERER_NOISE_IS_SEPARATE");
|
|
37631
|
+
/** @internal */ NoiseModule._noiseProperty = ShaderProperty.getByName("renderer_NoiseParams");
|
|
37632
|
+
/** @internal */ NoiseModule._noiseOctaveProperty = ShaderProperty.getByName("renderer_NoiseOctaveParams");
|
|
37633
|
+
/** @internal */ NoiseModule._strengthMinConstProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinConst");
|
|
37634
|
+
/** @internal */ NoiseModule._strengthMaxCurveXProperty = ShaderProperty.getByName("renderer_NoiseStrengthMaxCurveX");
|
|
37635
|
+
/** @internal */ NoiseModule._strengthMaxCurveYProperty = ShaderProperty.getByName("renderer_NoiseStrengthMaxCurveY");
|
|
37636
|
+
/** @internal */ NoiseModule._strengthMaxCurveZProperty = ShaderProperty.getByName("renderer_NoiseStrengthMaxCurveZ");
|
|
37637
|
+
/** @internal */ NoiseModule._strengthMinCurveXProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinCurveX");
|
|
37638
|
+
/** @internal */ NoiseModule._strengthMinCurveYProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinCurveY");
|
|
37639
|
+
/** @internal */ NoiseModule._strengthMinCurveZProperty = ShaderProperty.getByName("renderer_NoiseStrengthMinCurveZ");
|
|
37574
37640
|
__decorate([
|
|
37575
37641
|
ignoreClone
|
|
37576
37642
|
], NoiseModule.prototype, "_enabledModuleMacro", void 0);
|
|
@@ -37916,37 +37982,37 @@ __decorate([
|
|
|
37916
37982
|
]);
|
|
37917
37983
|
return VelocityOverLifetimeModule;
|
|
37918
37984
|
}(ParticleGeneratorModule);
|
|
37919
|
-
VelocityOverLifetimeModule._constantModeMacro = ShaderMacro.getByName("RENDERER_VOL_CONSTANT_MODE");
|
|
37920
|
-
VelocityOverLifetimeModule._curveModeMacro = ShaderMacro.getByName("RENDERER_VOL_CURVE_MODE");
|
|
37921
|
-
VelocityOverLifetimeModule._isRandomMacro = ShaderMacro.getByName("RENDERER_VOL_IS_RANDOM_TWO");
|
|
37922
|
-
VelocityOverLifetimeModule._minConstantProperty = ShaderProperty.getByName("renderer_VOLMinConst");
|
|
37923
|
-
VelocityOverLifetimeModule._maxConstantProperty = ShaderProperty.getByName("renderer_VOLMaxConst");
|
|
37924
|
-
VelocityOverLifetimeModule._minGradientXProperty = ShaderProperty.getByName("renderer_VOLMinGradientX");
|
|
37925
|
-
VelocityOverLifetimeModule._minGradientYProperty = ShaderProperty.getByName("renderer_VOLMinGradientY");
|
|
37926
|
-
VelocityOverLifetimeModule._minGradientZProperty = ShaderProperty.getByName("renderer_VOLMinGradientZ");
|
|
37927
|
-
VelocityOverLifetimeModule._maxGradientXProperty = ShaderProperty.getByName("renderer_VOLMaxGradientX");
|
|
37928
|
-
VelocityOverLifetimeModule._maxGradientYProperty = ShaderProperty.getByName("renderer_VOLMaxGradientY");
|
|
37929
|
-
VelocityOverLifetimeModule._maxGradientZProperty = ShaderProperty.getByName("renderer_VOLMaxGradientZ");
|
|
37930
|
-
VelocityOverLifetimeModule._spaceProperty = ShaderProperty.getByName("renderer_VOLSpace");
|
|
37931
|
-
VelocityOverLifetimeModule._orbitalConstantModeMacro = ShaderMacro.getByName("RENDERER_VOL_ORBITAL_CONSTANT_MODE");
|
|
37932
|
-
VelocityOverLifetimeModule._orbitalCurveModeMacro = ShaderMacro.getByName("RENDERER_VOL_ORBITAL_CURVE_MODE");
|
|
37933
|
-
VelocityOverLifetimeModule._orbitalRandomModeMacro = ShaderMacro.getByName("RENDERER_VOL_ORBITAL_IS_RANDOM_TWO");
|
|
37934
|
-
VelocityOverLifetimeModule._radialConstantModeMacro = ShaderMacro.getByName("RENDERER_VOL_RADIAL_CONSTANT_MODE");
|
|
37935
|
-
VelocityOverLifetimeModule._radialCurveModeMacro = ShaderMacro.getByName("RENDERER_VOL_RADIAL_CURVE_MODE");
|
|
37936
|
-
VelocityOverLifetimeModule._radialRandomModeMacro = ShaderMacro.getByName("RENDERER_VOL_RADIAL_IS_RANDOM_TWO");
|
|
37937
|
-
VelocityOverLifetimeModule._orbitalMinConstantProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinConst");
|
|
37938
|
-
VelocityOverLifetimeModule._orbitalMaxConstantProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxConst");
|
|
37939
|
-
VelocityOverLifetimeModule._orbitalMinCurveXProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinCurveX");
|
|
37940
|
-
VelocityOverLifetimeModule._orbitalMinCurveYProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinCurveY");
|
|
37941
|
-
VelocityOverLifetimeModule._orbitalMinCurveZProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinCurveZ");
|
|
37942
|
-
VelocityOverLifetimeModule._orbitalMaxCurveXProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxCurveX");
|
|
37943
|
-
VelocityOverLifetimeModule._orbitalMaxCurveYProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxCurveY");
|
|
37944
|
-
VelocityOverLifetimeModule._orbitalMaxCurveZProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxCurveZ");
|
|
37945
|
-
VelocityOverLifetimeModule._radialMinConstantProperty = ShaderProperty.getByName("renderer_VOLRadialMinConst");
|
|
37946
|
-
VelocityOverLifetimeModule._radialMaxConstantProperty = ShaderProperty.getByName("renderer_VOLRadialMaxConst");
|
|
37947
|
-
VelocityOverLifetimeModule._radialMinCurveProperty = ShaderProperty.getByName("renderer_VOLRadialMinCurve");
|
|
37948
|
-
VelocityOverLifetimeModule._radialMaxCurveProperty = ShaderProperty.getByName("renderer_VOLRadialMaxCurve");
|
|
37949
|
-
VelocityOverLifetimeModule._offsetProperty = ShaderProperty.getByName("renderer_VOLOffset");
|
|
37985
|
+
/** @internal */ VelocityOverLifetimeModule._constantModeMacro = ShaderMacro.getByName("RENDERER_VOL_CONSTANT_MODE");
|
|
37986
|
+
/** @internal */ VelocityOverLifetimeModule._curveModeMacro = ShaderMacro.getByName("RENDERER_VOL_CURVE_MODE");
|
|
37987
|
+
/** @internal */ VelocityOverLifetimeModule._isRandomMacro = ShaderMacro.getByName("RENDERER_VOL_IS_RANDOM_TWO");
|
|
37988
|
+
/** @internal */ VelocityOverLifetimeModule._minConstantProperty = ShaderProperty.getByName("renderer_VOLMinConst");
|
|
37989
|
+
/** @internal */ VelocityOverLifetimeModule._maxConstantProperty = ShaderProperty.getByName("renderer_VOLMaxConst");
|
|
37990
|
+
/** @internal */ VelocityOverLifetimeModule._minGradientXProperty = ShaderProperty.getByName("renderer_VOLMinGradientX");
|
|
37991
|
+
/** @internal */ VelocityOverLifetimeModule._minGradientYProperty = ShaderProperty.getByName("renderer_VOLMinGradientY");
|
|
37992
|
+
/** @internal */ VelocityOverLifetimeModule._minGradientZProperty = ShaderProperty.getByName("renderer_VOLMinGradientZ");
|
|
37993
|
+
/** @internal */ VelocityOverLifetimeModule._maxGradientXProperty = ShaderProperty.getByName("renderer_VOLMaxGradientX");
|
|
37994
|
+
/** @internal */ VelocityOverLifetimeModule._maxGradientYProperty = ShaderProperty.getByName("renderer_VOLMaxGradientY");
|
|
37995
|
+
/** @internal */ VelocityOverLifetimeModule._maxGradientZProperty = ShaderProperty.getByName("renderer_VOLMaxGradientZ");
|
|
37996
|
+
/** @internal */ VelocityOverLifetimeModule._spaceProperty = ShaderProperty.getByName("renderer_VOLSpace");
|
|
37997
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalConstantModeMacro = ShaderMacro.getByName("RENDERER_VOL_ORBITAL_CONSTANT_MODE");
|
|
37998
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalCurveModeMacro = ShaderMacro.getByName("RENDERER_VOL_ORBITAL_CURVE_MODE");
|
|
37999
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalRandomModeMacro = ShaderMacro.getByName("RENDERER_VOL_ORBITAL_IS_RANDOM_TWO");
|
|
38000
|
+
/** @internal */ VelocityOverLifetimeModule._radialConstantModeMacro = ShaderMacro.getByName("RENDERER_VOL_RADIAL_CONSTANT_MODE");
|
|
38001
|
+
/** @internal */ VelocityOverLifetimeModule._radialCurveModeMacro = ShaderMacro.getByName("RENDERER_VOL_RADIAL_CURVE_MODE");
|
|
38002
|
+
/** @internal */ VelocityOverLifetimeModule._radialRandomModeMacro = ShaderMacro.getByName("RENDERER_VOL_RADIAL_IS_RANDOM_TWO");
|
|
38003
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMinConstantProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinConst");
|
|
38004
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMaxConstantProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxConst");
|
|
38005
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMinCurveXProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinCurveX");
|
|
38006
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMinCurveYProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinCurveY");
|
|
38007
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMinCurveZProperty = ShaderProperty.getByName("renderer_VOLOrbitalMinCurveZ");
|
|
38008
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMaxCurveXProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxCurveX");
|
|
38009
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMaxCurveYProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxCurveY");
|
|
38010
|
+
/** @internal */ VelocityOverLifetimeModule._orbitalMaxCurveZProperty = ShaderProperty.getByName("renderer_VOLOrbitalMaxCurveZ");
|
|
38011
|
+
/** @internal */ VelocityOverLifetimeModule._radialMinConstantProperty = ShaderProperty.getByName("renderer_VOLRadialMinConst");
|
|
38012
|
+
/** @internal */ VelocityOverLifetimeModule._radialMaxConstantProperty = ShaderProperty.getByName("renderer_VOLRadialMaxConst");
|
|
38013
|
+
/** @internal */ VelocityOverLifetimeModule._radialMinCurveProperty = ShaderProperty.getByName("renderer_VOLRadialMinCurve");
|
|
38014
|
+
/** @internal */ VelocityOverLifetimeModule._radialMaxCurveProperty = ShaderProperty.getByName("renderer_VOLRadialMaxCurve");
|
|
38015
|
+
/** @internal */ VelocityOverLifetimeModule._offsetProperty = ShaderProperty.getByName("renderer_VOLOffset");
|
|
37950
38016
|
__decorate([
|
|
37951
38017
|
ignoreClone
|
|
37952
38018
|
], VelocityOverLifetimeModule.prototype, "_velocityRand", void 0);
|
|
@@ -38602,6 +38668,7 @@ __decorate([
|
|
|
38602
38668
|
}
|
|
38603
38669
|
};
|
|
38604
38670
|
/**
|
|
38671
|
+
* @internal
|
|
38605
38672
|
* @inheritdoc
|
|
38606
38673
|
*/ _proto._onClone = function _onClone(target) {
|
|
38607
38674
|
target._setTransformFeedback();
|
|
@@ -40363,6 +40430,7 @@ __decorate([
|
|
|
40363
40430
|
}
|
|
40364
40431
|
};
|
|
40365
40432
|
/**
|
|
40433
|
+
* @internal
|
|
40366
40434
|
* @inheritdoc
|
|
40367
40435
|
*/ _proto._onClone = function _onClone(target) {
|
|
40368
40436
|
target.mesh = this._mesh;
|
|
@@ -40473,13 +40541,13 @@ __decorate([
|
|
|
40473
40541
|
}({});
|
|
40474
40542
|
|
|
40475
40543
|
/**
|
|
40476
|
-
*
|
|
40477
|
-
*
|
|
40544
|
+
* Renders a trail by sampling the entity's world position during render updates.
|
|
40545
|
+
* Trail length depends on sampled movement and point lifetime.
|
|
40478
40546
|
*/ var TrailRenderer = /*#__PURE__*/ function(Renderer) {
|
|
40479
40547
|
_inherits(TrailRenderer, Renderer);
|
|
40480
40548
|
function TrailRenderer(entity) {
|
|
40481
40549
|
var _this;
|
|
40482
|
-
_this = Renderer.call(this, entity) || this, /** Whether
|
|
40550
|
+
_this = Renderer.call(this, entity) || this, /** Whether to record new trail points. */ _this.emitting = true, /** Minimum world-space distance from the last recorded point before adding a sample. */ _this.minVertexDistance = 0.1, /** Full width in world units over normalized trail distance: head (0) to tail (1). */ _this.widthCurve = new ParticleCurve(new CurveKey(0, 1), new CurveKey(1, 1)), /** Linear HDR color and opacity over normalized trail distance: head (0) to tail (1). */ _this.colorGradient = new ParticleGradient([
|
|
40483
40551
|
new GradientColorKey(0, new Color(1, 1, 1, 1)),
|
|
40484
40552
|
new GradientColorKey(1, new Color(1, 1, 1, 1))
|
|
40485
40553
|
], [
|
|
@@ -40852,7 +40920,7 @@ __decorate([
|
|
|
40852
40920
|
{
|
|
40853
40921
|
key: "time",
|
|
40854
40922
|
get: /**
|
|
40855
|
-
*
|
|
40923
|
+
* Point lifetime in seconds.
|
|
40856
40924
|
*/ function get() {
|
|
40857
40925
|
return this._time;
|
|
40858
40926
|
},
|