@galacean/engine-core 0.0.0-experimental-double11.4 → 0.0.0-experimental-double11.5

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 (83) hide show
  1. package/dist/main.js +15561 -12275
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +15561 -12275
  4. package/dist/module.js +16256 -12993
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/Background.d.ts +8 -0
  8. package/types/Camera.d.ts +32 -8
  9. package/types/Component.d.ts +1 -0
  10. package/types/ComponentsManager.d.ts +0 -2
  11. package/types/DisorderedArray.d.ts +8 -1
  12. package/types/Engine.d.ts +9 -4
  13. package/types/Entity.d.ts +2 -0
  14. package/types/RenderPipeline/BasicRenderPipeline.d.ts +2 -3
  15. package/types/RenderPipeline/RenderData.d.ts +8 -1
  16. package/types/RenderPipeline/RenderElement.d.ts +2 -4
  17. package/types/RenderPipeline/RenderQueue.d.ts +4 -2
  18. package/types/RenderPipeline/enums/PipelineStage.d.ts +2 -0
  19. package/types/Renderer.d.ts +2 -2
  20. package/types/Scene.d.ts +9 -4
  21. package/types/SceneManager.d.ts +28 -5
  22. package/types/Script.d.ts +0 -1
  23. package/types/animation/Keyframe.d.ts +4 -3
  24. package/types/animation/animationCurve/index.d.ts +2 -0
  25. package/types/animation/index.d.ts +4 -0
  26. package/types/asset/AssetType.d.ts +5 -1
  27. package/types/asset/GraphicsResource.d.ts +4 -0
  28. package/types/asset/Loader.d.ts +3 -1
  29. package/types/asset/ResourceManager.d.ts +8 -2
  30. package/types/base/Constant.d.ts +1 -0
  31. package/types/clone/ComponentCloner.d.ts +4 -1
  32. package/types/graphic/Buffer.d.ts +22 -6
  33. package/types/graphic/BufferUtil.d.ts +1 -0
  34. package/types/graphic/Mesh.d.ts +2 -3
  35. package/types/graphic/VertexElement.d.ts +10 -6
  36. package/types/graphic/index.d.ts +1 -0
  37. package/types/index.d.ts +1 -0
  38. package/types/input/InputManager.d.ts +2 -2
  39. package/types/lighting/DirectLight.d.ts +8 -1
  40. package/types/lighting/Light.d.ts +0 -4
  41. package/types/lighting/LightManager.d.ts +7 -0
  42. package/types/lighting/PointLight.d.ts +9 -1
  43. package/types/lighting/SpotLight.d.ts +12 -1
  44. package/types/mesh/BufferMesh.d.ts +2 -2
  45. package/types/mesh/ModelMesh.d.ts +70 -42
  46. package/types/mesh/PrimitiveMesh.d.ts +4 -2
  47. package/types/mesh/Skin.d.ts +3 -0
  48. package/types/mesh/SkinnedMeshRenderer.d.ts +20 -11
  49. package/types/mesh/index.d.ts +6 -5
  50. package/types/particle/ParticleGenerator.d.ts +0 -2
  51. package/types/particle/ParticleRenderer.d.ts +41 -231
  52. package/types/particle/index.d.ts +22 -1
  53. package/types/particle/modules/MainModule.d.ts +7 -5
  54. package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -1
  55. package/types/particle/modules/RotationOverLifetimeModule.d.ts +1 -1
  56. package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -4
  57. package/types/physics/Collider.d.ts +1 -0
  58. package/types/physics/index.d.ts +7 -7
  59. package/types/physics/joint/HingeJoint.d.ts +1 -1
  60. package/types/physics/joint/Joint.d.ts +4 -2
  61. package/types/physics/joint/SpringJoint.d.ts +1 -2
  62. package/types/physics/shape/BoxColliderShape.d.ts +0 -2
  63. package/types/physics/shape/CapsuleColliderShape.d.ts +0 -2
  64. package/types/physics/shape/ColliderShape.d.ts +2 -4
  65. package/types/physics/shape/PlaneColliderShape.d.ts +0 -1
  66. package/types/physics/shape/SphereColliderShape.d.ts +1 -2
  67. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -1
  68. package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +1 -1
  69. package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +1 -1
  70. package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +1 -1
  71. package/types/shader/Shader.d.ts +22 -0
  72. package/types/shader/ShaderPart.d.ts +5 -0
  73. package/types/shader/ShaderPass.d.ts +8 -0
  74. package/types/shader/SubShader.d.ts +0 -1
  75. package/types/shader/index.d.ts +1 -0
  76. package/types/shaderlib/ShaderFactory.d.ts +2 -7
  77. package/types/shaderlib/ShaderLib.d.ts +11 -0
  78. package/types/shadow/CascadedShadowCasterPass.d.ts +5 -6
  79. package/types/texture/RenderTarget.d.ts +1 -2
  80. package/types/texture/Texture2D.d.ts +1 -1
  81. package/types/texture/Texture2DArray.d.ts +1 -1
  82. package/types/texture/TextureCube.d.ts +1 -1
  83. package/types/texture/enums/TextureFormat.d.ts +55 -49
@@ -1,8 +1,9 @@
1
1
  import { Camera } from "../Camera";
2
+ import { PipelinePass } from "../RenderPipeline/PipelinePass";
2
3
  /**
3
- * Cascade shadow caster.
4
+ * Cascade shadow caster pass.
4
5
  */
5
- export declare class CascadedShadowCasterPass {
6
+ export declare class CascadedShadowCasterPass extends PipelinePass {
6
7
  private static _lightShadowBiasProperty;
7
8
  private static _lightDirectionProperty;
8
9
  private static _shadowMatricesProperty;
@@ -17,7 +18,6 @@ export declare class CascadedShadowCasterPass {
17
18
  private static _tempVector;
18
19
  private static _tempMatrix0;
19
20
  private readonly _camera;
20
- private readonly _engine;
21
21
  private readonly _supportDepthTexture;
22
22
  private _shadowMapResolution;
23
23
  private _shadowMapSize;
@@ -30,18 +30,17 @@ export declare class CascadedShadowCasterPass {
30
30
  private _lightSide;
31
31
  private _existShadowMap;
32
32
  private _splitBoundSpheres;
33
- /** The end is project prcision problem in shader. */
33
+ /** The end is project precision problem in shader. */
34
34
  private _shadowMatrices;
35
35
  private _shadowInfos;
36
36
  private _depthTexture;
37
- private _renderTargets;
37
+ private _renderTarget;
38
38
  private _viewportOffsets;
39
39
  constructor(camera: Camera);
40
40
  private _renderDirectShadowMap;
41
41
  private _updateReceiversShaderData;
42
42
  private _getCascadesSplitDistance;
43
43
  private _getFarWithRadius;
44
- private _getAvailableRenderTarget;
45
44
  private _updateShadowSettings;
46
45
  private _updateSingleShadowCasterShaderData;
47
46
  }
@@ -79,9 +79,8 @@ export declare class RenderTarget extends GraphicsResource {
79
79
  */
80
80
  constructor(engine: Engine, width: number, height: number, colorTextures: Texture[], depthTexture: Texture, antiAliasing?: number);
81
81
  /**
82
- *
83
82
  * Get the render color texture by index.
84
- * @param index
83
+ * @param index - Render color texture index
85
84
  */
86
85
  getColorTexture(index?: number): Texture | null;
87
86
  /**
@@ -36,7 +36,7 @@ export declare class Texture2D extends Texture {
36
36
  * @param x - X coordinate of area start
37
37
  * @param y - Y coordinate of area start
38
38
  */
39
- setImageSource(imageSource: TexImageSource | OffscreenCanvas, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
39
+ setImageSource(imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
40
40
  /**
41
41
  * Get pixel color buffer.
42
42
  * @param out - Color buffer
@@ -43,7 +43,7 @@ export declare class Texture2DArray extends Texture {
43
43
  * @param x - X coordinate of area start
44
44
  * @param y - Y coordinate of area start
45
45
  */
46
- setImageSource(elementIndex: number, imageSource: TexImageSource | OffscreenCanvas, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
46
+ setImageSource(elementIndex: number, imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
47
47
  /**
48
48
  * Get pixel color buffer.
49
49
  * @param elementIndex - The texture array element index
@@ -36,7 +36,7 @@ export declare class TextureCube extends Texture {
36
36
  * @param x - X coordinate of area start
37
37
  * @param y - Y coordinate of area start
38
38
  */
39
- setImageSource(face: TextureCubeFace, imageSource: TexImageSource | OffscreenCanvas, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
39
+ setImageSource(face: TextureCubeFace, imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
40
40
  /**
41
41
  * Get pixel color buffer.
42
42
  * @param out - Color buffer
@@ -2,68 +2,74 @@
2
2
  * Texture format enumeration.
3
3
  */
4
4
  export declare enum TextureFormat {
5
- /** RGB format,8 bits per channel. */
5
+ /** RGB format, 8 bits per channel. */
6
6
  R8G8B8 = 0,
7
- /** RGBA format,8 bits per channel. */
7
+ /** RGBA format, 8 bits per channel. */
8
8
  R8G8B8A8 = 1,
9
- /** RGBA format,4 bits per channel. */
9
+ /** RGBA format, 4 bits per channel. */
10
10
  R4G4B4A4 = 2,
11
- /** RGBA format,5 bits in R channel,5 bits in G channel,5 bits in B channel, 1 bit in A channel. */
11
+ /** RGBA format, 5 bits in R channel, 5 bits in G channel, 5 bits in B channel, 1 bit in A channel. */
12
12
  R5G5B5A1 = 3,
13
- /** RGB format,5 bits in R channel,6 bits in G channel,5 bits in B channel. */
13
+ /** RGB format, 5 bits in R channel, 6 bits in G channel, 5 bits in B channel. */
14
14
  R5G6B5 = 4,
15
- /** Transparent format,8 bits. */
15
+ /** Transparent format, 8 bits. */
16
16
  Alpha8 = 5,
17
17
  /** Luminance/alpha in RGB channel, alpha in A channel. */
18
18
  LuminanceAlpha = 6,
19
- /** RGBA format,16 bits per channel. */
19
+ /** RGBA format, 16 bits per channel. */
20
20
  R16G16B16A16 = 7,
21
- /** RGBA format,32 bits per channel. */
21
+ /** RGBA format, 32 bits per channel. */
22
22
  R32G32B32A32 = 8,
23
- /** RGB compressed format。*/
24
- DXT1 = 9,
25
- /** RGBA compressed format。*/
26
- DXT5 = 10,
27
- /** RGB compressed format,4 bits per pixel。*/
28
- ETC1_RGB = 11,
29
- /** RGB compressed format,4 bits per pixel。*/
30
- ETC2_RGB = 12,
31
- /** RGBA compressed format,5 bits per pixel,4 bit in RGB, 1 bit in A. */
32
- ETC2_RGBA5 = 13,
33
- /** RGB compressed format,8 bits per pixel. */
34
- ETC2_RGBA8 = 14,
35
- /** RGB compressed format,2 bits per pixel. */
36
- PVRTC_RGB2 = 15,
37
- /** RGBA compressed format,2 bits per pixel. */
38
- PVRTC_RGBA2 = 16,
39
- /** RGB compressed format,4 bits per pixel. */
40
- PVRTC_RGB4 = 17,
41
- /** RGBA compressed format,4 bits per pixel. */
42
- PVRTC_RGBA4 = 18,
43
- /** RGB(A) compressed format,128 bits per 4x4 pixel block. */
44
- ASTC_4x4 = 19,
45
- /** RGB(A) compressed format,128 bits per 5x5 pixel block. */
46
- ASTC_5x5 = 20,
47
- /** RGB(A) compressed format,128 bits per 6x6 pixel block. */
48
- ASTC_6x6 = 21,
49
- /** RGB(A) compressed format,128 bits per 8x8 pixel block. */
50
- ASTC_8x8 = 22,
51
- /** RGB(A) compressed format,128 bits per 10x10 pixel block. */
52
- ASTC_10x10 = 23,
53
- /** RGB(A) compressed format,128 bits per 12x12 pixel block. */
54
- ASTC_12x12 = 24,
55
- /** Automatic depth format,engine will automatically select the supported precision. */
56
- Depth = 25,
57
- /** Automatic depth setncil format, engine will automatically select the supported precision. */
58
- DepthStencil = 26,
23
+ /** RGB compressed format, 4 bits per pixel. */
24
+ BC1 = 9,
25
+ /** RGBA compressed format, 8 bits per pixel. */
26
+ BC3 = 10,
27
+ /** RGB(A) compressed format, 128 bits per 4x4 pixel block. */
28
+ BC7 = 11,
29
+ /** RGB compressed format, 4 bits per pixel. */
30
+ ETC1_RGB = 12,
31
+ /** RGB compressed format, 4 bits per pixel. */
32
+ ETC2_RGB = 13,
33
+ /** RGBA compressed format, 5 bits per pixel, 4 bit in RGB, 1 bit in A. */
34
+ ETC2_RGBA5 = 14,
35
+ /** RGB compressed format, 8 bits per pixel. */
36
+ ETC2_RGBA8 = 15,
37
+ /** RGB compressed format, 2 bits per pixel. */
38
+ PVRTC_RGB2 = 16,
39
+ /** RGBA compressed format, 2 bits per pixel. */
40
+ PVRTC_RGBA2 = 17,
41
+ /** RGB compressed format, 4 bits per pixel. */
42
+ PVRTC_RGB4 = 18,
43
+ /** RGBA compressed format, 4 bits per pixel. */
44
+ PVRTC_RGBA4 = 19,
45
+ /** RGB(A) compressed format, 128 bits per 4x4 pixel block. */
46
+ ASTC_4x4 = 20,
47
+ /** RGB(A) compressed format, 128 bits per 5x5 pixel block. */
48
+ ASTC_5x5 = 21,
49
+ /** RGB(A) compressed format, 128 bits per 6x6 pixel block. */
50
+ ASTC_6x6 = 22,
51
+ /** RGB(A) compressed format, 128 bits per 8x8 pixel block. */
52
+ ASTC_8x8 = 23,
53
+ /** RGB(A) compressed format, 128 bits per 10x10 pixel block. */
54
+ ASTC_10x10 = 24,
55
+ /** RGB(A) compressed format, 128 bits per 12x12 pixel block. */
56
+ ASTC_12x12 = 25,
57
+ /** Automatic depth format, engine will automatically select the supported precision. */
58
+ Depth = 26,
59
+ /** Automatic depth stencil format, engine will automatically select the supported precision. */
60
+ DepthStencil = 27,
59
61
  /** 16-bit depth format. */
60
- Depth16 = 27,
62
+ Depth16 = 28,
61
63
  /** 24-bit depth format. */
62
- Depth24 = 28,
64
+ Depth24 = 29,
63
65
  /** 32-bit depth format. */
64
- Depth32 = 29,
66
+ Depth32 = 30,
65
67
  /** 16-bit depth + 8-bit stencil format. */
66
- Depth24Stencil8 = 30,
68
+ Depth24Stencil8 = 31,
67
69
  /** 32-bit depth + 8-bit stencil format. */
68
- Depth32Stencil8 = 31
70
+ Depth32Stencil8 = 32,
71
+ /** @deprecated Use `TextureFormat.BC1` instead. */
72
+ DXT1 = 33,
73
+ /** @deprecated Use `TextureFormat.BC3` instead. */
74
+ DXT5 = 34
69
75
  }