@galacean/engine-core 2.0.0-alpha.47 → 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 +190 -123
- package/dist/main.js.map +1 -1
- package/dist/module.js +190 -123
- 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/material/Material.d.ts +3 -0
- package/types/mesh/MeshRenderer.d.ts +1 -0
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.48",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.48"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "2.0.0-alpha.
|
|
24
|
+
"@galacean/engine-design": "2.0.0-alpha.48"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
|
@@ -4,6 +4,7 @@ import { SubPrimitiveChunk } from "../../RenderPipeline/SubPrimitiveChunk";
|
|
|
4
4
|
import { SpriteTileMode } from "../enums/SpriteTileMode";
|
|
5
5
|
import { Sprite } from "../sprite";
|
|
6
6
|
/**
|
|
7
|
+
* @internal
|
|
7
8
|
* Interface for sprite renderer.
|
|
8
9
|
*/
|
|
9
10
|
export interface ISpriteRenderer {
|
|
@@ -104,6 +104,7 @@ export declare class SpriteRenderer extends Renderer implements ISpriteRenderer
|
|
|
104
104
|
*/
|
|
105
105
|
_updateTransformShaderData(context: RenderContext, onlyMVP: boolean): void;
|
|
106
106
|
/**
|
|
107
|
+
* @internal
|
|
107
108
|
* @inheritdoc
|
|
108
109
|
*/
|
|
109
110
|
_onClone(target: SpriteRenderer): void;
|
package/types/Camera.d.ts
CHANGED
|
@@ -331,10 +331,12 @@ export declare class Camera extends Component {
|
|
|
331
331
|
*/
|
|
332
332
|
resetReplacementShader(): void;
|
|
333
333
|
/**
|
|
334
|
+
* @internal
|
|
334
335
|
* @inheritdoc
|
|
335
336
|
*/
|
|
336
337
|
_onEnableInScene(): void;
|
|
337
338
|
/**
|
|
339
|
+
* @internal
|
|
338
340
|
* @inheritdoc
|
|
339
341
|
*/
|
|
340
342
|
_onDisableInScene(): void;
|
package/types/Engine.d.ts
CHANGED
package/types/Renderer.d.ts
CHANGED
|
@@ -33,9 +33,11 @@ export declare class Renderer extends Component implements ICloneHook<Renderer>
|
|
|
33
33
|
_rendererIndex: number;
|
|
34
34
|
/** @internal */
|
|
35
35
|
_globalShaderMacro: ShaderMacroCollection;
|
|
36
|
+
/** @internal */
|
|
36
37
|
_renderFrameCount: number;
|
|
37
38
|
/** @internal */
|
|
38
39
|
_maskInteraction: SpriteMaskInteraction;
|
|
40
|
+
/** @internal */
|
|
39
41
|
_maskLayer: SpriteMaskLayer;
|
|
40
42
|
protected _overrideUpdate: boolean;
|
|
41
43
|
protected _materials: Material[];
|
|
@@ -147,6 +149,7 @@ export declare class Renderer extends Component implements ICloneHook<Renderer>
|
|
|
147
149
|
*/
|
|
148
150
|
_prepareRender(context: RenderContext): void;
|
|
149
151
|
/**
|
|
152
|
+
* @internal
|
|
150
153
|
* @inheritdoc
|
|
151
154
|
*/
|
|
152
155
|
_onClone(target: Renderer): void;
|
package/types/Signal.d.ts
CHANGED
package/types/SystemInfo.d.ts
CHANGED
package/types/Transform.d.ts
CHANGED
|
@@ -123,6 +123,9 @@ export declare class Buffer extends GraphicsResource {
|
|
|
123
123
|
* Mark buffer as readable, the `data` property will be not accessible anymore.
|
|
124
124
|
*/
|
|
125
125
|
markAsUnreadable(): void;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
126
129
|
_rebuild(): void;
|
|
127
130
|
/**
|
|
128
131
|
* @internal
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { DataType } from "../base/Constant";
|
|
2
2
|
import { IndexFormat } from "./enums/IndexFormat";
|
|
3
3
|
import { VertexElementFormat } from "./enums/VertexElementFormat";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
4
7
|
export interface ElementInfo {
|
|
5
8
|
size: number;
|
|
6
9
|
type: DataType;
|
|
7
10
|
normalized: boolean;
|
|
8
11
|
normalizedScaleFactor: number;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
10
16
|
export declare class BufferUtil {
|
|
11
17
|
static _getGLIndexType(indexFormat: IndexFormat): DataType;
|
|
12
18
|
static _getGLIndexByteCount(indexFormat: IndexFormat): number;
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
19
|
static _getElementInfo(format: VertexElementFormat): ElementInfo;
|
|
17
20
|
}
|
package/types/graphic/Mesh.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ export declare class Material extends ReferResource implements IClone {
|
|
|
36
36
|
* @param target - target material
|
|
37
37
|
*/
|
|
38
38
|
cloneTo(target: Material): void;
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
39
42
|
_addReferCount(value: number): void;
|
|
40
43
|
protected _cloneToAndModifyName(target: Material): void;
|
|
41
44
|
/**
|
|
@@ -124,6 +124,9 @@ export declare class PrimitiveMesh {
|
|
|
124
124
|
* @internal
|
|
125
125
|
*/
|
|
126
126
|
static _setPlaneData(planeMesh: ModelMesh, width: number, height: number, horizontalSegments: number, verticalSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean, restoreVertexBuffer?: Buffer): void;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
127
130
|
static _setCylinderData(cylinderMesh: ModelMesh, radiusTop: number, radiusBottom: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean, restoreVertexBuffer?: Buffer): void;
|
|
128
131
|
/**
|
|
129
132
|
* @internal
|
|
@@ -133,6 +136,9 @@ export declare class PrimitiveMesh {
|
|
|
133
136
|
* @internal
|
|
134
137
|
*/
|
|
135
138
|
static _setConeData(coneMesh: ModelMesh, radius: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean, restoreVertexBuffer?: Buffer): void;
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
136
142
|
static _setCapsuleData(capsuleMesh: ModelMesh, radius: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean, restoreVertexBuffer?: Buffer): void;
|
|
137
143
|
private static _initialize;
|
|
138
144
|
private static _generateIndices;
|
|
@@ -8,12 +8,19 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
8
8
|
* Color over lifetime module.
|
|
9
9
|
*/
|
|
10
10
|
export declare class ColorOverLifetimeModule extends ParticleGeneratorModule {
|
|
11
|
+
/** @internal */
|
|
11
12
|
static readonly _gradientMacro: ShaderMacro;
|
|
13
|
+
/** @internal */
|
|
12
14
|
static readonly _randomGradientsMacro: ShaderMacro;
|
|
15
|
+
/** @internal */
|
|
13
16
|
static readonly _minGradientColor: ShaderProperty;
|
|
17
|
+
/** @internal */
|
|
14
18
|
static readonly _minGradientAlpha: ShaderProperty;
|
|
19
|
+
/** @internal */
|
|
15
20
|
static readonly _maxGradientColor: ShaderProperty;
|
|
21
|
+
/** @internal */
|
|
16
22
|
static readonly _maxGradientAlpha: ShaderProperty;
|
|
23
|
+
/** @internal */
|
|
17
24
|
static readonly _gradientKeysCount: ShaderProperty;
|
|
18
25
|
/** Color gradient over lifetime. */
|
|
19
26
|
color: ParticleCompositeGradient;
|
|
@@ -15,6 +15,7 @@ export declare class EmissionModule extends ParticleGeneratorModule {
|
|
|
15
15
|
rateOverTime: ParticleCompositeCurve;
|
|
16
16
|
/** The rate at which the emitter spawns new particles over distance. */
|
|
17
17
|
rateOverDistance: ParticleCompositeCurve;
|
|
18
|
+
/** @internal */
|
|
18
19
|
_shape: BaseShape;
|
|
19
20
|
/** @internal */
|
|
20
21
|
_shapeRand: Rand;
|
|
@@ -9,31 +9,57 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
9
9
|
* Limit velocity over lifetime module.
|
|
10
10
|
*/
|
|
11
11
|
export declare class LimitVelocityOverLifetimeModule extends ParticleGeneratorModule {
|
|
12
|
+
/** @internal */
|
|
12
13
|
static readonly _enabledMacro: ShaderMacro;
|
|
14
|
+
/** @internal */
|
|
13
15
|
static readonly _separateAxesMacro: ShaderMacro;
|
|
16
|
+
/** @internal */
|
|
14
17
|
static readonly _speedConstantModeMacro: ShaderMacro;
|
|
18
|
+
/** @internal */
|
|
15
19
|
static readonly _speedCurveModeMacro: ShaderMacro;
|
|
20
|
+
/** @internal */
|
|
16
21
|
static readonly _speedIsRandomMacro: ShaderMacro;
|
|
22
|
+
/** @internal */
|
|
17
23
|
static readonly _dragCurveModeMacro: ShaderMacro;
|
|
24
|
+
/** @internal */
|
|
18
25
|
static readonly _dragIsRandomMacro: ShaderMacro;
|
|
26
|
+
/** @internal */
|
|
19
27
|
static readonly _multiplyDragBySizeMacro: ShaderMacro;
|
|
28
|
+
/** @internal */
|
|
20
29
|
static readonly _multiplyDragByVelocityMacro: ShaderMacro;
|
|
30
|
+
/** @internal */
|
|
21
31
|
static readonly _speedMaxConstProperty: ShaderProperty;
|
|
32
|
+
/** @internal */
|
|
22
33
|
static readonly _speedMinConstProperty: ShaderProperty;
|
|
34
|
+
/** @internal */
|
|
23
35
|
static readonly _speedMaxCurveProperty: ShaderProperty;
|
|
36
|
+
/** @internal */
|
|
24
37
|
static readonly _speedMinCurveProperty: ShaderProperty;
|
|
38
|
+
/** @internal */
|
|
25
39
|
static readonly _speedMaxConstVecProperty: ShaderProperty;
|
|
40
|
+
/** @internal */
|
|
26
41
|
static readonly _speedMinConstVecProperty: ShaderProperty;
|
|
42
|
+
/** @internal */
|
|
27
43
|
static readonly _speedXMaxCurveProperty: ShaderProperty;
|
|
44
|
+
/** @internal */
|
|
28
45
|
static readonly _speedXMinCurveProperty: ShaderProperty;
|
|
46
|
+
/** @internal */
|
|
29
47
|
static readonly _speedYMaxCurveProperty: ShaderProperty;
|
|
48
|
+
/** @internal */
|
|
30
49
|
static readonly _speedYMinCurveProperty: ShaderProperty;
|
|
50
|
+
/** @internal */
|
|
31
51
|
static readonly _speedZMaxCurveProperty: ShaderProperty;
|
|
52
|
+
/** @internal */
|
|
32
53
|
static readonly _speedZMinCurveProperty: ShaderProperty;
|
|
54
|
+
/** @internal */
|
|
33
55
|
static readonly _dampenProperty: ShaderProperty;
|
|
56
|
+
/** @internal */
|
|
34
57
|
static readonly _dragConstantProperty: ShaderProperty;
|
|
58
|
+
/** @internal */
|
|
35
59
|
static readonly _dragMaxCurveProperty: ShaderProperty;
|
|
60
|
+
/** @internal */
|
|
36
61
|
static readonly _dragMinCurveProperty: ShaderProperty;
|
|
62
|
+
/** @internal */
|
|
37
63
|
static readonly _spaceProperty: ShaderProperty;
|
|
38
64
|
/** @internal */
|
|
39
65
|
_speedRand: Rand;
|
|
@@ -57,6 +57,7 @@ export declare class MainModule extends DataObject implements ICloneHook<MainMod
|
|
|
57
57
|
readonly _startSizeRand: Rand;
|
|
58
58
|
/** @internal */
|
|
59
59
|
readonly _startRotationRand: Rand;
|
|
60
|
+
/** @internal */
|
|
60
61
|
readonly _gravityModifierRand: Rand;
|
|
61
62
|
private _startLifetime;
|
|
62
63
|
private _startSpeed;
|
|
@@ -134,6 +135,7 @@ export declare class MainModule extends DataObject implements ICloneHook<MainMod
|
|
|
134
135
|
*/
|
|
135
136
|
_updateShaderData(shaderData: ShaderData): void;
|
|
136
137
|
/**
|
|
138
|
+
* @internal
|
|
137
139
|
* @inheritdoc
|
|
138
140
|
*/
|
|
139
141
|
_onClone(target: MainModule): void;
|
|
@@ -8,18 +8,31 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
8
8
|
* Adds simplex noise-based turbulence displacement to particles.
|
|
9
9
|
*/
|
|
10
10
|
export declare class NoiseModule extends ParticleGeneratorModule {
|
|
11
|
+
/** @internal */
|
|
11
12
|
static readonly _enabledMacro: ShaderMacro;
|
|
13
|
+
/** @internal */
|
|
12
14
|
static readonly _strengthCurveMacro: ShaderMacro;
|
|
15
|
+
/** @internal */
|
|
13
16
|
static readonly _strengthIsRandomTwoMacro: ShaderMacro;
|
|
17
|
+
/** @internal */
|
|
14
18
|
static readonly _separateAxesMacro: ShaderMacro;
|
|
19
|
+
/** @internal */
|
|
15
20
|
static readonly _noiseProperty: ShaderProperty;
|
|
21
|
+
/** @internal */
|
|
16
22
|
static readonly _noiseOctaveProperty: ShaderProperty;
|
|
23
|
+
/** @internal */
|
|
17
24
|
static readonly _strengthMinConstProperty: ShaderProperty;
|
|
25
|
+
/** @internal */
|
|
18
26
|
static readonly _strengthMaxCurveXProperty: ShaderProperty;
|
|
27
|
+
/** @internal */
|
|
19
28
|
static readonly _strengthMaxCurveYProperty: ShaderProperty;
|
|
29
|
+
/** @internal */
|
|
20
30
|
static readonly _strengthMaxCurveZProperty: ShaderProperty;
|
|
31
|
+
/** @internal */
|
|
21
32
|
static readonly _strengthMinCurveXProperty: ShaderProperty;
|
|
33
|
+
/** @internal */
|
|
22
34
|
static readonly _strengthMinCurveYProperty: ShaderProperty;
|
|
35
|
+
/** @internal */
|
|
23
36
|
static readonly _strengthMinCurveZProperty: ShaderProperty;
|
|
24
37
|
private _enabledModuleMacro;
|
|
25
38
|
private _strengthCurveModeMacro;
|
|
@@ -8,17 +8,29 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
8
8
|
* Rotate particles throughout their lifetime.
|
|
9
9
|
*/
|
|
10
10
|
export declare class RotationOverLifetimeModule extends ParticleGeneratorModule {
|
|
11
|
+
/** @internal */
|
|
11
12
|
static readonly _constantModeMacro: ShaderMacro;
|
|
13
|
+
/** @internal */
|
|
12
14
|
static readonly _curveModeMacro: ShaderMacro;
|
|
15
|
+
/** @internal */
|
|
13
16
|
static readonly _isSeparateMacro: ShaderMacro;
|
|
17
|
+
/** @internal */
|
|
14
18
|
static readonly _isRandomTwoMacro: ShaderMacro;
|
|
19
|
+
/** @internal */
|
|
15
20
|
static readonly _minConstantProperty: ShaderProperty;
|
|
21
|
+
/** @internal */
|
|
16
22
|
static readonly _minCurveXProperty: ShaderProperty;
|
|
23
|
+
/** @internal */
|
|
17
24
|
static readonly _minCurveYProperty: ShaderProperty;
|
|
25
|
+
/** @internal */
|
|
18
26
|
static readonly _minCurveZProperty: ShaderProperty;
|
|
27
|
+
/** @internal */
|
|
19
28
|
static readonly _maxConstantProperty: ShaderProperty;
|
|
29
|
+
/** @internal */
|
|
20
30
|
static readonly _maxCurveXProperty: ShaderProperty;
|
|
31
|
+
/** @internal */
|
|
21
32
|
static readonly _maxCurveYProperty: ShaderProperty;
|
|
33
|
+
/** @internal */
|
|
22
34
|
static readonly _maxCurveZProperty: ShaderProperty;
|
|
23
35
|
/** Specifies whether the rotation is separate on each axis, when disabled, only `rotationZ` is used. */
|
|
24
36
|
separateAxes: boolean;
|
|
@@ -9,14 +9,23 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
9
9
|
* Size over lifetime module.
|
|
10
10
|
*/
|
|
11
11
|
export declare class SizeOverLifetimeModule extends ParticleGeneratorModule {
|
|
12
|
+
/** @internal */
|
|
12
13
|
static readonly _curveModeMacro: ShaderMacro;
|
|
14
|
+
/** @internal */
|
|
13
15
|
static readonly _isSeparateMacro: ShaderMacro;
|
|
16
|
+
/** @internal */
|
|
14
17
|
static readonly _isRandomTwoMacro: ShaderMacro;
|
|
18
|
+
/** @internal */
|
|
15
19
|
static readonly _minCurveXProperty: ShaderProperty;
|
|
20
|
+
/** @internal */
|
|
16
21
|
static readonly _minCurveYProperty: ShaderProperty;
|
|
22
|
+
/** @internal */
|
|
17
23
|
static readonly _minCurveZProperty: ShaderProperty;
|
|
24
|
+
/** @internal */
|
|
18
25
|
static readonly _maxCurveXProperty: ShaderProperty;
|
|
26
|
+
/** @internal */
|
|
19
27
|
static readonly _maxCurveYProperty: ShaderProperty;
|
|
28
|
+
/** @internal */
|
|
20
29
|
static readonly _maxCurveZProperty: ShaderProperty;
|
|
21
30
|
/** @internal */
|
|
22
31
|
_sizeRand: Rand;
|
|
@@ -10,36 +10,67 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
10
10
|
* Velocity over lifetime module.
|
|
11
11
|
*/
|
|
12
12
|
export declare class VelocityOverLifetimeModule extends ParticleGeneratorModule {
|
|
13
|
+
/** @internal */
|
|
13
14
|
static readonly _constantModeMacro: ShaderMacro;
|
|
15
|
+
/** @internal */
|
|
14
16
|
static readonly _curveModeMacro: ShaderMacro;
|
|
17
|
+
/** @internal */
|
|
15
18
|
static readonly _isRandomMacro: ShaderMacro;
|
|
19
|
+
/** @internal */
|
|
16
20
|
static readonly _minConstantProperty: ShaderProperty;
|
|
21
|
+
/** @internal */
|
|
17
22
|
static readonly _maxConstantProperty: ShaderProperty;
|
|
23
|
+
/** @internal */
|
|
18
24
|
static readonly _minGradientXProperty: ShaderProperty;
|
|
25
|
+
/** @internal */
|
|
19
26
|
static readonly _minGradientYProperty: ShaderProperty;
|
|
27
|
+
/** @internal */
|
|
20
28
|
static readonly _minGradientZProperty: ShaderProperty;
|
|
29
|
+
/** @internal */
|
|
21
30
|
static readonly _maxGradientXProperty: ShaderProperty;
|
|
31
|
+
/** @internal */
|
|
22
32
|
static readonly _maxGradientYProperty: ShaderProperty;
|
|
33
|
+
/** @internal */
|
|
23
34
|
static readonly _maxGradientZProperty: ShaderProperty;
|
|
35
|
+
/** @internal */
|
|
24
36
|
static readonly _spaceProperty: ShaderProperty;
|
|
37
|
+
/** @internal */
|
|
25
38
|
static readonly _orbitalConstantModeMacro: ShaderMacro;
|
|
39
|
+
/** @internal */
|
|
26
40
|
static readonly _orbitalCurveModeMacro: ShaderMacro;
|
|
41
|
+
/** @internal */
|
|
27
42
|
static readonly _orbitalRandomModeMacro: ShaderMacro;
|
|
43
|
+
/** @internal */
|
|
28
44
|
static readonly _radialConstantModeMacro: ShaderMacro;
|
|
45
|
+
/** @internal */
|
|
29
46
|
static readonly _radialCurveModeMacro: ShaderMacro;
|
|
47
|
+
/** @internal */
|
|
30
48
|
static readonly _radialRandomModeMacro: ShaderMacro;
|
|
49
|
+
/** @internal */
|
|
31
50
|
static readonly _orbitalMinConstantProperty: ShaderProperty;
|
|
51
|
+
/** @internal */
|
|
32
52
|
static readonly _orbitalMaxConstantProperty: ShaderProperty;
|
|
53
|
+
/** @internal */
|
|
33
54
|
static readonly _orbitalMinCurveXProperty: ShaderProperty;
|
|
55
|
+
/** @internal */
|
|
34
56
|
static readonly _orbitalMinCurveYProperty: ShaderProperty;
|
|
57
|
+
/** @internal */
|
|
35
58
|
static readonly _orbitalMinCurveZProperty: ShaderProperty;
|
|
59
|
+
/** @internal */
|
|
36
60
|
static readonly _orbitalMaxCurveXProperty: ShaderProperty;
|
|
61
|
+
/** @internal */
|
|
37
62
|
static readonly _orbitalMaxCurveYProperty: ShaderProperty;
|
|
63
|
+
/** @internal */
|
|
38
64
|
static readonly _orbitalMaxCurveZProperty: ShaderProperty;
|
|
65
|
+
/** @internal */
|
|
39
66
|
static readonly _radialMinConstantProperty: ShaderProperty;
|
|
67
|
+
/** @internal */
|
|
40
68
|
static readonly _radialMaxConstantProperty: ShaderProperty;
|
|
69
|
+
/** @internal */
|
|
41
70
|
static readonly _radialMinCurveProperty: ShaderProperty;
|
|
71
|
+
/** @internal */
|
|
42
72
|
static readonly _radialMaxCurveProperty: ShaderProperty;
|
|
73
|
+
/** @internal */
|
|
43
74
|
static readonly _offsetProperty: ShaderProperty;
|
|
44
75
|
/** @internal */
|
|
45
76
|
_velocityRand: Rand;
|
|
@@ -11,6 +11,7 @@ import { ColliderShape } from "./shape";
|
|
|
11
11
|
export declare class PhysicsScene {
|
|
12
12
|
private static _collision;
|
|
13
13
|
private static _identityQuaternion;
|
|
14
|
+
private static _tempDirection;
|
|
14
15
|
private static _scriptIndexSetter;
|
|
15
16
|
private _scene;
|
|
16
17
|
private _restTime;
|
|
@@ -317,6 +318,7 @@ export declare class PhysicsScene {
|
|
|
317
318
|
*/
|
|
318
319
|
_destroy(): void;
|
|
319
320
|
private _dispatchEvents;
|
|
321
|
+
private static _normalizeDirection;
|
|
320
322
|
private _setGravity;
|
|
321
323
|
private _createPreFilter;
|
|
322
324
|
private _createHitCallback;
|
|
@@ -52,14 +52,17 @@ export declare class PostProcess extends Component {
|
|
|
52
52
|
*/
|
|
53
53
|
removeEffect<T extends typeof PostProcessEffect>(type: T): InstanceType<T>;
|
|
54
54
|
/**
|
|
55
|
+
* @internal
|
|
55
56
|
* @inheritdoc
|
|
56
57
|
*/
|
|
57
58
|
_onEnableInScene(): void;
|
|
58
59
|
/**
|
|
60
|
+
* @internal
|
|
59
61
|
* @inheritdoc
|
|
60
62
|
*/
|
|
61
63
|
_onDisableInScene(): void;
|
|
62
64
|
/**
|
|
65
|
+
* @internal
|
|
63
66
|
* @inheritdoc
|
|
64
67
|
*/
|
|
65
68
|
_onDestroy(): void;
|