@galacean/engine-core 0.0.0-experimental-stateMachine.0 → 0.0.0-experimental-1.3-xr.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.
Files changed (102) hide show
  1. package/dist/main.js +18449 -16078
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +18449 -16078
  4. package/dist/module.js +18445 -16079
  5. package/dist/module.js.map +1 -1
  6. package/package.json +7 -7
  7. package/types/2d/assembler/ISpriteAssembler.d.ts +1 -0
  8. package/types/2d/sprite/SpriteMask.d.ts +11 -0
  9. package/types/2d/sprite/SpriteRenderer.d.ts +6 -3
  10. package/types/2d/text/CharRenderInfo.d.ts +1 -0
  11. package/types/2d/text/TextRenderer.d.ts +10 -4
  12. package/types/Camera.d.ts +18 -7
  13. package/types/DisorderedArray.d.ts +2 -2
  14. package/types/Engine.d.ts +3 -0
  15. package/types/Entity.d.ts +1 -1
  16. package/types/RenderPipeline/BasicRenderPipeline.d.ts +11 -5
  17. package/types/RenderPipeline/BatchUtils.d.ts +1 -0
  18. package/types/RenderPipeline/BatcherManager.d.ts +1 -0
  19. package/types/RenderPipeline/DynamicGeometryData.d.ts +1 -0
  20. package/types/RenderPipeline/DynamicGeometryDataManager.d.ts +1 -0
  21. package/types/RenderPipeline/MaskManager.d.ts +1 -0
  22. package/types/RenderPipeline/PipelinePass.d.ts +1 -1
  23. package/types/RenderPipeline/PrimitiveChunk.d.ts +1 -0
  24. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +1 -0
  25. package/types/RenderPipeline/RenderData2D.d.ts +14 -0
  26. package/types/RenderPipeline/RenderElement.d.ts +9 -6
  27. package/types/RenderPipeline/RenderPass.d.ts +55 -0
  28. package/types/RenderPipeline/RenderQueue.d.ts +1 -30
  29. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +1 -0
  30. package/types/RenderPipeline/SubRenderElement.d.ts +22 -0
  31. package/types/RenderPipeline/VertexArea.d.ts +1 -0
  32. package/types/RenderPipeline/enums/ForceUploadShaderDataFlag.d.ts +15 -0
  33. package/types/RenderPipeline/enums/RenderDataUsage.d.ts +13 -0
  34. package/types/RenderPipeline/index.d.ts +1 -1
  35. package/types/Renderer.d.ts +4 -3
  36. package/types/Scene.d.ts +6 -0
  37. package/types/animation/Animator.d.ts +17 -17
  38. package/types/animation/AnimatorCondition.d.ts +3 -3
  39. package/types/animation/AnimatorController.d.ts +14 -3
  40. package/types/animation/AnimatorControllerParameter.d.ts +2 -2
  41. package/types/animation/AnimatorState.d.ts +6 -9
  42. package/types/animation/AnimatorStateMachine.d.ts +6 -1
  43. package/types/animation/AnimatorStateTransition.d.ts +51 -0
  44. package/types/animation/AnimatorTransition.d.ts +0 -33
  45. package/types/animation/enums/AnimatorConditionMode.d.ts +9 -0
  46. package/types/animation/index.d.ts +1 -1
  47. package/types/asset/AssetType.d.ts +2 -0
  48. package/types/clone/ComponentCloner.d.ts +1 -1
  49. package/types/enums/ReplacementFailureStrategy.d.ts +9 -0
  50. package/types/graphic/SubMesh.d.ts +3 -16
  51. package/types/graphic/SubPrimitive.d.ts +10 -0
  52. package/types/graphic/index.d.ts +1 -0
  53. package/types/index.d.ts +4 -1
  54. package/types/input/pointer/PointerEvent.d.ts +4 -0
  55. package/types/input/pointer/PointerEventType.d.ts +7 -0
  56. package/types/material/BaseMaterial.d.ts +1 -1
  57. package/types/mesh/Skin.d.ts +25 -9
  58. package/types/mesh/SkinnedMeshRenderer.d.ts +15 -24
  59. package/types/particle/ParticleGenerator.d.ts +20 -0
  60. package/types/particle/ParticleRenderer.d.ts +3 -1
  61. package/types/particle/modules/EmissionModule.d.ts +6 -2
  62. package/types/particle/modules/MainModule.d.ts +49 -15
  63. package/types/particle/modules/ParticleCompositeCurve.d.ts +35 -10
  64. package/types/particle/modules/ParticleCurve.d.ts +16 -9
  65. package/types/particle/modules/ParticleGeneratorModule.d.ts +6 -2
  66. package/types/particle/modules/SizeOverLifetimeModule.d.ts +27 -8
  67. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +29 -8
  68. package/types/particle/modules/shape/BaseShape.d.ts +14 -4
  69. package/types/particle/modules/shape/BoxShape.d.ts +7 -2
  70. package/types/particle/modules/shape/CircleShape.d.ts +25 -8
  71. package/types/particle/modules/shape/ConeShape.d.ts +24 -8
  72. package/types/particle/modules/shape/HemisphereShape.d.ts +6 -2
  73. package/types/particle/modules/shape/SphereShape.d.ts +6 -2
  74. package/types/postProcess/PostProcessManager.d.ts +1 -0
  75. package/types/postProcess/effects/BloomEffect.d.ts +94 -0
  76. package/types/postProcess/effects/TonemappingEffect.d.ts +35 -0
  77. package/types/postProcess/effects/index.d.ts +2 -0
  78. package/types/postProcess/index.d.ts +3 -0
  79. package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
  80. package/types/shader/ShaderPass.d.ts +10 -0
  81. package/types/shader/enums/ShaderDataGroup.d.ts +4 -2
  82. package/types/shader/enums/ShaderPlatformTarget.d.ts +4 -0
  83. package/types/shader/enums/ShaderType.d.ts +1 -0
  84. package/types/shader/index.d.ts +1 -0
  85. package/types/shader/state/RenderState.d.ts +1 -0
  86. package/types/shaderlib/ShaderFactory.d.ts +2 -1
  87. package/types/texture/enums/TextureFormat.d.ts +2 -0
  88. package/types/ui/Image.d.ts +38 -0
  89. package/types/ui/RedBlackTree.d.ts +2 -0
  90. package/types/ui/UICanvas.d.ts +55 -0
  91. package/types/ui/UIRenderer.d.ts +14 -0
  92. package/types/ui/UITransform.d.ts +20 -0
  93. package/types/ui/enums/BlockingObjects.d.ts +6 -0
  94. package/types/ui/enums/CanvasRenderMode.d.ts +8 -0
  95. package/types/ui/enums/ResolutionAdaptationStrategy.d.ts +10 -0
  96. package/types/ui/index.d.ts +6 -0
  97. package/types/utils/ClearableObjectPool.d.ts +16 -0
  98. package/types/utils/ObjectPool.d.ts +16 -0
  99. package/types/utils/Pool.d.ts +12 -0
  100. package/types/utils/ReturnableObjectPool.d.ts +16 -0
  101. package/types/utils/index.d.ts +3 -0
  102. package/LICENSE +0 -21
@@ -4,16 +4,38 @@ import { ParticleCurve } from "./ParticleCurve";
4
4
  * Particle composite curve.
5
5
  */
6
6
  export declare class ParticleCompositeCurve {
7
- /** The curve mode. */
8
- mode: ParticleCurveMode;
9
- /** The min constant value used by the curve if mode is set to `TwoConstants`.*/
10
- constantMin: number;
11
- /** The max constant value used by the curve if mode is set to `TwoConstants`.*/
12
- constantMax: number;
13
- /** The min curve used by the curve if mode is set to `TwoCurves`. */
14
- curveMin: ParticleCurve;
15
- /** The max curve used by the curve if mode is set to `TwoCurves`. */
16
- curveMax: ParticleCurve;
7
+ private _updateManager;
8
+ private _mode;
9
+ private _constantMin;
10
+ private _constantMax;
11
+ private _curveMin;
12
+ private _curveMax;
13
+ private _updateDispatch;
14
+ /**
15
+ * The curve mode.
16
+ */
17
+ get mode(): ParticleCurveMode;
18
+ set mode(value: ParticleCurveMode);
19
+ /**
20
+ * The min constant value used by the curve if mode is set to `TwoConstants`.
21
+ */
22
+ get constantMin(): number;
23
+ set constantMin(value: number);
24
+ /**
25
+ * The max constant value used by the curve if mode is set to `TwoConstants`.
26
+ */
27
+ get constantMax(): number;
28
+ set constantMax(value: number);
29
+ /**
30
+ * The min curve used by the curve if mode is set to `TwoCurves`.
31
+ */
32
+ get curveMin(): ParticleCurve;
33
+ set curveMin(value: ParticleCurve);
34
+ /**
35
+ * The max curve used by the curve if mode is set to `TwoCurves`.
36
+ */
37
+ get curveMax(): ParticleCurve;
38
+ set curveMax(value: ParticleCurve);
17
39
  /**
18
40
  * The constant value used by the curve if mode is set to `Constant`.
19
41
  */
@@ -53,4 +75,7 @@ export declare class ParticleCompositeCurve {
53
75
  * @returns - The result curve value
54
76
  */
55
77
  evaluate(time: number, lerpFactor: number): number;
78
+ private _getMaxKeyValue;
79
+ private _getMinKeyValue;
80
+ private _onCurveChange;
56
81
  }
@@ -2,9 +2,11 @@
2
2
  * Particle curve.
3
3
  */
4
4
  export declare class ParticleCurve {
5
+ private _updateManager;
5
6
  private _keys;
6
7
  private _typeArray;
7
8
  private _typeArrayDirty;
9
+ private _updateDispatch;
8
10
  /**
9
11
  * The keys of the curve.
10
12
  */
@@ -41,16 +43,21 @@ export declare class ParticleCurve {
41
43
  * The key of the curve.
42
44
  */
43
45
  export declare class CurveKey {
44
- /** The key time. */
45
- time: number;
46
- /** The key value. */
47
- value: number;
46
+ private _updateManager;
47
+ private _time;
48
+ private _value;
49
+ /**
50
+ * The key time.
51
+ */
52
+ get time(): number;
53
+ set time(value: number);
54
+ /**
55
+ * The key value.
56
+ */
57
+ get value(): number;
58
+ set value(value: number);
48
59
  /**
49
60
  * Create a new key.
50
61
  */
51
- constructor(
52
- /** The key time. */
53
- time: number,
54
- /** The key value. */
55
- value: number);
62
+ constructor(time: number, value: number);
56
63
  }
@@ -4,8 +4,12 @@ import { ParticleGenerator } from "../ParticleGenerator";
4
4
  * Particle generator module.
5
5
  */
6
6
  export declare abstract class ParticleGeneratorModule {
7
- /** Specifies whether the module is enabled or not. */
8
- enabled: boolean;
9
7
  protected _generator: ParticleGenerator;
8
+ protected _enabled: boolean;
9
+ /**
10
+ * Specifies whether the module is enabled or not.
11
+ */
12
+ get enabled(): boolean;
13
+ set enabled(value: boolean);
10
14
  protected _enableMacro(shaderData: ShaderData, lastEnableMacro: ShaderMacro, enableMacro: ShaderMacro): ShaderMacro;
11
15
  }
@@ -1,5 +1,6 @@
1
1
  import { ShaderMacro } from "../../shader/ShaderMacro";
2
2
  import { ShaderProperty } from "../../shader/ShaderProperty";
3
+ import { ParticleGenerator } from "../ParticleGenerator";
3
4
  import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
4
5
  import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
5
6
  /**
@@ -15,20 +16,38 @@ export declare class SizeOverLifetimeModule extends ParticleGeneratorModule {
15
16
  static readonly _maxCurveXProperty: ShaderProperty;
16
17
  static readonly _maxCurveYProperty: ShaderProperty;
17
18
  static readonly _maxCurveZProperty: ShaderProperty;
18
- /** Specifies whether the Size is separate on each axis. */
19
- separateAxes: boolean;
20
- /** Size curve over lifetime for x axis. */
21
- sizeX: ParticleCompositeCurve;
22
- /** Size curve over lifetime for y axis. */
23
- sizeY: ParticleCompositeCurve;
24
- /** Size curve over lifetime for z axis. */
25
- sizeZ: ParticleCompositeCurve;
19
+ private _separateAxes;
20
+ private _sizeX;
21
+ private _sizeY;
22
+ private _sizeZ;
26
23
  private _enableSeparateMacro;
27
24
  private _isCurveMacro;
28
25
  private _isRandomTwoMacro;
26
+ /**
27
+ * Specifies whether the Size is separate on each axis.
28
+ */
29
+ set separateAxes(value: boolean);
30
+ get separateAxes(): boolean;
31
+ /**
32
+ * Size curve over lifetime for x axis.
33
+ */
34
+ get sizeX(): ParticleCompositeCurve;
35
+ set sizeX(value: ParticleCompositeCurve);
36
+ /**
37
+ * Size curve over lifetime for y axis.
38
+ */
39
+ get sizeY(): ParticleCompositeCurve;
40
+ set sizeY(value: ParticleCompositeCurve);
41
+ /**
42
+ * Size curve over lifetime for z axis.
43
+ */
44
+ get sizeZ(): ParticleCompositeCurve;
45
+ set sizeZ(value: ParticleCompositeCurve);
29
46
  /**
30
47
  * Size curve over lifetime.
31
48
  */
32
49
  get size(): ParticleCompositeCurve;
33
50
  set size(value: ParticleCompositeCurve);
51
+ constructor(generator: ParticleGenerator);
52
+ private _onCompositeCurveChange;
34
53
  }
@@ -3,6 +3,7 @@ import { ShaderProperty } from "../../shader/ShaderProperty";
3
3
  import { ParticleSimulationSpace } from "../enums/ParticleSimulationSpace";
4
4
  import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
5
5
  import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
6
+ import { ParticleGenerator } from "../ParticleGenerator";
6
7
  /**
7
8
  * Velocity over lifetime module.
8
9
  */
@@ -20,15 +21,35 @@ export declare class VelocityOverLifetimeModule extends ParticleGeneratorModule
20
21
  static readonly _maxGradientYProperty: ShaderProperty;
21
22
  static readonly _maxGradientZProperty: ShaderProperty;
22
23
  static readonly _spaceProperty: ShaderProperty;
23
- /** Velocity over lifetime for x axis. */
24
- velocityX: ParticleCompositeCurve;
25
- /** Velocity over lifetime for z axis. */
26
- velocityY: ParticleCompositeCurve;
27
- /** Velocity over lifetime for z axis. */
28
- velocityZ: ParticleCompositeCurve;
29
- /** Velocity space. */
30
- space: ParticleSimulationSpace;
31
24
  private _velocityMinConstant;
32
25
  private _velocityMaxConstant;
33
26
  private _velocityMacro;
27
+ private _velocityX;
28
+ private _velocityY;
29
+ private _velocityZ;
30
+ private _space;
31
+ /**
32
+ * Velocity over lifetime for x axis.
33
+ */
34
+ get velocityX(): ParticleCompositeCurve;
35
+ set velocityX(value: ParticleCompositeCurve);
36
+ /**
37
+ * Velocity over lifetime for y axis.
38
+ */
39
+ get velocityY(): ParticleCompositeCurve;
40
+ set velocityY(value: ParticleCompositeCurve);
41
+ /**
42
+ * Velocity over lifetime for z axis.
43
+ */
44
+ get velocityZ(): ParticleCompositeCurve;
45
+ set velocityZ(value: ParticleCompositeCurve);
46
+ /**
47
+ * Velocity space.
48
+ */
49
+ get space(): ParticleSimulationSpace;
50
+ set space(value: ParticleSimulationSpace);
51
+ get enabled(): boolean;
52
+ set enabled(value: boolean);
53
+ constructor(generator: ParticleGenerator);
54
+ private _onCompositeCurveChange;
34
55
  }
@@ -1,12 +1,22 @@
1
1
  import { ParticleShapeType } from "./enums/ParticleShapeType";
2
+ import { UpdateFlagManager } from "../../../UpdateFlagManager";
2
3
  /**
3
4
  * Base class for all particle shapes.
4
5
  */
5
6
  export declare abstract class BaseShape {
6
7
  /** The type of shape to emit particles from. */
7
8
  abstract readonly shapeType: ParticleShapeType;
8
- /** Specifies whether the ShapeModule is enabled or disabled. */
9
- enabled: boolean;
10
- /** Randomizes the starting direction of particles. */
11
- randomDirectionAmount: number;
9
+ protected _updateManager: UpdateFlagManager;
10
+ private _enabled;
11
+ private _randomDirectionAmount;
12
+ /**
13
+ * Specifies whether the ShapeModule is enabled or disabled.
14
+ */
15
+ get enabled(): boolean;
16
+ set enabled(value: boolean);
17
+ /**
18
+ * Randomizes the starting direction of particles.
19
+ */
20
+ get randomDirectionAmount(): number;
21
+ set randomDirectionAmount(value: number);
12
22
  }
@@ -7,6 +7,11 @@ import { ParticleShapeType } from "./enums/ParticleShapeType";
7
7
  export declare class BoxShape extends BaseShape {
8
8
  private static _tempVector30;
9
9
  readonly shapeType = ParticleShapeType.Box;
10
- /** The size of the box. */
11
- size: Vector3;
10
+ private _size;
11
+ /**
12
+ * The size of the box.
13
+ */
14
+ get size(): Vector3;
15
+ set size(value: Vector3);
16
+ constructor();
12
17
  }
@@ -7,12 +7,29 @@ import { ParticleShapeType } from "./enums/ParticleShapeType";
7
7
  export declare class CircleShape extends BaseShape {
8
8
  private static _tempPositionPoint;
9
9
  readonly shapeType = ParticleShapeType.Circle;
10
- /** Radius of the shape to emit particles from. */
11
- radius: number;
12
- /** Angle of the circle arc to emit particles from. */
13
- arc: number;
14
- /** The mode to generate particles around the arc. */
15
- arcMode: ParticleShapeArcMode;
16
- /** The speed of complete 360 degree rotation. */
17
- arcSpeed: number;
10
+ private _radius;
11
+ private _arc;
12
+ private _arcMode;
13
+ private _arcSpeed;
14
+ /**
15
+ * Radius of the shape to emit particles from.
16
+ */
17
+ get radius(): number;
18
+ set radius(value: number);
19
+ /**
20
+ * Angle of the circle arc to emit particles from.
21
+ */
22
+ get arc(): number;
23
+ set arc(value: number);
24
+ /**
25
+ * The mode to generate particles around the arc.
26
+ */
27
+ get arcMode(): ParticleShapeArcMode;
28
+ set arcMode(value: ParticleShapeArcMode);
29
+ /**
30
+ * The speed of complete 360 degree rotation.
31
+ */
32
+ get arcSpeed(): number;
33
+ set arcSpeed(value: number);
34
+ private _getUnitArcRange;
18
35
  }
@@ -9,14 +9,30 @@ export declare class ConeShape extends BaseShape {
9
9
  private static _tempVector30;
10
10
  private static _tempVector31;
11
11
  readonly shapeType = ParticleShapeType.Cone;
12
- /** Angle of the cone to emit particles from. */
13
- angle: number;
14
- /** Radius of the shape to emit particles from. */
15
- radius: number;
16
- /** Length of the cone to emit particles from. */
17
- length: number;
18
- /** Cone emitter type. */
19
- emitType: ConeEmitType;
12
+ private _angle;
13
+ private _radius;
14
+ private _length;
15
+ private _emitType;
16
+ /**
17
+ * Angle of the cone to emit particles from.
18
+ */
19
+ get angle(): number;
20
+ set angle(value: number);
21
+ /**
22
+ * Radius of the shape to emit particles from.
23
+ */
24
+ get radius(): number;
25
+ set radius(value: number);
26
+ /**
27
+ * Length of the cone to emit particles from.
28
+ */
29
+ get length(): number;
30
+ set length(value: number);
31
+ /**
32
+ * Cone emitter type.
33
+ */
34
+ get emitType(): ConeEmitType;
35
+ set emitType(value: ConeEmitType);
20
36
  }
21
37
  /**
22
38
  * Cone emitter type.
@@ -5,6 +5,10 @@ import { ParticleShapeType } from "./enums/ParticleShapeType";
5
5
  */
6
6
  export declare class HemisphereShape extends BaseShape {
7
7
  readonly shapeType = ParticleShapeType.Hemisphere;
8
- /** Radius of the shape to emit particles from. */
9
- radius: number;
8
+ private _radius;
9
+ /**
10
+ * Radius of the shape to emit particles from.
11
+ */
12
+ get radius(): number;
13
+ set radius(value: number);
10
14
  }
@@ -5,6 +5,10 @@ import { ParticleShapeType } from "./enums/ParticleShapeType";
5
5
  */
6
6
  export declare class SphereShape extends BaseShape {
7
7
  readonly shapeType = ParticleShapeType.Sphere;
8
- /** Radius of the shape to emit particles from. */
9
- radius: number;
8
+ private _radius;
9
+ /**
10
+ * Radius of the shape to emit particles from.
11
+ */
12
+ get radius(): number;
13
+ set radius(value: number);
10
14
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,94 @@
1
+ import { Color } from "@galacean/engine-math";
2
+ import { RenderContext } from "../../RenderPipeline/RenderContext";
3
+ import { Material } from "../../material";
4
+ import { Texture2D } from "../../texture";
5
+ /**
6
+ * This controls the size of the bloom texture.
7
+ */
8
+ export declare enum BloomDownScaleMode {
9
+ /**
10
+ * Use this to select half size as the starting resolution.
11
+ */
12
+ Half = 0,
13
+ /**
14
+ * Use this to select quarter size as the starting resolution.
15
+ */
16
+ Quarter = 1
17
+ }
18
+ export declare class BloomEffect {
19
+ private _uberMaterial;
20
+ static readonly SHADER_NAME = "PostProcessEffect Bloom";
21
+ private static _hqMacro;
22
+ private static _dirtMacro;
23
+ private static _bloomParams;
24
+ private static _lowMipTextureProp;
25
+ private static _lowMipTexelSizeProp;
26
+ private static _enableMacro;
27
+ private static _bloomTextureProp;
28
+ private static _dirtTextureProp;
29
+ private static _tintProp;
30
+ private static _bloomIntensityParams;
31
+ private static _dirtTilingOffsetProp;
32
+ private _bloomMaterial;
33
+ private _threshold;
34
+ private _scatter;
35
+ private _highQualityFiltering;
36
+ private _mipDownRT;
37
+ private _mipUpRT;
38
+ private _maxIterations;
39
+ private _enabled;
40
+ /**
41
+ * Controls the starting resolution that this effect begins processing.
42
+ */
43
+ downScale: BloomDownScaleMode;
44
+ /**
45
+ * Indicates whether the post process effect is enabled.
46
+ */
47
+ get enabled(): boolean;
48
+ set enabled(value: boolean);
49
+ /**
50
+ * Set the level of brightness to filter out pixels under this level.
51
+ * @remarks This value is expressed in gamma-space.
52
+ */
53
+ get threshold(): number;
54
+ set threshold(value: number);
55
+ /**
56
+ * Controls the radius of the bloom effect.
57
+ */
58
+ get scatter(): number;
59
+ set scatter(value: number);
60
+ /**
61
+ * Controls the strength of the bloom effect.
62
+ */
63
+ get intensity(): number;
64
+ set intensity(value: number);
65
+ /**
66
+ * Specifies the tint of the bloom effect.
67
+ */
68
+ get tint(): Color;
69
+ set tint(value: Color);
70
+ /**
71
+ * Controls whether to use bicubic sampling instead of bilinear sampling for the upSampling passes.
72
+ * @remarks This is slightly more expensive but helps getting smoother visuals.
73
+ */
74
+ get highQualityFiltering(): boolean;
75
+ set highQualityFiltering(value: boolean);
76
+ /**
77
+ * Specifies a Texture to add smudges or dust to the bloom effect.
78
+ */
79
+ get dirtTexture(): Texture2D;
80
+ set dirtTexture(value: Texture2D);
81
+ /**
82
+ * Controls the strength of the lens dirt.
83
+ */
84
+ get dirtIntensity(): number;
85
+ set dirtIntensity(value: number);
86
+ constructor(_uberMaterial: Material);
87
+ onRender(context: RenderContext, srcTexture: Texture2D): void;
88
+ private _calculateMipCount;
89
+ private _prefilter;
90
+ private _downsample;
91
+ private _upsample;
92
+ private _setupUber;
93
+ private _releaseRenderTargets;
94
+ }
@@ -0,0 +1,35 @@
1
+ import { Material } from "../../material";
2
+ /**
3
+ * Options to select a tonemapping algorithm to use.
4
+ */
5
+ export declare enum TonemappingMode {
6
+ /**
7
+ * Neutral tonemapper
8
+ * @remarks Use this option if you only want range-remapping with minimal impact on color hue and saturation.
9
+ */
10
+ Neutral = 0,
11
+ /**
12
+ * ACES Filmic reference tonemapper (custom approximation)
13
+ * @remarks
14
+ * Use this option to apply a close approximation of the reference ACES tonemapper for a more filmic look.
15
+ * It is more contrasted than Neutral and has an effect on actual color hue and saturation.
16
+ */
17
+ ACES = 1
18
+ }
19
+ export declare class TonemappingEffect {
20
+ private _uberMaterial;
21
+ private static _enableMacro;
22
+ private _mode;
23
+ private _enabled;
24
+ /**
25
+ * Indicates whether the post process effect is enabled.
26
+ */
27
+ get enabled(): boolean;
28
+ set enabled(value: boolean);
29
+ /**
30
+ * Use this to select a tonemapping algorithm to use.
31
+ */
32
+ get mode(): TonemappingMode;
33
+ set mode(value: TonemappingMode);
34
+ constructor(_uberMaterial: Material);
35
+ }
@@ -0,0 +1,2 @@
1
+ export { BloomDownScaleMode, BloomEffect } from "./BloomEffect";
2
+ export { TonemappingEffect, TonemappingMode } from "./TonemappingEffect";
@@ -0,0 +1,3 @@
1
+ import { _PostProcessManager } from "./PostProcessManager";
2
+ export * from "./effects";
3
+ export { _PostProcessManager };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Hardware graphics API renderer.
3
+ */
4
+ export interface IHardwareRenderer {
5
+ [key: string]: any;
6
+ }
@@ -6,6 +6,11 @@ export declare class ShaderPass extends ShaderPart {
6
6
  private static _shaderPassCounter;
7
7
  private _vertexSource;
8
8
  private _fragmentSource;
9
+ private readonly _type;
10
+ private readonly _shaderLabSource;
11
+ private readonly _vertexEntry;
12
+ private readonly _fragmentEntry;
13
+ private _platformMacros;
9
14
  /**
10
15
  * Create a shader pass.
11
16
  * @param name - Shader pass name
@@ -21,4 +26,9 @@ export declare class ShaderPass extends ShaderPart {
21
26
  * @param tags - Tags
22
27
  */
23
28
  constructor(vertexSource: string, fragmentSource: string, tags?: Record<string, number | string | boolean>);
29
+ /**
30
+ * Shader Lab compilation
31
+ */
32
+ private _compileShaderProgram;
33
+ private _getCanonicalShaderProgram;
24
34
  }
@@ -8,6 +8,8 @@ export declare enum ShaderDataGroup {
8
8
  Camera = 1,
9
9
  /** Renderer group. */
10
10
  Renderer = 2,
11
- /** material group. */
12
- Material = 3
11
+ /** Material group. */
12
+ Material = 3,
13
+ /** Render element group. */
14
+ RenderElement = 4
13
15
  }
@@ -0,0 +1,4 @@
1
+ export declare enum ShaderPlatformTarget {
2
+ GLES100 = 0,
3
+ GLES300 = 1
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -7,6 +7,7 @@ export { RenderStateElementKey as RenderStateDataKey } from "./enums/RenderState
7
7
  export { RenderQueueType } from "./enums/RenderQueueType";
8
8
  export { ShaderPropertyType } from "./enums/ShaderPropertyType";
9
9
  export { StencilOperation } from "./enums/StencilOperation";
10
+ export { ShaderPlatformTarget } from "./enums/ShaderPlatformTarget";
10
11
  export { Shader } from "./Shader";
11
12
  export { ShaderData } from "./ShaderData";
12
13
  export { ShaderMacro } from "./ShaderMacro";
@@ -17,4 +17,5 @@ export declare class RenderState {
17
17
  readonly rasterState: RasterState;
18
18
  /** Render queue type. */
19
19
  renderQueueType: RenderQueueType;
20
+ private _applyStatesByShaderData;
20
21
  }
@@ -1,6 +1,7 @@
1
+ import { ShaderMacro } from "../shader/ShaderMacro";
1
2
  export declare class ShaderFactory {
2
3
  private static readonly _has300OutInFragReg;
3
- static parseCustomMacros(macros: string[]): string;
4
+ static parseCustomMacros(macros: ShaderMacro[]): string;
4
5
  static registerInclude(includeName: string, includeSource: string): void;
5
6
  static unRegisterInclude(includeName: string): void;
6
7
  /**
@@ -22,6 +22,8 @@ export declare enum TextureFormat {
22
22
  R32G32B32A32 = 8,
23
23
  /** RGBA unsigned integer format, 32 bits per channel. */
24
24
  R32G32B32A32_UInt = 9,
25
+ /** RGB unsigned float format, 11 bits in R channel, 11 bits in G channel, 10 bits in B channel. */
26
+ R11G11B10_UFloat = 35,
25
27
  /** RGB compressed format, 4 bits per pixel. */
26
28
  BC1 = 10,
27
29
  /** RGBA compressed format, 8 bits per pixel. */
@@ -0,0 +1,38 @@
1
+ import { Color } from "@galacean/engine-math";
2
+ import { Sprite, SpriteDrawMode, SpriteTileMode } from "../2d";
3
+ import { UIRenderer } from "./UIRenderer";
4
+ export declare class Image extends UIRenderer {
5
+ private _color;
6
+ private _sprite;
7
+ private _drawMode;
8
+ private _assembler;
9
+ private _tileMode;
10
+ private _tiledAdaptiveThreshold;
11
+ /**
12
+ * The draw mode of the sprite renderer.
13
+ */
14
+ get drawMode(): SpriteDrawMode;
15
+ set drawMode(value: SpriteDrawMode);
16
+ /**
17
+ * The tiling mode of the sprite renderer. (Only works in tiled mode.)
18
+ */
19
+ get tileMode(): SpriteTileMode;
20
+ set tileMode(value: SpriteTileMode);
21
+ /**
22
+ * Stretch Threshold in Tile Adaptive Mode, specified in normalized. (Only works in tiled adaptive mode.)
23
+ */
24
+ get tiledAdaptiveThreshold(): number;
25
+ set tiledAdaptiveThreshold(value: number);
26
+ /**
27
+ * The Sprite to render.
28
+ */
29
+ get sprite(): Sprite;
30
+ set sprite(value: Sprite | null);
31
+ /**
32
+ * Rendering color for the Sprite graphic.
33
+ */
34
+ get color(): Color;
35
+ set color(value: Color);
36
+ protected _onDestroy(): void;
37
+ private _onSpriteChange;
38
+ }
@@ -0,0 +1,2 @@
1
+ export declare class RedBlackTree {
2
+ }