@galacean/engine-core 1.6.8 → 1.6.9
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 +37541 -0
- package/dist/main.js.map +1 -0
- package/dist/module.js +37259 -0
- package/dist/module.js.map +1 -0
- package/package.json +3 -3
- package/types/2d/assembler/ISpriteAssembler.d.ts +11 -0
- package/types/2d/assembler/ISpriteRenderer.d.ts +16 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +13 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +15 -0
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +17 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +32 -0
- package/types/2d/atlas/types.d.ts +69 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +11 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +23 -0
- package/types/2d/enums/SpriteTileMode.d.ts +11 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +16 -0
- package/types/2d/sprite/Sprite.d.ts +106 -0
- package/types/2d/sprite/SpriteMask.d.ts +70 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +95 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderInfo.d.ts +1 -0
- package/types/2d/text/Font.d.ts +21 -0
- package/types/2d/text/ITextRenderer.d.ts +8 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +122 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +5 -0
- package/types/Background.d.ts +53 -0
- package/types/BasicResources.d.ts +2 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +321 -0
- package/types/Canvas.d.ts +19 -0
- package/types/Component.d.ts +27 -0
- package/types/ComponentsDependencies.d.ts +22 -0
- package/types/ComponentsManager.d.ts +52 -0
- package/types/Engine.d.ts +150 -0
- package/types/EngineSettings.d.ts +5 -0
- package/types/Entity.d.ts +170 -0
- package/types/Layer.d.ts +73 -0
- package/types/Platform.d.ts +15 -0
- package/types/Polyfill.d.ts +1 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +55 -0
- package/types/RenderPipeline/BatchUtils.d.ts +1 -0
- package/types/RenderPipeline/BatcherManager.d.ts +1 -0
- package/types/RenderPipeline/Blitter.d.ts +28 -0
- package/types/RenderPipeline/CullingResults.d.ts +1 -0
- package/types/RenderPipeline/DepthOnlyPass.d.ts +1 -0
- package/types/RenderPipeline/MaskManager.d.ts +1 -0
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +1 -0
- package/types/RenderPipeline/PipelinePass.d.ts +16 -0
- package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +1 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderElement.d.ts +12 -0
- package/types/RenderPipeline/RenderQueue.d.ts +1 -0
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/SubRenderElement.d.ts +22 -0
- package/types/RenderPipeline/VertexArea.d.ts +1 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +11 -0
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +1 -0
- package/types/RenderPipeline/index.d.ts +5 -0
- package/types/Renderer.d.ts +135 -0
- package/types/Scene.d.ts +183 -0
- package/types/SceneManager.d.ts +51 -0
- package/types/Script.d.ts +144 -0
- package/types/SystemInfo.d.ts +27 -0
- package/types/Transform.d.ts +304 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +37 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +87 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +30 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +154 -0
- package/types/animation/AnimatorCondition.d.ts +13 -0
- package/types/animation/AnimatorController.d.ts +72 -0
- package/types/animation/AnimatorControllerLayer.d.ts +21 -0
- package/types/animation/AnimatorControllerParameter.d.ts +14 -0
- package/types/animation/AnimatorLayerMask.d.ts +45 -0
- package/types/animation/AnimatorState.d.ts +69 -0
- package/types/animation/AnimatorStateMachine.d.ts +85 -0
- package/types/animation/AnimatorStateTransition.d.ts +59 -0
- package/types/animation/AnimatorStateTransitionCollection.d.ts +1 -0
- package/types/animation/Keyframe.d.ts +20 -0
- package/types/animation/LayerPathMask.d.ts +16 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +11 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +13 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +17 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +15 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +25 -0
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +1 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +88 -0
- package/types/asset/AssetType.d.ts +66 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +40 -0
- package/types/asset/Loader.d.ts +37 -0
- package/types/asset/ReferResource.d.ts +23 -0
- package/types/asset/ResourceManager.d.ts +121 -0
- package/types/asset/request.d.ts +36 -0
- package/types/audio/AudioClip.d.ts +24 -0
- package/types/audio/AudioManager.d.ts +1 -0
- package/types/audio/AudioSource.d.ts +72 -0
- package/types/audio/index.d.ts +3 -0
- package/types/base/Constant.d.ts +116 -0
- package/types/base/EngineObject.d.ts +25 -0
- package/types/base/EventDispatcher.d.ts +66 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +44 -0
- package/types/base/index.d.ts +5 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +17 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/ActiveChangeFlag.d.ts +6 -0
- package/types/enums/AntiAliasing.d.ts +7 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/CameraModifyFlags.d.ts +17 -0
- package/types/enums/CameraType.d.ts +1 -0
- package/types/enums/DepthTextureMode.d.ts +7 -0
- package/types/enums/Downsampling.d.ts +11 -0
- package/types/enums/EntityModifyFlags.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/enums/MSAASamples.d.ts +13 -0
- package/types/enums/ReplacementFailureStrategy.d.ts +9 -0
- package/types/enums/SpriteMaskLayer.d.ts +73 -0
- package/types/env-probe/CubeProbe.d.ts +27 -0
- package/types/env-probe/Probe.d.ts +52 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/graphic/Buffer.d.ts +114 -0
- package/types/graphic/BufferUtil.d.ts +12 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +58 -0
- package/types/graphic/Primitive.d.ts +1 -0
- package/types/graphic/SubMesh.d.ts +8 -0
- package/types/graphic/SubPrimitive.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +48 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +15 -0
- package/types/index.d.ts +68 -0
- package/types/input/InputManager.d.ts +65 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +8 -0
- package/types/input/interface/IInput.d.ts +10 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +31 -0
- package/types/input/pointer/PointerEventData.d.ts +12 -0
- package/types/input/pointer/PointerManager.d.ts +9 -0
- package/types/input/pointer/emitter/IHitResult.d.ts +1 -0
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +1 -0
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +30 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +70 -0
- package/types/lighting/DirectLight.d.ts +32 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +45 -0
- package/types/lighting/LightManager.d.ts +12 -0
- package/types/lighting/PointLight.d.ts +26 -0
- package/types/lighting/SpotLight.d.ts +45 -0
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +79 -0
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +1 -0
- package/types/lighting/ambientOcclusion/index.d.ts +2 -0
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +11 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +7 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +68 -0
- package/types/material/Material.d.ts +52 -0
- package/types/material/PBRMaterial.d.ts +311 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/Refraction.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +9 -0
- package/types/material/utils/PrefilteredDFG.d.ts +7 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +44 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +25 -0
- package/types/mesh/ModelMesh.d.ts +254 -0
- package/types/mesh/PrimitiveMesh.d.ts +112 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +35 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +50 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +9 -0
- package/types/particle/ParticleBufferUtils.d.ts +1 -0
- package/types/particle/ParticleGenerator.d.ts +94 -0
- package/types/particle/ParticleMaterial.d.ts +38 -0
- package/types/particle/ParticleRenderer.d.ts +47 -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/index.d.ts +22 -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 +48 -0
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +51 -0
- package/types/particle/modules/MainModule.d.ts +104 -0
- package/types/particle/modules/ParticleCompositeCurve.d.ts +81 -0
- package/types/particle/modules/ParticleCompositeGradient.d.ts +55 -0
- package/types/particle/modules/ParticleCurve.d.ts +63 -0
- package/types/particle/modules/ParticleGeneratorModule.d.ts +17 -0
- package/types/particle/modules/ParticleGradient.d.ts +114 -0
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +34 -0
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +52 -0
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +39 -0
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +54 -0
- package/types/particle/modules/shape/BaseShape.d.ts +22 -0
- package/types/particle/modules/shape/BoxShape.d.ts +17 -0
- package/types/particle/modules/shape/CircleShape.d.ts +35 -0
- package/types/particle/modules/shape/ConeShape.d.ts +45 -0
- package/types/particle/modules/shape/HemisphereShape.d.ts +14 -0
- package/types/particle/modules/shape/MeshShape.d.ts +21 -0
- package/types/particle/modules/shape/ShapeUtils.d.ts +1 -0
- package/types/particle/modules/shape/SphereShape.d.ts +14 -0
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +9 -0
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +17 -0
- package/types/particle/modules/shape/index.d.ts +8 -0
- package/types/physics/CharacterController.d.ts +51 -0
- package/types/physics/Collider.d.ts +43 -0
- package/types/physics/Collision.d.ts +22 -0
- package/types/physics/ContactPoint.d.ts +14 -0
- package/types/physics/DynamicCollider.d.ts +192 -0
- package/types/physics/HitResult.d.ts +18 -0
- package/types/physics/PhysicsMaterial.d.ts +42 -0
- package/types/physics/PhysicsScene.d.ts +276 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +1 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +12 -0
- package/types/physics/joint/FixedJoint.d.ts +4 -0
- package/types/physics/joint/HingeJoint.d.ts +61 -0
- package/types/physics/joint/Joint.d.ts +81 -0
- package/types/physics/joint/JointLimits.d.ts +39 -0
- package/types/physics/joint/JointMotor.d.ts +32 -0
- package/types/physics/joint/SpringJoint.d.ts +38 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +16 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +27 -0
- package/types/physics/shape/ColliderShape.d.ts +61 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +9 -0
- package/types/physics/shape/SphereColliderShape.d.ts +14 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/postProcess/FinalPass.d.ts +1 -0
- package/types/postProcess/PostProcess.d.ts +64 -0
- package/types/postProcess/PostProcessEffect.d.ts +26 -0
- package/types/postProcess/PostProcessEffectParameter.d.ts +119 -0
- package/types/postProcess/PostProcessManager.d.ts +38 -0
- package/types/postProcess/PostProcessPass.d.ts +50 -0
- package/types/postProcess/PostProcessUberPass.d.ts +25 -0
- package/types/postProcess/effects/BloomEffect.d.ts +50 -0
- package/types/postProcess/effects/TonemappingEffect.d.ts +25 -0
- package/types/postProcess/effects/index.d.ts +2 -0
- package/types/postProcess/index.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +7 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +119 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +26 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +46 -0
- package/types/shader/ShaderPass.d.ts +25 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +20 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +18 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/RenderStateElementKey.d.ts +60 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +15 -0
- package/types/shader/enums/ShaderLanguage.d.ts +9 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +19 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +21 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shader/state/index.d.ts +6 -0
- package/types/shaderlib/ShaderFactory.d.ts +20 -0
- package/types/shaderlib/ShaderLib.d.ts +73 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/particle/index.d.ts +15 -0
- package/types/shaderlib/pbr/index.d.ts +11 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +45 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +22 -0
- package/types/sky/SkyBoxMaterial.d.ts +43 -0
- package/types/sky/SkyProceduralMaterial.d.ts +72 -0
- package/types/sky/index.d.ts +3 -0
- package/types/texture/RenderTarget.d.ts +91 -0
- package/types/texture/Texture.d.ts +87 -0
- package/types/texture/Texture2D.d.ts +71 -0
- package/types/texture/Texture2DArray.d.ts +82 -0
- package/types/texture/TextureCube.d.ts +71 -0
- package/types/texture/TextureUtils.d.ts +1 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +23 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +87 -0
- package/types/texture/enums/TextureUsage.d.ts +9 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +13 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +35 -0
- package/types/trail/index.d.ts +2 -0
- package/types/ui/IUICanvas.d.ts +1 -0
- package/types/ui/UIUtils.d.ts +12 -0
- package/types/utils/ClearableObjectPool.d.ts +16 -0
- package/types/utils/DisorderedArray.d.ts +70 -0
- package/types/utils/ObjectPool.d.ts +16 -0
- package/types/utils/ReturnableObjectPool.d.ts +16 -0
- package/types/utils/SafeLoopArray.d.ts +46 -0
- package/types/utils/index.d.ts +4 -0
- package/types/xr/XRManager.d.ts +5 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { Color, Vector2, Vector4 } from "@galacean/engine-math";
|
|
2
|
+
import { Engine } from "../Engine";
|
|
3
|
+
import { Texture2D } from "../texture/Texture2D";
|
|
4
|
+
import { BaseMaterial } from "./BaseMaterial";
|
|
5
|
+
import { RefractionMode } from "./enums/Refraction";
|
|
6
|
+
import { TextureCoordinate } from "./enums/TextureCoordinate";
|
|
7
|
+
/**
|
|
8
|
+
* PBR (Metallic-Roughness Workflow) Material.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PBRMaterial extends BaseMaterial {
|
|
11
|
+
private static _occlusionTextureIntensityProp;
|
|
12
|
+
private static _occlusionTextureCoordProp;
|
|
13
|
+
private static _occlusionTextureProp;
|
|
14
|
+
private static _clearCoatProp;
|
|
15
|
+
private static _clearCoatTextureProp;
|
|
16
|
+
private static _clearCoatRoughnessProp;
|
|
17
|
+
private static _clearCoatRoughnessTextureProp;
|
|
18
|
+
private static _clearCoatNormalTextureProp;
|
|
19
|
+
private static _metallicProp;
|
|
20
|
+
private static _roughnessProp;
|
|
21
|
+
private static _roughnessMetallicTextureProp;
|
|
22
|
+
private static _iorProp;
|
|
23
|
+
private static _anisotropyInfoProp;
|
|
24
|
+
private static _anisotropyTextureProp;
|
|
25
|
+
private static _iridescenceInfoProp;
|
|
26
|
+
private static _iridescenceThicknessTextureProp;
|
|
27
|
+
private static _iridescenceTextureProp;
|
|
28
|
+
private static _sheenColorProp;
|
|
29
|
+
private static _sheenRoughnessProp;
|
|
30
|
+
private static _sheenTextureProp;
|
|
31
|
+
private static _sheenRoughnessTextureProp;
|
|
32
|
+
private static _transmissionMacro;
|
|
33
|
+
private static _thicknessMacro;
|
|
34
|
+
private static _thicknessTextureMacro;
|
|
35
|
+
private static _transmissionTextureMacro;
|
|
36
|
+
private static _transmissionProp;
|
|
37
|
+
private static _transmissionTextureProp;
|
|
38
|
+
private static _attenuationColorProp;
|
|
39
|
+
private static _attenuationDistanceProp;
|
|
40
|
+
private static _thicknessProp;
|
|
41
|
+
private static _thicknessTextureProp;
|
|
42
|
+
private static _specularTextureMacro;
|
|
43
|
+
private static _specularColorTextureMacro;
|
|
44
|
+
private static _specularIntensityProp;
|
|
45
|
+
private static _specularColorProp;
|
|
46
|
+
private static _specularIntensityTextureProp;
|
|
47
|
+
private static _specularColorTextureProp;
|
|
48
|
+
private _refractionMode;
|
|
49
|
+
private _anisotropyRotation;
|
|
50
|
+
private _iridescenceRange;
|
|
51
|
+
private _sheenEnabled;
|
|
52
|
+
/**
|
|
53
|
+
* Base color.
|
|
54
|
+
*/
|
|
55
|
+
get baseColor(): Color;
|
|
56
|
+
set baseColor(value: Color);
|
|
57
|
+
/**
|
|
58
|
+
* Base texture.
|
|
59
|
+
*/
|
|
60
|
+
get baseTexture(): Texture2D;
|
|
61
|
+
set baseTexture(value: Texture2D);
|
|
62
|
+
/**
|
|
63
|
+
* Normal texture.
|
|
64
|
+
*/
|
|
65
|
+
get normalTexture(): Texture2D;
|
|
66
|
+
set normalTexture(value: Texture2D);
|
|
67
|
+
/**
|
|
68
|
+
* Normal texture intensity.
|
|
69
|
+
*/
|
|
70
|
+
get normalTextureIntensity(): number;
|
|
71
|
+
set normalTextureIntensity(value: number);
|
|
72
|
+
/**
|
|
73
|
+
* Emissive color.
|
|
74
|
+
*/
|
|
75
|
+
get emissiveColor(): Color;
|
|
76
|
+
set emissiveColor(value: Color);
|
|
77
|
+
/**
|
|
78
|
+
* Emissive texture.
|
|
79
|
+
*/
|
|
80
|
+
get emissiveTexture(): Texture2D;
|
|
81
|
+
set emissiveTexture(value: Texture2D);
|
|
82
|
+
/**
|
|
83
|
+
* Occlusion texture.
|
|
84
|
+
*/
|
|
85
|
+
get occlusionTexture(): Texture2D;
|
|
86
|
+
set occlusionTexture(value: Texture2D);
|
|
87
|
+
/**
|
|
88
|
+
* Occlusion texture intensity.
|
|
89
|
+
*/
|
|
90
|
+
get occlusionTextureIntensity(): number;
|
|
91
|
+
set occlusionTextureIntensity(value: number);
|
|
92
|
+
/**
|
|
93
|
+
* Occlusion texture uv coordinate.
|
|
94
|
+
* @remarks Must be UV0 or UV1.
|
|
95
|
+
*/
|
|
96
|
+
get occlusionTextureCoord(): TextureCoordinate;
|
|
97
|
+
set occlusionTextureCoord(value: TextureCoordinate);
|
|
98
|
+
/**
|
|
99
|
+
* Tiling and offset of main textures.
|
|
100
|
+
*/
|
|
101
|
+
get tilingOffset(): Vector4;
|
|
102
|
+
set tilingOffset(value: Vector4);
|
|
103
|
+
/**
|
|
104
|
+
* The clearCoat layer intensity, default 0.
|
|
105
|
+
*/
|
|
106
|
+
get clearCoat(): number;
|
|
107
|
+
set clearCoat(value: number);
|
|
108
|
+
/**
|
|
109
|
+
* The clearCoat layer intensity texture.
|
|
110
|
+
*/
|
|
111
|
+
get clearCoatTexture(): Texture2D;
|
|
112
|
+
set clearCoatTexture(value: Texture2D);
|
|
113
|
+
/**
|
|
114
|
+
* The clearCoat layer roughness, default 0.
|
|
115
|
+
*/
|
|
116
|
+
get clearCoatRoughness(): number;
|
|
117
|
+
set clearCoatRoughness(value: number);
|
|
118
|
+
/**
|
|
119
|
+
* The clearCoat layer roughness texture.
|
|
120
|
+
*/
|
|
121
|
+
get clearCoatRoughnessTexture(): Texture2D;
|
|
122
|
+
set clearCoatRoughnessTexture(value: Texture2D);
|
|
123
|
+
/**
|
|
124
|
+
* The clearCoat normal map texture.
|
|
125
|
+
*/
|
|
126
|
+
get clearCoatNormalTexture(): Texture2D;
|
|
127
|
+
set clearCoatNormalTexture(value: Texture2D);
|
|
128
|
+
/**
|
|
129
|
+
* Index Of Refraction.
|
|
130
|
+
* @defaultValue `1.5`
|
|
131
|
+
*/
|
|
132
|
+
get ior(): number;
|
|
133
|
+
set ior(v: number);
|
|
134
|
+
/**
|
|
135
|
+
* Metallic.
|
|
136
|
+
* @defaultValue `1.0`
|
|
137
|
+
*/
|
|
138
|
+
get metallic(): number;
|
|
139
|
+
set metallic(value: number);
|
|
140
|
+
/**
|
|
141
|
+
* Roughness. default 1.0.
|
|
142
|
+
* @defaultValue `1.0`
|
|
143
|
+
*/
|
|
144
|
+
get roughness(): number;
|
|
145
|
+
set roughness(value: number);
|
|
146
|
+
/**
|
|
147
|
+
* Roughness metallic texture.
|
|
148
|
+
* @remarks G channel is roughness, B channel is metallic
|
|
149
|
+
*/
|
|
150
|
+
get roughnessMetallicTexture(): Texture2D;
|
|
151
|
+
set roughnessMetallicTexture(value: Texture2D);
|
|
152
|
+
/**
|
|
153
|
+
* The strength of anisotropy, when anisotropyTexture is present, this value is multiplied by the blue channel.
|
|
154
|
+
* @defaultValue `0`
|
|
155
|
+
*/
|
|
156
|
+
get anisotropy(): number;
|
|
157
|
+
set anisotropy(value: number);
|
|
158
|
+
/**
|
|
159
|
+
* The rotation of the anisotropy in tangent, bitangent space, value in degrees.
|
|
160
|
+
* @defaultValue `0`
|
|
161
|
+
*/
|
|
162
|
+
get anisotropyRotation(): number;
|
|
163
|
+
set anisotropyRotation(value: number);
|
|
164
|
+
/**
|
|
165
|
+
* The anisotropy texture.
|
|
166
|
+
* @remarks
|
|
167
|
+
* Red and green channels represent the anisotropy direction in [-1, 1] tangent, bitangent space, to be rotated by anisotropyRotation.
|
|
168
|
+
* The blue channel contains strength as [0, 1] to be multiplied by anisotropy.
|
|
169
|
+
*/
|
|
170
|
+
get anisotropyTexture(): Texture2D;
|
|
171
|
+
set anisotropyTexture(value: Texture2D);
|
|
172
|
+
/**
|
|
173
|
+
* The iridescence intensity factor, from 0.0 to 1.0.
|
|
174
|
+
* @defaultValue `0.0`
|
|
175
|
+
*/
|
|
176
|
+
get iridescence(): number;
|
|
177
|
+
set iridescence(value: number);
|
|
178
|
+
/**
|
|
179
|
+
* The iridescence intensity texture, sampling red channel, and multiply 'iridescence'.
|
|
180
|
+
*/
|
|
181
|
+
get iridescenceTexture(): Texture2D;
|
|
182
|
+
set iridescenceTexture(value: Texture2D);
|
|
183
|
+
/**
|
|
184
|
+
* The index of refraction of the dielectric thin-film layer, greater than or equal to 1.0.
|
|
185
|
+
* @defaultValue `1.3`
|
|
186
|
+
*/
|
|
187
|
+
get iridescenceIOR(): number;
|
|
188
|
+
set iridescenceIOR(value: number);
|
|
189
|
+
/**
|
|
190
|
+
* The range of iridescence thickness, x is minimum, y is maximum.
|
|
191
|
+
* @defaultValue `[100, 400]`
|
|
192
|
+
*/
|
|
193
|
+
get iridescenceThicknessRange(): Vector2;
|
|
194
|
+
set iridescenceThicknessRange(value: Vector2);
|
|
195
|
+
/**
|
|
196
|
+
* The thickness texture of the thin-film layer, sampling green channel.
|
|
197
|
+
* @remarks
|
|
198
|
+
* If iridescenceThicknessTexture is defined, iridescence thickness between the 'iridescenceThicknessRange'.
|
|
199
|
+
* If iridescenceThicknessTexture is not defined, iridescence thickness will use only 'iridescenceThicknessRange.y'.
|
|
200
|
+
*/
|
|
201
|
+
get iridescenceThicknessTexture(): Texture2D;
|
|
202
|
+
set iridescenceThicknessTexture(value: Texture2D);
|
|
203
|
+
/**
|
|
204
|
+
* Sheen color.
|
|
205
|
+
* @defaultValue `[0,0,0]`
|
|
206
|
+
*/
|
|
207
|
+
get sheenColor(): Color;
|
|
208
|
+
set sheenColor(value: Color);
|
|
209
|
+
/**
|
|
210
|
+
* Sheen roughness, from 0.0 to 1.0.
|
|
211
|
+
* @defaultValue `0.0`
|
|
212
|
+
*/
|
|
213
|
+
get sheenRoughness(): number;
|
|
214
|
+
set sheenRoughness(value: number);
|
|
215
|
+
/**
|
|
216
|
+
* Sheen color texture, multiply ‘sheenColor’.
|
|
217
|
+
*/
|
|
218
|
+
get sheenColorTexture(): Texture2D;
|
|
219
|
+
set sheenColorTexture(value: Texture2D);
|
|
220
|
+
/**
|
|
221
|
+
* Sheen roughness texture.
|
|
222
|
+
* @remarks Use alpha channel, and multiply 'sheenRoughness'.
|
|
223
|
+
*/
|
|
224
|
+
get sheenRoughnessTexture(): Texture2D;
|
|
225
|
+
set sheenRoughnessTexture(value: Texture2D);
|
|
226
|
+
/**
|
|
227
|
+
* Refraction switch.
|
|
228
|
+
* @remarks Use refractionMode to set the refraction shape.
|
|
229
|
+
*/
|
|
230
|
+
get refractionMode(): RefractionMode;
|
|
231
|
+
set refractionMode(value: RefractionMode);
|
|
232
|
+
/**
|
|
233
|
+
* @inheritdoc
|
|
234
|
+
*/
|
|
235
|
+
get isTransparent(): boolean;
|
|
236
|
+
set isTransparent(value: boolean);
|
|
237
|
+
/**
|
|
238
|
+
* @inheritdoc
|
|
239
|
+
*/
|
|
240
|
+
get alphaCutoff(): number;
|
|
241
|
+
set alphaCutoff(value: number);
|
|
242
|
+
/**
|
|
243
|
+
* Transmission factor.
|
|
244
|
+
* @defaultValue `0.0`
|
|
245
|
+
*/
|
|
246
|
+
get transmission(): number;
|
|
247
|
+
set transmission(value: number);
|
|
248
|
+
/**
|
|
249
|
+
* Transmission texture.
|
|
250
|
+
* @remarks Use red channel, and multiply 'transmission'.
|
|
251
|
+
*/
|
|
252
|
+
get transmissionTexture(): Texture2D;
|
|
253
|
+
set transmissionTexture(value: Texture2D);
|
|
254
|
+
/**
|
|
255
|
+
* Attenuation color.
|
|
256
|
+
* @defaultValue `[1,1,1]`
|
|
257
|
+
*/
|
|
258
|
+
get attenuationColor(): Color;
|
|
259
|
+
set attenuationColor(value: Color);
|
|
260
|
+
/**
|
|
261
|
+
* Attenuation distance, greater than 0.0.
|
|
262
|
+
* @defaultValue `infinity`
|
|
263
|
+
*/
|
|
264
|
+
get attenuationDistance(): number;
|
|
265
|
+
set attenuationDistance(value: number);
|
|
266
|
+
/**
|
|
267
|
+
* Thickness, greater than or equal to 0.0.
|
|
268
|
+
* @defaultValue `0.0`
|
|
269
|
+
*/
|
|
270
|
+
get thickness(): number;
|
|
271
|
+
set thickness(value: number);
|
|
272
|
+
/**
|
|
273
|
+
* Thickness texture.
|
|
274
|
+
* @remarks Use green channel, and multiply 'thickness', range is 0.0 to 1.0.
|
|
275
|
+
*/
|
|
276
|
+
get thicknessTexture(): Texture2D;
|
|
277
|
+
set thicknessTexture(value: Texture2D);
|
|
278
|
+
/**
|
|
279
|
+
* The intensity of the specular reflection.
|
|
280
|
+
* @defaultValue `1.0`
|
|
281
|
+
*/
|
|
282
|
+
get specularIntensity(): number;
|
|
283
|
+
set specularIntensity(value: number);
|
|
284
|
+
/**
|
|
285
|
+
* The F0 color of the specular reflection.
|
|
286
|
+
* @defaultValue `[1,1,1]`
|
|
287
|
+
*/
|
|
288
|
+
get specularColor(): Color;
|
|
289
|
+
set specularColor(value: Color);
|
|
290
|
+
/**
|
|
291
|
+
* The intensity of the specular reflection, stored in alpha(A) channel. This will be multiplied by `specularIntensity`.
|
|
292
|
+
*/
|
|
293
|
+
get specularIntensityTexture(): Texture2D;
|
|
294
|
+
set specularIntensityTexture(value: Texture2D);
|
|
295
|
+
/**
|
|
296
|
+
* The F0 color of the specular reflection, stored in the RGB channels. This will be multiplied by `specularColor`.
|
|
297
|
+
*/
|
|
298
|
+
get specularColorTexture(): Texture2D;
|
|
299
|
+
set specularColorTexture(value: Texture2D);
|
|
300
|
+
/**
|
|
301
|
+
* Create a pbr metallic-roughness workflow material instance.
|
|
302
|
+
* @param engine - Engine to which the material belongs
|
|
303
|
+
*/
|
|
304
|
+
constructor(engine: Engine);
|
|
305
|
+
/**
|
|
306
|
+
* @inheritdoc
|
|
307
|
+
*/
|
|
308
|
+
clone(): PBRMaterial;
|
|
309
|
+
private _onIridescenceRangeChanged;
|
|
310
|
+
private _onSheenColorChanged;
|
|
311
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Color, Vector4 } from "@galacean/engine-math";
|
|
2
|
+
import { Engine } from "../Engine";
|
|
3
|
+
import { Texture2D } from "../texture/Texture2D";
|
|
4
|
+
import { BaseMaterial } from "./BaseMaterial";
|
|
5
|
+
/**
|
|
6
|
+
* Unlit Material.
|
|
7
|
+
*/
|
|
8
|
+
export declare class UnlitMaterial 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
|
+
* Tiling and offset of main textures.
|
|
21
|
+
*/
|
|
22
|
+
get tilingOffset(): Vector4;
|
|
23
|
+
set tilingOffset(value: Vector4);
|
|
24
|
+
/**
|
|
25
|
+
* Create a unlit material instance.
|
|
26
|
+
* @param engine - Engine to which the material belongs
|
|
27
|
+
*/
|
|
28
|
+
constructor(engine: Engine);
|
|
29
|
+
/**
|
|
30
|
+
* @inheritdoc
|
|
31
|
+
*/
|
|
32
|
+
clone(): UnlitMaterial;
|
|
33
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { BaseMaterial } from "./BaseMaterial";
|
|
2
|
+
export { BlinnPhongMaterial } from "./BlinnPhongMaterial";
|
|
3
|
+
export { BlendMode } from "./enums/BlendMode";
|
|
4
|
+
export { RenderFace } from "./enums/RenderFace";
|
|
5
|
+
export { TextureCoordinate } from "./enums/TextureCoordinate";
|
|
6
|
+
export { Material } from "./Material";
|
|
7
|
+
export { PBRMaterial } from "./PBRMaterial";
|
|
8
|
+
export { UnlitMaterial } from "./UnlitMaterial";
|
|
9
|
+
export { RefractionMode } from "./enums/Refraction";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
+
import { BlendShapeFrame } from "./BlendShapeFrame";
|
|
3
|
+
/**
|
|
4
|
+
* BlendShape.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BlendShape {
|
|
7
|
+
/** Name of BlendShape. */
|
|
8
|
+
name: string;
|
|
9
|
+
private _frames;
|
|
10
|
+
/**
|
|
11
|
+
* Frames of BlendShape.
|
|
12
|
+
*/
|
|
13
|
+
get frames(): Readonly<BlendShapeFrame[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Create a BlendShape.
|
|
16
|
+
* @param name - BlendShape name.
|
|
17
|
+
*/
|
|
18
|
+
constructor(name: string);
|
|
19
|
+
/**
|
|
20
|
+
* Add a BlendShapeFrame by weight, deltaPositions, deltaNormals and deltaTangents.
|
|
21
|
+
* @param weight - Weight of BlendShapeFrame
|
|
22
|
+
* @param deltaPositions - Delta positions for the frame being added
|
|
23
|
+
* @param deltaNormals - Delta normals for the frame being added
|
|
24
|
+
* @param deltaTangents - Delta tangents for the frame being added
|
|
25
|
+
*/
|
|
26
|
+
addFrame(weight: number, deltaPositions: Vector3[], deltaNormals?: Vector3[], deltaTangents?: Vector3[]): BlendShapeFrame;
|
|
27
|
+
/**
|
|
28
|
+
* Add a BlendShapeFrame.
|
|
29
|
+
* @param frame - The BlendShapeFrame.
|
|
30
|
+
*/
|
|
31
|
+
addFrame(frame: BlendShapeFrame): void;
|
|
32
|
+
/**
|
|
33
|
+
* Clear all frames.
|
|
34
|
+
*/
|
|
35
|
+
clearFrames(): void;
|
|
36
|
+
private _addFrame;
|
|
37
|
+
private _updateUseNormalAndTangent;
|
|
38
|
+
private _frameDataChangeListener;
|
|
39
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
+
/**
|
|
3
|
+
* BlendShapeFrame.
|
|
4
|
+
*/
|
|
5
|
+
export declare class BlendShapeFrame {
|
|
6
|
+
/** Weight of BlendShapeFrame. */
|
|
7
|
+
readonly weight: number;
|
|
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[]);
|
|
30
|
+
/**
|
|
31
|
+
* Create a BlendShapeFrame.
|
|
32
|
+
* @param weight - Weight of BlendShapeFrame
|
|
33
|
+
* @param deltaPositions - Delta positions for the frame being added
|
|
34
|
+
* @param deltaNormals - Delta normals for the frame being added
|
|
35
|
+
* @param deltaTangents - Delta tangents for the frame being added
|
|
36
|
+
*/
|
|
37
|
+
constructor(weight: number, deltaPositions: Vector3[], deltaNormals?: Vector3[], deltaTangents?: Vector3[]);
|
|
38
|
+
}
|
|
39
|
+
export declare enum BlendShapeFrameDirty {
|
|
40
|
+
Position = 1,
|
|
41
|
+
Normal = 2,
|
|
42
|
+
Tangent = 4,
|
|
43
|
+
All = 7
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IndexBufferBinding, IndexFormat, Mesh, Buffer, VertexBufferBinding, VertexElement } from "../graphic";
|
|
2
|
+
/**
|
|
3
|
+
* BufferMesh.
|
|
4
|
+
*/
|
|
5
|
+
export declare class BufferMesh extends Mesh {
|
|
6
|
+
/**
|
|
7
|
+
* Instanced count, disable instanced drawing when set zero.
|
|
8
|
+
*/
|
|
9
|
+
get instanceCount(): number;
|
|
10
|
+
set instanceCount(value: number);
|
|
11
|
+
/**
|
|
12
|
+
* Vertex buffer binding collection.
|
|
13
|
+
*/
|
|
14
|
+
get vertexBufferBindings(): Readonly<VertexBufferBinding[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Index buffer binding.
|
|
17
|
+
*/
|
|
18
|
+
get indexBufferBinding(): IndexBufferBinding;
|
|
19
|
+
/**
|
|
20
|
+
* Vertex element collection.
|
|
21
|
+
*/
|
|
22
|
+
get vertexElements(): Readonly<VertexElement[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Set vertex elements.
|
|
25
|
+
* @param elements - Vertex element collection
|
|
26
|
+
*/
|
|
27
|
+
setVertexElements(elements: VertexElement[]): void;
|
|
28
|
+
/**
|
|
29
|
+
* Set vertex buffer binding.
|
|
30
|
+
* @param vertexBufferBinding - Vertex buffer binding
|
|
31
|
+
* @param index - Vertex buffer index, the default value is 0
|
|
32
|
+
*/
|
|
33
|
+
setVertexBufferBinding(vertexBufferBinding: VertexBufferBinding, index?: number): void;
|
|
34
|
+
/**
|
|
35
|
+
* Set vertex buffer binding.
|
|
36
|
+
* @param vertexBuffer - Vertex buffer
|
|
37
|
+
* @param stride - Vertex buffer data stride
|
|
38
|
+
* @param index - Vertex buffer index, the default value is 0
|
|
39
|
+
*/
|
|
40
|
+
setVertexBufferBinding(vertexBuffer: Buffer, stride: number, index?: number): void;
|
|
41
|
+
/**
|
|
42
|
+
* Set vertex buffer binding.
|
|
43
|
+
* @param vertexBufferBindings - Vertex buffer binding
|
|
44
|
+
* @param firstIndex - First vertex buffer index, the default value is 0
|
|
45
|
+
*/
|
|
46
|
+
setVertexBufferBindings(vertexBufferBindings: VertexBufferBinding[], firstIndex?: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* Set index buffer binding.
|
|
49
|
+
* @param buffer - Index buffer
|
|
50
|
+
* @param format - Index buffer format
|
|
51
|
+
*/
|
|
52
|
+
setIndexBufferBinding(buffer: Buffer, format: IndexFormat): void;
|
|
53
|
+
/**
|
|
54
|
+
* Set index buffer binding.
|
|
55
|
+
* @param bufferBinding - Index buffer binding
|
|
56
|
+
* @remarks When bufferBinding is null, it will clear IndexBufferBinding
|
|
57
|
+
*/
|
|
58
|
+
setIndexBufferBinding(bufferBinding: IndexBufferBinding | null): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Renderer } from "../Renderer";
|
|
2
|
+
import { Mesh } from "../graphic/Mesh";
|
|
3
|
+
/**
|
|
4
|
+
* MeshRenderer Component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MeshRenderer extends Renderer {
|
|
7
|
+
private static _uvMacro;
|
|
8
|
+
private static _uv1Macro;
|
|
9
|
+
private static _normalMacro;
|
|
10
|
+
private static _tangentMacro;
|
|
11
|
+
private static _enableVertexColorMacro;
|
|
12
|
+
private _enableVertexColor;
|
|
13
|
+
/**
|
|
14
|
+
* Mesh assigned to the renderer.
|
|
15
|
+
*/
|
|
16
|
+
get mesh(): Mesh;
|
|
17
|
+
set mesh(value: Mesh);
|
|
18
|
+
/**
|
|
19
|
+
* Whether enable vertex color.
|
|
20
|
+
*/
|
|
21
|
+
get enableVertexColor(): boolean;
|
|
22
|
+
set enableVertexColor(value: boolean);
|
|
23
|
+
private _setMesh;
|
|
24
|
+
private _onMeshChanged;
|
|
25
|
+
}
|