@galacean/engine-core 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +15449 -13299
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +15449 -13299
- package/dist/module.js +15435 -13295
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +2 -6
- package/types/2d/data/VertexData2D.d.ts +1 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +4 -2
- package/types/2d/enums/SpriteTileMode.d.ts +11 -0
- package/types/2d/index.d.ts +1 -0
- package/types/2d/sprite/Sprite.d.ts +17 -8
- package/types/2d/sprite/SpriteMask.d.ts +16 -22
- package/types/2d/sprite/SpriteRenderer.d.ts +31 -17
- package/types/2d/text/Font.d.ts +2 -7
- package/types/2d/text/TextRenderer.d.ts +1 -13
- package/types/2d/text/index.d.ts +1 -0
- package/types/Camera.d.ts +32 -10
- package/types/Component.d.ts +0 -8
- package/types/ComponentsDependencies.d.ts +17 -9
- package/types/ComponentsManager.d.ts +3 -2
- package/types/DisorderedArray.d.ts +4 -3
- package/types/Engine.d.ts +35 -43
- package/types/Entity.d.ts +2 -2
- package/types/RenderPipeline/Basic2DBatcher.d.ts +6 -7
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +8 -6
- package/types/RenderPipeline/ClassPool.d.ts +3 -1
- package/types/RenderPipeline/CullingResults.d.ts +1 -0
- package/types/RenderPipeline/DepthOnlyPass.d.ts +1 -0
- package/types/RenderPipeline/IPoolElement.d.ts +3 -0
- package/types/RenderPipeline/MeshRenderData.d.ts +17 -0
- package/types/RenderPipeline/PipelinePass.d.ts +16 -0
- package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
- package/types/RenderPipeline/RenderData.d.ts +7 -0
- package/types/RenderPipeline/RenderElement.d.ts +8 -8
- package/types/RenderPipeline/RenderElementX.d.ts +12 -0
- package/types/RenderPipeline/RenderPass.d.ts +1 -1
- package/types/RenderPipeline/RenderQueue.d.ts +3 -5
- package/types/RenderPipeline/SpriteMaskBatcher.d.ts +4 -3
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +12 -0
- package/types/RenderPipeline/SpriteRenderData.d.ts +14 -0
- package/types/RenderPipeline/TextRenderData.d.ts +8 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
- package/types/RenderPipeline/index.d.ts +4 -0
- package/types/Renderer.d.ts +10 -15
- package/types/SafeLoopArray.d.ts +37 -0
- package/types/Scene.d.ts +13 -5
- package/types/Script.d.ts +18 -15
- package/types/Ticker.d.ts +30 -0
- package/types/Transform.d.ts +10 -12
- package/types/Utils.d.ts +28 -0
- package/types/animation/AnimationClip.d.ts +2 -1
- package/types/animation/Animator.d.ts +7 -4
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -1
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +8 -0
- package/types/animation/enums/LayerState.d.ts +3 -1
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +1 -0
- package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +1 -0
- package/types/asset/AssetType.d.ts +16 -16
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +5 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +16 -9
- package/types/asset/ReferResource.d.ts +22 -0
- package/types/asset/ResourceManager.d.ts +17 -9
- package/types/asset/request.d.ts +7 -3
- package/types/base/Constant.d.ts +2 -1
- package/types/base/EngineObject.d.ts +1 -0
- package/types/base/EventDispatcher.d.ts +2 -15
- package/types/base/Time.d.ts +27 -24
- package/types/base/index.d.ts +0 -2
- package/types/enums/ActiveChangeFlag.d.ts +6 -0
- package/types/enums/DepthTextureMode.d.ts +7 -0
- package/types/env-probe/CubeProbe.d.ts +0 -7
- package/types/env-probe/Probe.d.ts +0 -6
- package/types/graphic/Buffer.d.ts +5 -12
- package/types/graphic/Mesh.d.ts +5 -16
- package/types/graphic/Primitive.d.ts +1 -0
- package/types/graphic/PrimitiveVertexBinding.d.ts +1 -0
- package/types/graphic/SubMesh.d.ts +3 -1
- package/types/graphic/SubPrimitive.d.ts +9 -0
- package/types/index.d.ts +8 -7
- package/types/input/InputManager.d.ts +1 -1
- package/types/input/interface/IInput.d.ts +1 -1
- package/types/lighting/AmbientLight.d.ts +4 -1
- package/types/lighting/DirectLight.d.ts +0 -1
- package/types/lighting/Light.d.ts +0 -1
- package/types/lighting/LightManager.d.ts +1 -0
- package/types/lighting/SpotLight.d.ts +0 -1
- package/types/material/BaseMaterial.d.ts +8 -10
- package/types/material/BlinnPhongMaterial.d.ts +0 -3
- package/types/material/Material.d.ts +8 -8
- package/types/material/PBRMaterial.d.ts +12 -3
- package/types/material/PBRSpecularMaterial.d.ts +1 -1
- package/types/material/UnlitMaterial.d.ts +1 -1
- package/types/mesh/BlendShape.d.ts +1 -1
- package/types/mesh/BlendShapeFrame.d.ts +28 -6
- package/types/mesh/MeshRenderer.d.ts +7 -12
- package/types/mesh/ModelMesh.d.ts +5 -5
- package/types/mesh/PrimitiveMesh.d.ts +4 -2
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +0 -14
- package/types/particle/ParticleBufferUtils.d.ts +1 -0
- package/types/particle/ParticleData.d.ts +1 -0
- package/types/particle/ParticleGenerator.d.ts +72 -0
- package/types/particle/ParticleMaterial.d.ts +28 -0
- package/types/particle/ParticleMesh.d.ts +289 -0
- package/types/particle/ParticleRenderer.d.ts +2 -2
- package/types/particle/ParticleShaderDeclaration.d.ts +1 -0
- package/types/particle/ParticleShaderMacro.d.ts +1 -0
- package/types/particle/ParticleShaderProperty.d.ts +1 -0
- package/types/particle/ParticleSystem.d.ts +41 -0
- package/types/particle/ParticleVertexElements.d.ts +1 -0
- package/types/particle/ParticleVertexUtils.d.ts +1 -0
- package/types/particle/enum/ParticleAnimationRowMode.d.ts +9 -0
- package/types/particle/enum/ParticleAnimationType.d.ts +9 -0
- package/types/particle/enum/ParticleCurveMode.d.ts +13 -0
- package/types/particle/enum/ParticleGradientMode.d.ts +13 -0
- package/types/particle/enum/ParticleRenderMode.d.ts +17 -0
- package/types/particle/enum/ParticleScaleMode.d.ts +11 -0
- package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +9 -0
- package/types/particle/enum/ParticleShapeType.d.ts +15 -0
- package/types/particle/enum/ParticleSimulationSpace.d.ts +9 -0
- package/types/particle/enum/index.d.ts +9 -0
- package/types/particle/enums/ParticleCurveMode.d.ts +9 -0
- package/types/particle/enums/ParticleGradientMode.d.ts +9 -0
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +1 -0
- package/types/particle/enums/ParticleRenderMode.d.ts +17 -0
- package/types/particle/enums/ParticleScaleMode.d.ts +11 -0
- package/types/particle/enums/ParticleSimulationSpace.d.ts +9 -0
- package/types/particle/enums/ParticleStopMode.d.ts +6 -0
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +1 -0
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +5 -0
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +1 -0
- package/types/particle/module/Burst.d.ts +38 -0
- package/types/particle/module/ColorGradient.d.ts +75 -0
- package/types/particle/module/ColorOverLifetimeModule.d.ts +20 -0
- package/types/particle/module/EmissionModule.d.ts +63 -0
- package/types/particle/module/FrameOverTime.d.ts +73 -0
- package/types/particle/module/ParticleCurve.d.ts +37 -0
- package/types/particle/module/RotationOverLifetimeModule.d.ts +21 -0
- package/types/particle/module/RotationVelocityGradient.d.ts +184 -0
- package/types/particle/module/SizeGradient.d.ts +151 -0
- package/types/particle/module/SizeOverLifetimeModule.d.ts +21 -0
- package/types/particle/module/StartFrame.d.ts +46 -0
- package/types/particle/module/TextureSheetAnimationModule.d.ts +37 -0
- package/types/particle/module/VelocityGradient.d.ts +110 -0
- package/types/particle/module/VelocityOverLifetimeModule.d.ts +22 -0
- package/types/particle/module/index.d.ts +15 -0
- package/types/particle/module/shape/BaseShape.d.ts +26 -0
- package/types/particle/module/shape/BoxShape.d.ts +20 -0
- package/types/particle/module/shape/CircleShape.d.ts +27 -0
- package/types/particle/module/shape/ConeShape.d.ts +35 -0
- package/types/particle/module/shape/HemisphereShape.d.ts +23 -0
- package/types/particle/module/shape/ShapeUtils.d.ts +1 -0
- package/types/particle/module/shape/SphereShape.d.ts +23 -0
- package/types/particle/module/shape/index.d.ts +5 -0
- package/types/particle/modules/Burst.d.ts +14 -0
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +20 -0
- package/types/particle/modules/EmissionModule.d.ts +45 -0
- package/types/particle/modules/MainModule.d.ts +68 -0
- package/types/particle/modules/ParticleCompositeCurve.d.ts +56 -0
- package/types/particle/modules/ParticleCompositeGradient.d.ts +55 -0
- package/types/particle/modules/ParticleCurve.d.ts +56 -0
- package/types/particle/modules/ParticleGeneratorModule.d.ts +12 -0
- package/types/particle/modules/ParticleGradient.d.ts +94 -0
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +34 -0
- package/types/particle/modules/ShapeModule.d.ts +9 -0
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +34 -0
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +42 -0
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +34 -0
- package/types/particle/modules/shape/BaseShape.d.ts +12 -0
- package/types/particle/modules/shape/BoxShape.d.ts +11 -0
- package/types/particle/modules/shape/CircleShape.d.ts +17 -0
- package/types/particle/modules/shape/ConeShape.d.ts +28 -0
- package/types/particle/modules/shape/HemisphereShape.d.ts +9 -0
- package/types/particle/modules/shape/ShapeUtils.d.ts +1 -0
- package/types/particle/modules/shape/SphereShape.d.ts +9 -0
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +9 -0
- package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +9 -0
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +15 -0
- package/types/particle/modules/shape/index.d.ts +6 -0
- package/types/particle/moudules/Burst.d.ts +25 -0
- package/types/particle/moudules/Emission.d.ts +47 -0
- package/types/particle/moudules/EmissionModule.d.ts +49 -0
- package/types/particle/moudules/MainModule.d.ts +59 -0
- package/types/particle/moudules/ParticleCurve.d.ts +27 -0
- package/types/particle/moudules/ParticleGradient.d.ts +28 -0
- package/types/particle/moudules/ShapeModule.d.ts +7 -0
- package/types/particle/moudules/shape/BaseShape.d.ts +28 -0
- package/types/particle/moudules/shape/BoxShape.d.ts +20 -0
- package/types/particle/moudules/shape/CircleShape.d.ts +27 -0
- package/types/particle/moudules/shape/ConeShape.d.ts +35 -0
- package/types/particle/moudules/shape/HemisphereShape.d.ts +23 -0
- package/types/particle/moudules/shape/ShapeUtils.d.ts +1 -0
- package/types/particle/moudules/shape/SphereShape.d.ts +23 -0
- package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +9 -0
- package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +15 -0
- package/types/particle/moudules/shape/index.d.ts +5 -0
- package/types/physics/CharacterController.d.ts +0 -2
- package/types/physics/Collider.d.ts +1 -1
- package/types/physics/Collision.d.ts +4 -0
- package/types/physics/PhysicsManager.d.ts +5 -22
- package/types/physics/PhysicsScene.d.ts +79 -0
- package/types/physics/joint/HingeJoint.d.ts +2 -2
- package/types/physics/joint/Joint.d.ts +2 -2
- package/types/physics/joint/SpringJoint.d.ts +1 -1
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
- package/types/renderingHardwareInterface/index.d.ts +1 -0
- package/types/shader/Shader.d.ts +32 -23
- package/types/shader/ShaderData.d.ts +24 -24
- package/types/shader/ShaderMacro.d.ts +16 -0
- package/types/shader/ShaderPart.d.ts +41 -0
- package/types/shader/ShaderPass.d.ts +9 -2
- package/types/shader/ShaderProperty.d.ts +7 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/SubShader.d.ts +19 -0
- package/types/shader/enums/RenderStateElementKey.d.ts +60 -0
- package/types/shader/index.d.ts +5 -1
- package/types/shader/state/index.d.ts +6 -0
- package/types/shaderlib/particle/index.d.ts +14 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +1 -1
- package/types/shadow/PipelinePass.d.ts +16 -0
- package/types/sky/Sky.d.ts +12 -4
- package/types/sky/SkyBoxMaterial.d.ts +27 -9
- package/types/sky/SkyProceduralMaterial.d.ts +72 -0
- package/types/sky/index.d.ts +1 -0
- package/types/texture/RenderTarget.d.ts +2 -6
- package/types/texture/Texture.d.ts +8 -6
- package/types/texture/Texture2D.d.ts +3 -1
- package/types/texture/enums/TextureUsage.d.ts +9 -0
- package/types/texture/index.d.ts +1 -0
- package/types/trail/TrailRenderer.d.ts +0 -5
- package/types/utils/BoolUpdateFlag.d.ts +12 -0
- package/types/utils/DisorderedArray.d.ts +18 -0
- package/types/utils/SafeLoopArray.d.ts +41 -0
- package/types/utils/UpdateFlag.d.ts +20 -0
- package/types/utils/UpdateFlagManager.d.ts +1 -0
- package/types/utils/Utils.d.ts +31 -0
- package/types/xr/XRManager.d.ts +31 -0
- package/types/xr/component/XRPoseDriver.d.ts +10 -0
- package/types/xr/data/XRCamera.d.ts +6 -0
- package/types/xr/data/XRDevice.d.ts +9 -0
- package/types/xr/data/XRHandle.d.ts +10 -0
- package/types/xr/enum/EnumXRButton.d.ts +5 -0
- package/types/xr/enum/EnumXRDevicePhase.d.ts +4 -0
- package/types/xr/enum/EnumXRFeature.d.ts +9 -0
- package/types/xr/enum/EnumXRInputSource.d.ts +8 -0
- package/types/xr/enum/EnumXRMode.d.ts +7 -0
- package/types/xr/enum/EnumXRSubsystem.d.ts +4 -0
- package/types/xr/enum/EnumXRTrackingMode.d.ts +7 -0
- package/types/xr/feature/XRCameraManager.d.ts +21 -0
- package/types/xr/feature/XRFeature.d.ts +29 -0
- package/types/xr/feature/XRImageTrackManager.d.ts +10 -0
- package/types/xr/feature/XRInputManager.d.ts +16 -0
- package/types/xr/index.d.ts +18 -0
- package/types/xr/provider/XRProvider.d.ts +19 -0
- package/types/xr/subsystem/XRInputSubsystem.d.ts +5 -0
- package/types/xr/subsystem/XRSubsystem.d.ts +30 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Color, SphericalHarmonics3 } from "@galacean/engine-math";
|
|
2
2
|
import { TextureCube } from "../texture";
|
|
3
3
|
import { DiffuseMode } from "./enums/DiffuseMode";
|
|
4
|
+
import { ReferResource } from "../asset/ReferResource";
|
|
5
|
+
import { Engine } from "../Engine";
|
|
4
6
|
/**
|
|
5
7
|
* Ambient light.
|
|
6
8
|
*/
|
|
7
|
-
export declare class AmbientLight {
|
|
9
|
+
export declare class AmbientLight extends ReferResource {
|
|
8
10
|
private static _shMacro;
|
|
9
11
|
private static _specularMacro;
|
|
10
12
|
private static _decodeRGBMMacro;
|
|
@@ -60,6 +62,7 @@ export declare class AmbientLight {
|
|
|
60
62
|
*/
|
|
61
63
|
get specularIntensity(): number;
|
|
62
64
|
set specularIntensity(value: number);
|
|
65
|
+
constructor(engine: Engine);
|
|
63
66
|
private _setDiffuseMode;
|
|
64
67
|
private _setSpecularTexture;
|
|
65
68
|
private _setSpecularTextureDecodeRGBM;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { Engine } from "../Engine";
|
|
2
|
-
import { Shader } from "../shader";
|
|
2
|
+
import { Shader, ShaderProperty } from "../shader";
|
|
3
3
|
import { ShaderMacro } from "../shader/ShaderMacro";
|
|
4
4
|
import { BlendMode } from "./enums/BlendMode";
|
|
5
5
|
import { RenderFace } from "./enums/RenderFace";
|
|
6
6
|
import { Material } from "./Material";
|
|
7
7
|
export declare class BaseMaterial extends Material {
|
|
8
|
-
protected static _baseColorProp: import("../shader").ShaderProperty;
|
|
9
|
-
protected static _baseTextureProp: import("../shader").ShaderProperty;
|
|
10
8
|
protected static _baseTextureMacro: ShaderMacro;
|
|
11
|
-
protected static _tilingOffsetProp: import("../shader").ShaderProperty;
|
|
12
|
-
protected static _normalTextureProp: import("../shader").ShaderProperty;
|
|
13
|
-
protected static _normalIntensityProp: import("../shader").ShaderProperty;
|
|
14
9
|
protected static _normalTextureMacro: ShaderMacro;
|
|
15
|
-
protected static _emissiveColorProp: import("../shader").ShaderProperty;
|
|
16
|
-
protected static _emissiveTextureProp: import("../shader").ShaderProperty;
|
|
17
10
|
protected static _emissiveTextureMacro: ShaderMacro;
|
|
18
11
|
protected static _transparentMacro: ShaderMacro;
|
|
12
|
+
protected static _baseColorProp: ShaderProperty;
|
|
13
|
+
protected static _baseTextureProp: ShaderProperty;
|
|
14
|
+
protected static _tilingOffsetProp: ShaderProperty;
|
|
15
|
+
protected static _normalTextureProp: ShaderProperty;
|
|
16
|
+
protected static _normalIntensityProp: ShaderProperty;
|
|
17
|
+
protected static _emissiveColorProp: ShaderProperty;
|
|
18
|
+
protected static _emissiveTextureProp: ShaderProperty;
|
|
19
19
|
private static _alphaCutoffProp;
|
|
20
20
|
private static _alphaCutoffMacro;
|
|
21
21
|
private _renderFace;
|
|
@@ -75,12 +75,10 @@ export declare class BaseMaterial extends Material {
|
|
|
75
75
|
*/
|
|
76
76
|
setRenderFace(passIndex: number, renderFace: RenderFace): void;
|
|
77
77
|
/**
|
|
78
|
-
* @override
|
|
79
78
|
* Clone and return the instance.
|
|
80
79
|
*/
|
|
81
80
|
clone(): BaseMaterial;
|
|
82
81
|
/**
|
|
83
|
-
* @override
|
|
84
82
|
* Clone to the target material.
|
|
85
83
|
* @param target - target material
|
|
86
84
|
*/
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { IClone } from "@galacean/engine-design";
|
|
2
|
-
import { RefObject } from "../asset/RefObject";
|
|
3
2
|
import { Engine } from "../Engine";
|
|
3
|
+
import { ReferResource } from "../asset/ReferResource";
|
|
4
4
|
import { Shader } from "../shader/Shader";
|
|
5
5
|
import { ShaderData } from "../shader/ShaderData";
|
|
6
6
|
import { RenderState } from "../shader/state/RenderState";
|
|
7
7
|
/**
|
|
8
8
|
* Material.
|
|
9
9
|
*/
|
|
10
|
-
export declare class Material extends
|
|
10
|
+
export declare class Material extends ReferResource implements IClone {
|
|
11
11
|
/** Name. */
|
|
12
12
|
name: string;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
private _shaderData;
|
|
14
|
+
/**
|
|
15
|
+
* Shader data.
|
|
16
|
+
*/
|
|
17
|
+
get shaderData(): ShaderData;
|
|
15
18
|
/**
|
|
16
19
|
* Shader used by the material.
|
|
17
20
|
*/
|
|
@@ -40,10 +43,7 @@ export declare class Material extends RefObject implements IClone {
|
|
|
40
43
|
* @param target - target material
|
|
41
44
|
*/
|
|
42
45
|
cloneTo(target: Material): void;
|
|
43
|
-
|
|
44
|
-
* @override
|
|
45
|
-
*/
|
|
46
|
-
_addRefCount(value: number): void;
|
|
46
|
+
_addReferCount(value: number): void;
|
|
47
47
|
/**
|
|
48
48
|
* @override
|
|
49
49
|
*/
|
|
@@ -8,13 +8,22 @@ export declare class PBRMaterial extends PBRBaseMaterial {
|
|
|
8
8
|
private static _metallicProp;
|
|
9
9
|
private static _roughnessProp;
|
|
10
10
|
private static _roughnessMetallicTextureProp;
|
|
11
|
+
private static _iorProp;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* Index Of Refraction.
|
|
14
|
+
* @defaultValue `1.5`
|
|
15
|
+
*/
|
|
16
|
+
get ior(): number;
|
|
17
|
+
set ior(v: number);
|
|
18
|
+
/**
|
|
19
|
+
* Metallic.
|
|
20
|
+
* @defaultValue `1.0`
|
|
13
21
|
*/
|
|
14
22
|
get metallic(): number;
|
|
15
23
|
set metallic(value: number);
|
|
16
24
|
/**
|
|
17
|
-
* Roughness
|
|
25
|
+
* Roughness. default 1.0.
|
|
26
|
+
* @defaultValue `1.0`
|
|
18
27
|
*/
|
|
19
28
|
get roughness(): number;
|
|
20
29
|
set roughness(value: number);
|
|
@@ -30,7 +39,7 @@ export declare class PBRMaterial extends PBRBaseMaterial {
|
|
|
30
39
|
*/
|
|
31
40
|
constructor(engine: Engine);
|
|
32
41
|
/**
|
|
33
|
-
* @
|
|
42
|
+
* @inheritdoc
|
|
34
43
|
*/
|
|
35
44
|
clone(): PBRMaterial;
|
|
36
45
|
}
|
|
@@ -6,7 +6,6 @@ import { BlendShapeFrame } from "./BlendShapeFrame";
|
|
|
6
6
|
export declare class BlendShape {
|
|
7
7
|
/** Name of BlendShape. */
|
|
8
8
|
name: string;
|
|
9
|
-
private _dataChangeManager;
|
|
10
9
|
private _frames;
|
|
11
10
|
/**
|
|
12
11
|
* Frames of BlendShape.
|
|
@@ -36,4 +35,5 @@ export declare class BlendShape {
|
|
|
36
35
|
clearFrames(): void;
|
|
37
36
|
private _addFrame;
|
|
38
37
|
private _updateUseNormalAndTangent;
|
|
38
|
+
private _frameDataChangeListener;
|
|
39
39
|
}
|
|
@@ -5,12 +5,28 @@ import { Vector3 } from "@galacean/engine-math";
|
|
|
5
5
|
export declare class BlendShapeFrame {
|
|
6
6
|
/** Weight of BlendShapeFrame. */
|
|
7
7
|
readonly weight: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
8
|
+
private _dirty;
|
|
9
|
+
private _deltaPositions;
|
|
10
|
+
private _deltaNormals;
|
|
11
|
+
private _deltaTangents;
|
|
12
|
+
/**
|
|
13
|
+
* Delta positions for the frame being added.
|
|
14
|
+
* @remarks Need to re-assign after modification to ensure that the modification takes effect.
|
|
15
|
+
*/
|
|
16
|
+
get deltaPositions(): Vector3[];
|
|
17
|
+
set deltaPositions(value: Vector3[]);
|
|
18
|
+
/**
|
|
19
|
+
* Delta normals for the frame being added.
|
|
20
|
+
* @remarks Need to re-assign after modification to ensure that the modification takes effect.
|
|
21
|
+
*/
|
|
22
|
+
get deltaNormals(): Vector3[];
|
|
23
|
+
set deltaNormals(value: Vector3[]);
|
|
24
|
+
/**
|
|
25
|
+
* Delta tangents for the frame being added.
|
|
26
|
+
* @remarks Need to re-assign after modification to ensure that the modification takes effect.
|
|
27
|
+
*/
|
|
28
|
+
get deltaTangents(): Vector3[];
|
|
29
|
+
set deltaTangents(value: Vector3[]);
|
|
14
30
|
/**
|
|
15
31
|
* Create a BlendShapeFrame.
|
|
16
32
|
* @param weight - Weight of BlendShapeFrame
|
|
@@ -20,3 +36,9 @@ export declare class BlendShapeFrame {
|
|
|
20
36
|
*/
|
|
21
37
|
constructor(weight: number, deltaPositions: Vector3[], deltaNormals?: Vector3[], deltaTangents?: Vector3[]);
|
|
22
38
|
}
|
|
39
|
+
export declare enum BlendShapeFrameDirty {
|
|
40
|
+
Position = 1,
|
|
41
|
+
Normal = 2,
|
|
42
|
+
Tangent = 4,
|
|
43
|
+
All = 7
|
|
44
|
+
}
|
|
@@ -1,30 +1,25 @@
|
|
|
1
|
-
import { BoundingBox } from "@galacean/engine-math";
|
|
2
|
-
import { ICustomClone } from "../clone/ComponentCloner";
|
|
3
|
-
import { Mesh } from "../graphic/Mesh";
|
|
4
1
|
import { Renderer } from "../Renderer";
|
|
5
|
-
import {
|
|
2
|
+
import { Mesh } from "../graphic/Mesh";
|
|
6
3
|
/**
|
|
7
4
|
* MeshRenderer Component.
|
|
8
5
|
*/
|
|
9
|
-
export declare class MeshRenderer extends Renderer
|
|
6
|
+
export declare class MeshRenderer extends Renderer {
|
|
10
7
|
private static _uvMacro;
|
|
11
8
|
private static _uv1Macro;
|
|
12
9
|
private static _normalMacro;
|
|
13
10
|
private static _tangentMacro;
|
|
14
|
-
private static
|
|
11
|
+
private static _enableVertexColorMacro;
|
|
12
|
+
private _enableVertexColor;
|
|
15
13
|
/**
|
|
16
14
|
* Mesh assigned to the renderer.
|
|
17
15
|
*/
|
|
18
16
|
get mesh(): Mesh;
|
|
19
17
|
set mesh(value: Mesh);
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
protected _updateBounds(worldBounds: BoundingBox): void;
|
|
24
|
-
/**
|
|
25
|
-
* @override
|
|
19
|
+
* Whether enable vertex color.
|
|
26
20
|
*/
|
|
27
|
-
|
|
21
|
+
get enableVertexColor(): boolean;
|
|
22
|
+
set enableVertexColor(value: boolean);
|
|
28
23
|
private _setMesh;
|
|
29
24
|
private _onMeshChanged;
|
|
30
25
|
}
|
|
@@ -15,7 +15,7 @@ export declare class ModelMesh extends Mesh {
|
|
|
15
15
|
private static _tempVec3;
|
|
16
16
|
private static _tempVec4;
|
|
17
17
|
private _vertexCount;
|
|
18
|
-
private
|
|
18
|
+
private _readable;
|
|
19
19
|
private _verticesFloat32;
|
|
20
20
|
private _verticesUint8;
|
|
21
21
|
private _indices;
|
|
@@ -42,9 +42,9 @@ export declare class ModelMesh extends Mesh {
|
|
|
42
42
|
private _customVertexElements;
|
|
43
43
|
private _vertexCountChanged;
|
|
44
44
|
/**
|
|
45
|
-
* Whether to
|
|
45
|
+
* Whether to read data of the mesh.
|
|
46
46
|
*/
|
|
47
|
-
get
|
|
47
|
+
get readable(): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Vertex count of current mesh.
|
|
50
50
|
*/
|
|
@@ -207,9 +207,9 @@ export declare class ModelMesh extends Mesh {
|
|
|
207
207
|
getBlendShapeName(index: number): string;
|
|
208
208
|
/**
|
|
209
209
|
* Upload Mesh Data to GPU.
|
|
210
|
-
* @param
|
|
210
|
+
* @param noLongerReadable - Whether to read data later. If true, you'll never read data anymore (free memory cache)
|
|
211
211
|
*/
|
|
212
|
-
uploadData(
|
|
212
|
+
uploadData(noLongerReadable: boolean): void;
|
|
213
213
|
/**
|
|
214
214
|
* Calculate mesh tangent.
|
|
215
215
|
* @remark need to set positions(with or not with indices), normals, uv before calculation.
|
|
@@ -63,8 +63,8 @@ export declare class PrimitiveMesh {
|
|
|
63
63
|
* @param engine - Engine
|
|
64
64
|
* @param radius - The radius of cap
|
|
65
65
|
* @param height - The height of torso
|
|
66
|
-
* @param radialSegments -
|
|
67
|
-
* @param heightSegments -
|
|
66
|
+
* @param radialSegments - Cone radial segments
|
|
67
|
+
* @param heightSegments - Cone height segments
|
|
68
68
|
* @param noLongerAccessible - No longer access the vertices of the mesh after creation
|
|
69
69
|
* @returns Cone model mesh
|
|
70
70
|
*/
|
|
@@ -80,6 +80,8 @@ export declare class PrimitiveMesh {
|
|
|
80
80
|
* @returns Capsule model mesh
|
|
81
81
|
*/
|
|
82
82
|
static createCapsule(engine: Engine, radius?: number, height?: number, radialSegments?: number, heightSegments?: number, noLongerAccessible?: boolean): ModelMesh;
|
|
83
|
+
static _setCylinderData(cylinderMesh: ModelMesh, radiusTop: number, radiusBottom: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean): void;
|
|
84
|
+
static _setCapsuleData(capsuleMesh: ModelMesh, radius: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean): void;
|
|
83
85
|
private static _initialize;
|
|
84
86
|
private static _generateIndices;
|
|
85
87
|
private static _createCapsuleCap;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { BoundingBox } from "@galacean/engine-math";
|
|
2
2
|
import { Entity } from "../Entity";
|
|
3
|
-
import { RenderContext } from "../RenderPipeline/RenderContext";
|
|
4
3
|
import { MeshRenderer } from "./MeshRenderer";
|
|
5
4
|
import { Skin } from "./Skin";
|
|
6
5
|
/**
|
|
7
6
|
* SkinnedMeshRenderer.
|
|
8
7
|
*/
|
|
9
8
|
export declare class SkinnedMeshRenderer extends MeshRenderer {
|
|
10
|
-
private static _tempMatrix;
|
|
11
9
|
private static _jointCountProperty;
|
|
12
10
|
private static _jointSamplerProperty;
|
|
13
11
|
private static _jointMatrixProperty;
|
|
@@ -42,18 +40,6 @@ export declare class SkinnedMeshRenderer extends MeshRenderer {
|
|
|
42
40
|
*/
|
|
43
41
|
get rootBone(): Entity;
|
|
44
42
|
set rootBone(value: Entity);
|
|
45
|
-
/**
|
|
46
|
-
* @override
|
|
47
|
-
*/
|
|
48
|
-
protected _updateShaderData(context: RenderContext): void;
|
|
49
|
-
/**
|
|
50
|
-
* @override
|
|
51
|
-
*/
|
|
52
|
-
protected _registerEntityTransformListener(): void;
|
|
53
|
-
/**
|
|
54
|
-
* @override
|
|
55
|
-
*/
|
|
56
|
-
protected _updateBounds(worldBounds: BoundingBox): void;
|
|
57
43
|
private _initSkin;
|
|
58
44
|
private _computeApproximateBindMatrix;
|
|
59
45
|
private _findByEntityName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ParticleRenderer } from "./ParticleRenderer";
|
|
2
|
+
import { ParticleStopMode } from "./enums/ParticleStopMode";
|
|
3
|
+
import { ColorOverLifetimeModule } from "./modules/ColorOverLifetimeModule";
|
|
4
|
+
import { EmissionModule } from "./modules/EmissionModule";
|
|
5
|
+
import { MainModule } from "./modules/MainModule";
|
|
6
|
+
import { RotationOverLifetimeModule } from "./modules/RotationOverLifetimeModule";
|
|
7
|
+
import { SizeOverLifetimeModule } from "./modules/SizeOverLifetimeModule";
|
|
8
|
+
import { TextureSheetAnimationModule } from "./modules/TextureSheetAnimationModule";
|
|
9
|
+
import { VelocityOverLifetimeModule } from "./modules/VelocityOverLifetimeModule";
|
|
10
|
+
/**
|
|
11
|
+
* Particle Generator.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ParticleGenerator {
|
|
14
|
+
private static readonly _particleIncreaseCount;
|
|
15
|
+
/** Use auto random seed. */
|
|
16
|
+
useAutoRandomSeed: boolean;
|
|
17
|
+
/** Main module. */
|
|
18
|
+
readonly main: MainModule;
|
|
19
|
+
/** Emission module. */
|
|
20
|
+
readonly emission: EmissionModule;
|
|
21
|
+
/** Velocity over lifetime module. */
|
|
22
|
+
readonly velocityOverLifetime: VelocityOverLifetimeModule;
|
|
23
|
+
/** Size over lifetime module. */
|
|
24
|
+
readonly sizeOverLifetime: SizeOverLifetimeModule;
|
|
25
|
+
/** Rotation over lifetime module. */
|
|
26
|
+
readonly rotationOverLifetime: RotationOverLifetimeModule;
|
|
27
|
+
/** Color over lifetime module. */
|
|
28
|
+
readonly colorOverLifetime: ColorOverLifetimeModule;
|
|
29
|
+
/** Texture sheet animation module. */
|
|
30
|
+
readonly textureSheetAnimation: TextureSheetAnimationModule;
|
|
31
|
+
private _isPlaying;
|
|
32
|
+
private _instanceBufferResized;
|
|
33
|
+
private _waitProcessRetiredElementCount;
|
|
34
|
+
private _instanceVertexBufferBinding;
|
|
35
|
+
private _instanceVertices;
|
|
36
|
+
private _randomSeed;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the particle generator is contain alive or is still creating particles.
|
|
39
|
+
*/
|
|
40
|
+
get isAlive(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Random seed.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* If `useAutoRandomSeed` is true, this value will be random changed when play.
|
|
46
|
+
* If you set this value custom, `useAutoRandomSeed` will be false.
|
|
47
|
+
*/
|
|
48
|
+
get randomSeed(): number;
|
|
49
|
+
set randomSeed(value: number);
|
|
50
|
+
constructor(renderer: ParticleRenderer);
|
|
51
|
+
/**
|
|
52
|
+
* Start emitting particles.
|
|
53
|
+
* @param withChildren - Whether to start the particle generator of the child entity
|
|
54
|
+
*/
|
|
55
|
+
play(withChildren?: boolean): void;
|
|
56
|
+
/**
|
|
57
|
+
* Stop emitting particles.
|
|
58
|
+
* @param withChildren - Whether to stop the particle generator of the child entity
|
|
59
|
+
* @param stopMode - Stop mode
|
|
60
|
+
*/
|
|
61
|
+
stop(withChildren?: boolean, stopMode?: ParticleStopMode): void;
|
|
62
|
+
/**
|
|
63
|
+
* Manually emit certain number of particles immediately.
|
|
64
|
+
* @param count - Number of particles to emit
|
|
65
|
+
*/
|
|
66
|
+
emit(count: number): void;
|
|
67
|
+
private _addNewParticle;
|
|
68
|
+
private _retireActiveParticles;
|
|
69
|
+
private _freeRetiredParticles;
|
|
70
|
+
private _addActiveParticlesToVertexBuffer;
|
|
71
|
+
private _addVertexBufferBindingsFilterDuplicate;
|
|
72
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Color } from "@galacean/engine-math";
|
|
2
|
+
import { Engine } from "../Engine";
|
|
3
|
+
import { BaseMaterial } from "../material/BaseMaterial";
|
|
4
|
+
import { Texture2D } from "../texture/Texture2D";
|
|
5
|
+
/**
|
|
6
|
+
* Particle Material.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ParticleMaterial extends BaseMaterial {
|
|
9
|
+
/**
|
|
10
|
+
* Base color.
|
|
11
|
+
*/
|
|
12
|
+
get baseColor(): Color;
|
|
13
|
+
set baseColor(value: Color);
|
|
14
|
+
/**
|
|
15
|
+
* Base texture.
|
|
16
|
+
*/
|
|
17
|
+
get baseTexture(): Texture2D;
|
|
18
|
+
set baseTexture(value: Texture2D);
|
|
19
|
+
/**
|
|
20
|
+
* Create a unlit material instance.
|
|
21
|
+
* @param engine - Engine to which the material belongs
|
|
22
|
+
*/
|
|
23
|
+
constructor(engine: Engine);
|
|
24
|
+
/**
|
|
25
|
+
* @inheritdoc
|
|
26
|
+
*/
|
|
27
|
+
clone(): ParticleMaterial;
|
|
28
|
+
}
|