@galacean/engine-core 1.6.7 → 1.6.8
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/package.json +3 -3
- package/dist/main.js +0 -37541
- package/dist/main.js.map +0 -1
- package/dist/module.js +0 -37259
- package/dist/module.js.map +0 -1
- package/types/2d/assembler/ISpriteAssembler.d.ts +0 -11
- package/types/2d/assembler/ISpriteRenderer.d.ts +0 -16
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +0 -13
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +0 -15
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -17
- package/types/2d/atlas/FontAtlas.d.ts +0 -1
- package/types/2d/atlas/SpriteAtlas.d.ts +0 -32
- package/types/2d/atlas/types.d.ts +0 -69
- package/types/2d/enums/FontStyle.d.ts +0 -11
- package/types/2d/enums/SpriteDrawMode.d.ts +0 -11
- package/types/2d/enums/SpriteMaskInteraction.d.ts +0 -11
- package/types/2d/enums/SpriteModifyFlags.d.ts +0 -23
- package/types/2d/enums/SpriteTileMode.d.ts +0 -11
- package/types/2d/enums/TextAlignment.d.ts +0 -22
- package/types/2d/enums/TextOverflow.d.ts +0 -9
- package/types/2d/index.d.ts +0 -16
- package/types/2d/sprite/Sprite.d.ts +0 -106
- package/types/2d/sprite/SpriteMask.d.ts +0 -70
- package/types/2d/sprite/SpriteRenderer.d.ts +0 -95
- package/types/2d/sprite/index.d.ts +0 -3
- package/types/2d/text/CharInfo.d.ts +0 -1
- package/types/2d/text/CharRenderInfo.d.ts +0 -1
- package/types/2d/text/Font.d.ts +0 -21
- package/types/2d/text/ITextRenderer.d.ts +0 -8
- package/types/2d/text/SubFont.d.ts +0 -1
- package/types/2d/text/TextRenderer.d.ts +0 -122
- package/types/2d/text/TextUtils.d.ts +0 -1
- package/types/2d/text/index.d.ts +0 -5
- package/types/Background.d.ts +0 -53
- package/types/BasicResources.d.ts +0 -2
- package/types/BoolUpdateFlag.d.ts +0 -12
- package/types/Camera.d.ts +0 -321
- package/types/Canvas.d.ts +0 -19
- package/types/Component.d.ts +0 -27
- package/types/ComponentsDependencies.d.ts +0 -25
- package/types/ComponentsManager.d.ts +0 -52
- package/types/Engine.d.ts +0 -150
- package/types/EngineSettings.d.ts +0 -5
- package/types/Entity.d.ts +0 -171
- package/types/Layer.d.ts +0 -73
- package/types/Platform.d.ts +0 -15
- package/types/Polyfill.d.ts +0 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +0 -55
- package/types/RenderPipeline/BatchUtils.d.ts +0 -1
- package/types/RenderPipeline/BatcherManager.d.ts +0 -1
- package/types/RenderPipeline/Blitter.d.ts +0 -28
- package/types/RenderPipeline/CullingResults.d.ts +0 -1
- package/types/RenderPipeline/DepthOnlyPass.d.ts +0 -1
- package/types/RenderPipeline/MaskManager.d.ts +0 -1
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
- package/types/RenderPipeline/PipelinePass.d.ts +0 -16
- package/types/RenderPipeline/PipelineUtils.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +0 -1
- package/types/RenderPipeline/RenderContext.d.ts +0 -1
- package/types/RenderPipeline/RenderElement.d.ts +0 -12
- package/types/RenderPipeline/RenderQueue.d.ts +0 -1
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
- package/types/RenderPipeline/VertexArea.d.ts +0 -1
- package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -11
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +0 -1
- package/types/RenderPipeline/index.d.ts +0 -5
- package/types/Renderer.d.ts +0 -135
- package/types/Scene.d.ts +0 -183
- package/types/SceneManager.d.ts +0 -51
- package/types/Script.d.ts +0 -144
- package/types/SystemInfo.d.ts +0 -27
- package/types/Transform.d.ts +0 -304
- package/types/UpdateFlag.d.ts +0 -20
- package/types/UpdateFlagManager.d.ts +0 -1
- package/types/Utils.d.ts +0 -37
- package/types/VirtualCamera.d.ts +0 -1
- package/types/animation/AnimationClip.d.ts +0 -87
- package/types/animation/AnimationClipCurveBinding.d.ts +0 -31
- package/types/animation/AnimationEvent.d.ts +0 -11
- package/types/animation/Animator.d.ts +0 -154
- package/types/animation/AnimatorCondition.d.ts +0 -13
- package/types/animation/AnimatorController.d.ts +0 -72
- package/types/animation/AnimatorControllerLayer.d.ts +0 -21
- package/types/animation/AnimatorControllerParameter.d.ts +0 -14
- package/types/animation/AnimatorLayerMask.d.ts +0 -45
- package/types/animation/AnimatorState.d.ts +0 -69
- package/types/animation/AnimatorStateMachine.d.ts +0 -85
- package/types/animation/AnimatorStateTransition.d.ts +0 -59
- package/types/animation/AnimatorStateTransitionCollection.d.ts +0 -1
- package/types/animation/Keyframe.d.ts +0 -20
- package/types/animation/LayerPathMask.d.ts +0 -16
- package/types/animation/StateMachineScript.d.ts +0 -32
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationCurve.d.ts +0 -39
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -11
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +0 -8
- package/types/animation/animationCurve/index.d.ts +0 -13
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +0 -1
- package/types/animation/enums/AnimatorConditionMode.d.ts +0 -17
- package/types/animation/enums/AnimatorCullingMode.d.ts +0 -9
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +0 -4
- package/types/animation/enums/AnimatorStatePlayState.d.ts +0 -1
- package/types/animation/enums/InterpolationType.d.ts +0 -13
- package/types/animation/enums/LayerState.d.ts +0 -15
- package/types/animation/enums/PlayState.d.ts +0 -13
- package/types/animation/enums/WrapMode.d.ts +0 -9
- package/types/animation/index.d.ts +0 -25
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +0 -1
- package/types/animation/internal/AnimationEventHandler.d.ts +0 -1
- package/types/animation/internal/AnimatorLayerData.d.ts +0 -1
- package/types/animation/internal/AnimatorStateData.d.ts +0 -1
- package/types/animation/internal/AnimatorStatePlayData.d.ts +0 -1
- package/types/animation/internal/AnimatorTempValue.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +0 -5
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/asset/AssetPromise.d.ts +0 -88
- package/types/asset/AssetType.d.ts +0 -66
- package/types/asset/ContentRestorer.d.ts +0 -17
- package/types/asset/GraphicsResource.d.ts +0 -9
- package/types/asset/IReferable.d.ts +0 -2
- package/types/asset/LoadItem.d.ts +0 -40
- package/types/asset/Loader.d.ts +0 -37
- package/types/asset/ReferResource.d.ts +0 -23
- package/types/asset/ResourceManager.d.ts +0 -121
- package/types/asset/request.d.ts +0 -36
- package/types/audio/AudioClip.d.ts +0 -24
- package/types/audio/AudioManager.d.ts +0 -1
- package/types/audio/AudioSource.d.ts +0 -72
- package/types/audio/index.d.ts +0 -3
- package/types/base/Constant.d.ts +0 -116
- package/types/base/EngineObject.d.ts +0 -25
- package/types/base/EventDispatcher.d.ts +0 -66
- package/types/base/Logger.d.ts +0 -11
- package/types/base/StaticInterfaceImplement.d.ts +0 -5
- package/types/base/Time.d.ts +0 -44
- package/types/base/index.d.ts +0 -5
- package/types/clone/CloneManager.d.ts +0 -31
- package/types/clone/ComponentCloner.d.ts +0 -17
- package/types/clone/enums/CloneMode.d.ts +0 -13
- package/types/enums/ActiveChangeFlag.d.ts +0 -6
- package/types/enums/AntiAliasing.d.ts +0 -7
- package/types/enums/BackgroundMode.d.ts +0 -9
- package/types/enums/BackgroundTextureFillMode.d.ts +0 -8
- package/types/enums/CameraClearFlags.d.ts +0 -13
- package/types/enums/CameraModifyFlags.d.ts +0 -17
- package/types/enums/CameraType.d.ts +0 -1
- package/types/enums/DepthTextureMode.d.ts +0 -7
- package/types/enums/Downsampling.d.ts +0 -11
- package/types/enums/EntityModifyFlags.d.ts +0 -9
- package/types/enums/FogMode.d.ts +0 -13
- package/types/enums/MSAASamples.d.ts +0 -13
- package/types/enums/ReplacementFailureStrategy.d.ts +0 -9
- package/types/enums/SpriteMaskLayer.d.ts +0 -73
- package/types/env-probe/CubeProbe.d.ts +0 -27
- package/types/env-probe/Probe.d.ts +0 -52
- package/types/env-probe/index.d.ts +0 -2
- package/types/graphic/Buffer.d.ts +0 -114
- package/types/graphic/BufferUtil.d.ts +0 -12
- package/types/graphic/IndexBufferBinding.d.ts +0 -21
- package/types/graphic/Mesh.d.ts +0 -58
- package/types/graphic/Primitive.d.ts +0 -1
- package/types/graphic/SubMesh.d.ts +0 -8
- package/types/graphic/SubPrimitive.d.ts +0 -19
- package/types/graphic/VertexBufferBinding.d.ts +0 -20
- package/types/graphic/VertexElement.d.ts +0 -48
- package/types/graphic/enums/BufferBindFlag.d.ts +0 -9
- package/types/graphic/enums/BufferUsage.d.ts +0 -11
- package/types/graphic/enums/IndexFormat.d.ts +0 -11
- package/types/graphic/enums/MeshTopology.d.ts +0 -19
- package/types/graphic/enums/SetDataOptions.d.ts +0 -9
- package/types/graphic/enums/VertexElementFormat.d.ts +0 -37
- package/types/graphic/index.d.ts +0 -15
- package/types/index.d.ts +0 -67
- package/types/input/InputManager.d.ts +0 -65
- package/types/input/enums/Keys.d.ts +0 -398
- package/types/input/enums/PointerButton.d.ts +0 -33
- package/types/input/enums/PointerPhase.d.ts +0 -15
- package/types/input/index.d.ts +0 -8
- package/types/input/interface/IInput.d.ts +0 -10
- package/types/input/keyboard/KeyboardManager.d.ts +0 -1
- package/types/input/pointer/Pointer.d.ts +0 -31
- package/types/input/pointer/PointerEventData.d.ts +0 -12
- package/types/input/pointer/PointerManager.d.ts +0 -9
- package/types/input/pointer/emitter/IHitResult.d.ts +0 -1
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +0 -1
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +0 -30
- package/types/input/wheel/WheelManager.d.ts +0 -1
- package/types/lighting/AmbientLight.d.ts +0 -70
- package/types/lighting/DirectLight.d.ts +0 -32
- package/types/lighting/KHR_lights.d.ts +0 -4
- package/types/lighting/Light.d.ts +0 -45
- package/types/lighting/LightManager.d.ts +0 -12
- package/types/lighting/PointLight.d.ts +0 -26
- package/types/lighting/SpotLight.d.ts +0 -45
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +0 -79
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +0 -1
- package/types/lighting/ambientOcclusion/index.d.ts +0 -2
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +0 -11
- package/types/lighting/enums/DiffuseMode.d.ts +0 -13
- package/types/lighting/index.d.ts +0 -7
- package/types/material/BaseMaterial.d.ts +0 -88
- package/types/material/BlinnPhongMaterial.d.ts +0 -68
- package/types/material/Material.d.ts +0 -52
- package/types/material/PBRMaterial.d.ts +0 -311
- package/types/material/UnlitMaterial.d.ts +0 -33
- package/types/material/enums/BlendMode.d.ts +0 -9
- package/types/material/enums/Refraction.d.ts +0 -9
- package/types/material/enums/RenderFace.d.ts +0 -11
- package/types/material/enums/TextureCoordinate.d.ts +0 -13
- package/types/material/index.d.ts +0 -9
- package/types/material/utils/PrefilteredDFG.d.ts +0 -7
- package/types/mesh/BlendShape.d.ts +0 -39
- package/types/mesh/BlendShapeFrame.d.ts +0 -44
- package/types/mesh/BlendShapeManager.d.ts +0 -1
- package/types/mesh/BufferMesh.d.ts +0 -59
- package/types/mesh/MeshRenderer.d.ts +0 -25
- package/types/mesh/ModelMesh.d.ts +0 -254
- package/types/mesh/PrimitiveMesh.d.ts +0 -112
- package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
- package/types/mesh/Skin.d.ts +0 -35
- package/types/mesh/SkinnedMeshRenderer.d.ts +0 -50
- package/types/mesh/enums/VertexAttribute.d.ts +0 -33
- package/types/mesh/index.d.ts +0 -9
- package/types/particle/ParticleBufferUtils.d.ts +0 -1
- package/types/particle/ParticleGenerator.d.ts +0 -94
- package/types/particle/ParticleMaterial.d.ts +0 -38
- package/types/particle/ParticleRenderer.d.ts +0 -47
- package/types/particle/enums/ParticleCurveMode.d.ts +0 -9
- package/types/particle/enums/ParticleGradientMode.d.ts +0 -9
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +0 -1
- package/types/particle/enums/ParticleRenderMode.d.ts +0 -17
- package/types/particle/enums/ParticleScaleMode.d.ts +0 -11
- package/types/particle/enums/ParticleSimulationSpace.d.ts +0 -9
- package/types/particle/enums/ParticleStopMode.d.ts +0 -6
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +0 -1
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +0 -5
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +0 -1
- package/types/particle/index.d.ts +0 -22
- package/types/particle/modules/Burst.d.ts +0 -14
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +0 -20
- package/types/particle/modules/EmissionModule.d.ts +0 -48
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +0 -51
- package/types/particle/modules/MainModule.d.ts +0 -104
- package/types/particle/modules/ParticleCompositeCurve.d.ts +0 -81
- package/types/particle/modules/ParticleCompositeGradient.d.ts +0 -55
- package/types/particle/modules/ParticleCurve.d.ts +0 -63
- package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -17
- package/types/particle/modules/ParticleGradient.d.ts +0 -114
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +0 -34
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +0 -52
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -39
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +0 -54
- package/types/particle/modules/shape/BaseShape.d.ts +0 -22
- package/types/particle/modules/shape/BoxShape.d.ts +0 -17
- package/types/particle/modules/shape/CircleShape.d.ts +0 -35
- package/types/particle/modules/shape/ConeShape.d.ts +0 -45
- package/types/particle/modules/shape/HemisphereShape.d.ts +0 -14
- package/types/particle/modules/shape/MeshShape.d.ts +0 -21
- package/types/particle/modules/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/modules/shape/SphereShape.d.ts +0 -14
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +0 -17
- package/types/particle/modules/shape/index.d.ts +0 -8
- package/types/physics/CharacterController.d.ts +0 -51
- package/types/physics/Collider.d.ts +0 -43
- package/types/physics/Collision.d.ts +0 -22
- package/types/physics/ContactPoint.d.ts +0 -14
- package/types/physics/DynamicCollider.d.ts +0 -192
- package/types/physics/HitResult.d.ts +0 -18
- package/types/physics/PhysicsMaterial.d.ts +0 -42
- package/types/physics/PhysicsScene.d.ts +0 -276
- package/types/physics/StaticCollider.d.ts +0 -7
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +0 -11
- package/types/physics/enums/ControllerCollisionFlag.d.ts +0 -11
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +0 -9
- package/types/physics/enums/HingeJointFlag.d.ts +0 -1
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +0 -13
- package/types/physics/enums/index.d.ts +0 -4
- package/types/physics/index.d.ts +0 -12
- package/types/physics/joint/FixedJoint.d.ts +0 -4
- package/types/physics/joint/HingeJoint.d.ts +0 -61
- package/types/physics/joint/Joint.d.ts +0 -81
- package/types/physics/joint/JointLimits.d.ts +0 -39
- package/types/physics/joint/JointMotor.d.ts +0 -32
- package/types/physics/joint/SpringJoint.d.ts +0 -38
- package/types/physics/joint/index.d.ts +0 -6
- package/types/physics/shape/BoxColliderShape.d.ts +0 -16
- package/types/physics/shape/CapsuleColliderShape.d.ts +0 -27
- package/types/physics/shape/ColliderShape.d.ts +0 -61
- package/types/physics/shape/PlaneColliderShape.d.ts +0 -9
- package/types/physics/shape/SphereColliderShape.d.ts +0 -14
- package/types/physics/shape/index.d.ts +0 -5
- package/types/postProcess/FinalPass.d.ts +0 -1
- package/types/postProcess/PostProcess.d.ts +0 -64
- package/types/postProcess/PostProcessEffect.d.ts +0 -26
- package/types/postProcess/PostProcessEffectParameter.d.ts +0 -119
- package/types/postProcess/PostProcessManager.d.ts +0 -38
- package/types/postProcess/PostProcessPass.d.ts +0 -50
- package/types/postProcess/PostProcessUberPass.d.ts +0 -25
- package/types/postProcess/effects/BloomEffect.d.ts +0 -50
- package/types/postProcess/effects/TonemappingEffect.d.ts +0 -25
- package/types/postProcess/effects/index.d.ts +0 -2
- package/types/postProcess/index.d.ts +0 -8
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -7
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +0 -20
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +0 -36
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -37
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +0 -40
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -41
- package/types/renderingHardwareInterface/index.d.ts +0 -6
- package/types/shader/Shader.d.ts +0 -119
- package/types/shader/ShaderData.d.ts +0 -350
- package/types/shader/ShaderMacro.d.ts +0 -26
- package/types/shader/ShaderMacroCollection.d.ts +0 -1
- package/types/shader/ShaderPart.d.ts +0 -46
- package/types/shader/ShaderPass.d.ts +0 -25
- package/types/shader/ShaderPool.d.ts +0 -1
- package/types/shader/ShaderProgram.d.ts +0 -1
- package/types/shader/ShaderProgramPool.d.ts +0 -1
- package/types/shader/ShaderProperty.d.ts +0 -20
- package/types/shader/ShaderTagKey.d.ts +0 -16
- package/types/shader/ShaderUniform.d.ts +0 -1
- package/types/shader/ShaderUniformBlock.d.ts +0 -1
- package/types/shader/SubShader.d.ts +0 -18
- package/types/shader/enums/BlendFactor.d.ts +0 -32
- package/types/shader/enums/BlendOperation.d.ts +0 -16
- package/types/shader/enums/ColorWriteMask.d.ts +0 -18
- package/types/shader/enums/CompareFunction.d.ts +0 -22
- package/types/shader/enums/CullMode.d.ts +0 -12
- package/types/shader/enums/RenderQueueType.d.ts +0 -11
- package/types/shader/enums/RenderStateElementKey.d.ts +0 -60
- package/types/shader/enums/ShaderDataGroup.d.ts +0 -15
- package/types/shader/enums/ShaderLanguage.d.ts +0 -9
- package/types/shader/enums/ShaderPropertyType.d.ts +0 -27
- package/types/shader/enums/StencilOperation.d.ts +0 -22
- package/types/shader/index.d.ts +0 -19
- package/types/shader/state/BlendState.d.ts +0 -16
- package/types/shader/state/DepthState.d.ts +0 -14
- package/types/shader/state/RasterState.d.ts +0 -13
- package/types/shader/state/RenderState.d.ts +0 -21
- package/types/shader/state/RenderTargetBlendState.d.ts +0 -24
- package/types/shader/state/StencilState.d.ts +0 -34
- package/types/shader/state/index.d.ts +0 -6
- package/types/shaderlib/ShaderFactory.d.ts +0 -20
- package/types/shaderlib/ShaderLib.d.ts +0 -73
- package/types/shaderlib/index.d.ts +0 -1
- package/types/shaderlib/particle/index.d.ts +0 -15
- package/types/shaderlib/pbr/index.d.ts +0 -11
- package/types/shaderlib/shadow/index.d.ts +0 -8
- package/types/shadow/CascadedShadowCasterPass.d.ts +0 -45
- package/types/shadow/ShadowSliceData.d.ts +0 -1
- package/types/shadow/ShadowUtils.d.ts +0 -1
- package/types/shadow/enum/ShadowCascadesMode.d.ts +0 -11
- package/types/shadow/enum/ShadowResolution.d.ts +0 -13
- package/types/shadow/enum/ShadowType.d.ts +0 -13
- package/types/shadow/index.d.ts +0 -3
- package/types/sky/Sky.d.ts +0 -22
- package/types/sky/SkyBoxMaterial.d.ts +0 -43
- package/types/sky/SkyProceduralMaterial.d.ts +0 -72
- package/types/sky/index.d.ts +0 -3
- package/types/texture/RenderTarget.d.ts +0 -91
- package/types/texture/Texture.d.ts +0 -87
- package/types/texture/Texture2D.d.ts +0 -71
- package/types/texture/Texture2DArray.d.ts +0 -82
- package/types/texture/TextureCube.d.ts +0 -71
- package/types/texture/TextureUtils.d.ts +0 -1
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +0 -23
- package/types/texture/enums/TextureCubeFace.d.ts +0 -17
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +0 -21
- package/types/texture/enums/TextureFilterMode.d.ts +0 -11
- package/types/texture/enums/TextureFormat.d.ts +0 -87
- package/types/texture/enums/TextureUsage.d.ts +0 -9
- package/types/texture/enums/TextureWrapMode.d.ts +0 -11
- package/types/texture/index.d.ts +0 -13
- package/types/trail/TrailMaterial.d.ts +0 -5
- package/types/trail/TrailRenderer.d.ts +0 -35
- package/types/trail/index.d.ts +0 -2
- package/types/ui/IUICanvas.d.ts +0 -1
- package/types/ui/UIUtils.d.ts +0 -12
- package/types/utils/ClearableObjectPool.d.ts +0 -16
- package/types/utils/DisorderedArray.d.ts +0 -70
- package/types/utils/ObjectPool.d.ts +0 -16
- package/types/utils/ReturnableObjectPool.d.ts +0 -16
- package/types/utils/SafeLoopArray.d.ts +0 -46
- package/types/utils/index.d.ts +0 -4
- package/types/xr/XRManager.d.ts +0 -5
package/types/Engine.d.ts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { IHardwareRenderer, IInputOptions, IPhysics, IShaderLab, IXRDevice } from "@galacean/engine-design";
|
|
2
|
-
import { Canvas } from "./Canvas";
|
|
3
|
-
import { EngineSettings } from "./EngineSettings";
|
|
4
|
-
import { Entity } from "./Entity";
|
|
5
|
-
import { SceneManager } from "./SceneManager";
|
|
6
|
-
import { ResourceManager } from "./asset/ResourceManager";
|
|
7
|
-
import { EventDispatcher, Time } from "./base";
|
|
8
|
-
import { InputManager } from "./input";
|
|
9
|
-
import { ParticleBufferUtils } from "./particle/ParticleBufferUtils";
|
|
10
|
-
import { PostProcessPass } from "./postProcess/PostProcessPass";
|
|
11
|
-
import { XRManager } from "./xr/XRManager";
|
|
12
|
-
/**
|
|
13
|
-
* Engine.
|
|
14
|
-
*/
|
|
15
|
-
export declare class Engine extends EventDispatcher {
|
|
16
|
-
/** Input manager of Engine. */
|
|
17
|
-
readonly inputManager: InputManager;
|
|
18
|
-
/** XR manager of Engine. */
|
|
19
|
-
readonly xrManager: XRManager;
|
|
20
|
-
_particleBufferUtils: ParticleBufferUtils;
|
|
21
|
-
private _settings;
|
|
22
|
-
private _resourceManager;
|
|
23
|
-
private _sceneManager;
|
|
24
|
-
private _vSyncCount;
|
|
25
|
-
private _targetFrameRate;
|
|
26
|
-
private _time;
|
|
27
|
-
private _isPaused;
|
|
28
|
-
private _requestId;
|
|
29
|
-
private _timeoutId;
|
|
30
|
-
private _vSyncCounter;
|
|
31
|
-
private _targetFrameInterval;
|
|
32
|
-
private _destroyed;
|
|
33
|
-
private _frameInProcess;
|
|
34
|
-
private _waitingDestroy;
|
|
35
|
-
private _waitingGC;
|
|
36
|
-
private _postProcessPasses;
|
|
37
|
-
private _activePostProcessPasses;
|
|
38
|
-
private _animate;
|
|
39
|
-
/**
|
|
40
|
-
* Settings of Engine.
|
|
41
|
-
*/
|
|
42
|
-
get settings(): EngineSettings;
|
|
43
|
-
/**
|
|
44
|
-
* The canvas to use for rendering.
|
|
45
|
-
*/
|
|
46
|
-
get canvas(): Canvas;
|
|
47
|
-
/**
|
|
48
|
-
* The resource manager.
|
|
49
|
-
*/
|
|
50
|
-
get resourceManager(): ResourceManager;
|
|
51
|
-
/**
|
|
52
|
-
* The scene manager.
|
|
53
|
-
*/
|
|
54
|
-
get sceneManager(): SceneManager;
|
|
55
|
-
/**
|
|
56
|
-
* The time information of the engine.
|
|
57
|
-
*/
|
|
58
|
-
get time(): Time;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the engine is paused.
|
|
61
|
-
*/
|
|
62
|
-
get isPaused(): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* The number of vertical synchronization means the number of vertical blanking for one frame.
|
|
65
|
-
* @remarks 0 means that the vertical synchronization is turned off.
|
|
66
|
-
*/
|
|
67
|
-
get vSyncCount(): number;
|
|
68
|
-
set vSyncCount(value: number);
|
|
69
|
-
/**
|
|
70
|
-
* Set the target frame rate you want to achieve.
|
|
71
|
-
* @remarks
|
|
72
|
-
* It only takes effect when vSyncCount = 0 (ie, vertical synchronization is turned off).
|
|
73
|
-
* The larger the value, the higher the target frame rate, Number.POSITIVE_INFINITY represents the infinite target frame rate.
|
|
74
|
-
*/
|
|
75
|
-
get targetFrameRate(): number;
|
|
76
|
-
set targetFrameRate(value: number);
|
|
77
|
-
/**
|
|
78
|
-
* All post process passes.
|
|
79
|
-
*/
|
|
80
|
-
get postProcessPasses(): ReadonlyArray<PostProcessPass>;
|
|
81
|
-
/**
|
|
82
|
-
* Indicates whether the engine is destroyed.
|
|
83
|
-
*/
|
|
84
|
-
get destroyed(): boolean;
|
|
85
|
-
protected constructor(canvas: Canvas, hardwareRenderer: IHardwareRenderer, configuration: EngineConfiguration);
|
|
86
|
-
/**
|
|
87
|
-
* Create an entity.
|
|
88
|
-
* @param name - The name of the entity
|
|
89
|
-
* @returns Entity
|
|
90
|
-
*/
|
|
91
|
-
createEntity(name?: string): Entity;
|
|
92
|
-
/**
|
|
93
|
-
* Pause the engine.
|
|
94
|
-
*/
|
|
95
|
-
pause(): void;
|
|
96
|
-
/**
|
|
97
|
-
* Resume the engine.
|
|
98
|
-
*/
|
|
99
|
-
resume(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Update the engine loop manually. If you call engine.run(), you generally don't need to call this function.
|
|
102
|
-
*/
|
|
103
|
-
update(): void;
|
|
104
|
-
/**
|
|
105
|
-
* Execution engine loop.
|
|
106
|
-
*/
|
|
107
|
-
run(): void;
|
|
108
|
-
/**
|
|
109
|
-
* Force lose graphic device.
|
|
110
|
-
* @remarks Used to simulate the phenomenon after the real loss of device.
|
|
111
|
-
*/
|
|
112
|
-
forceLoseDevice(): void;
|
|
113
|
-
/**
|
|
114
|
-
* Force restore graphic device.
|
|
115
|
-
* @remarks Used to simulate the phenomenon after the real restore of device.
|
|
116
|
-
*/
|
|
117
|
-
forceRestoreDevice(): void;
|
|
118
|
-
/**
|
|
119
|
-
* Add a post process pass.
|
|
120
|
-
* @param pass - Post process pass to add
|
|
121
|
-
*/
|
|
122
|
-
addPostProcessPass(pass: PostProcessPass): void;
|
|
123
|
-
private _destroy;
|
|
124
|
-
/**
|
|
125
|
-
* Destroy engine.
|
|
126
|
-
* @remarks If call during frame execution will delay until the end of the frame
|
|
127
|
-
*/
|
|
128
|
-
destroy(): void;
|
|
129
|
-
private _onDeviceLost;
|
|
130
|
-
private _onDeviceRestored;
|
|
131
|
-
private _gc;
|
|
132
|
-
/**
|
|
133
|
-
* @deprecated
|
|
134
|
-
* The first scene physics manager.
|
|
135
|
-
*/
|
|
136
|
-
get physicsManager(): import("./physics").PhysicsScene;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Engine configuration.
|
|
140
|
-
*/
|
|
141
|
-
export interface EngineConfiguration {
|
|
142
|
-
/** Physics. */
|
|
143
|
-
physics?: IPhysics;
|
|
144
|
-
/** XR Device. */
|
|
145
|
-
xrDevice?: IXRDevice;
|
|
146
|
-
/** Shader lab. */
|
|
147
|
-
shaderLab?: IShaderLab;
|
|
148
|
-
/** Input options. */
|
|
149
|
-
input?: IInputOptions;
|
|
150
|
-
}
|
package/types/Entity.d.ts
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { Matrix } from "@galacean/engine-math";
|
|
2
|
-
import { BoolUpdateFlag } from "./BoolUpdateFlag";
|
|
3
|
-
import { Component } from "./Component";
|
|
4
|
-
import { Engine } from "./Engine";
|
|
5
|
-
import { Layer } from "./Layer";
|
|
6
|
-
import { Scene } from "./Scene";
|
|
7
|
-
import { Transform } from "./Transform";
|
|
8
|
-
import { EngineObject } from "./base";
|
|
9
|
-
/**
|
|
10
|
-
* Entity, be used as components container.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Entity extends EngineObject {
|
|
13
|
-
/** The name of entity. */
|
|
14
|
-
name: string;
|
|
15
|
-
/** The layer the entity belongs to. */
|
|
16
|
-
layer: Layer;
|
|
17
|
-
private _transform;
|
|
18
|
-
private _templateResource;
|
|
19
|
-
private _parent;
|
|
20
|
-
private _activeChangedComponents;
|
|
21
|
-
private _modifyFlagManager;
|
|
22
|
-
/**
|
|
23
|
-
* The transform of this entity.
|
|
24
|
-
*/
|
|
25
|
-
get transform(): Transform;
|
|
26
|
-
/**
|
|
27
|
-
* Whether to activate locally.
|
|
28
|
-
*/
|
|
29
|
-
get isActive(): boolean;
|
|
30
|
-
set isActive(value: boolean);
|
|
31
|
-
/**
|
|
32
|
-
* Whether it is active in the hierarchy.
|
|
33
|
-
*/
|
|
34
|
-
get isActiveInHierarchy(): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The parent entity.
|
|
37
|
-
*/
|
|
38
|
-
get parent(): Entity;
|
|
39
|
-
set parent(value: Entity);
|
|
40
|
-
/**
|
|
41
|
-
* The children entities
|
|
42
|
-
*/
|
|
43
|
-
get children(): Readonly<Entity[]>;
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Please use `children.length` property instead.
|
|
46
|
-
* Number of the children entities
|
|
47
|
-
*/
|
|
48
|
-
get childCount(): number;
|
|
49
|
-
/**
|
|
50
|
-
* The scene the entity belongs to.
|
|
51
|
-
*/
|
|
52
|
-
get scene(): Scene;
|
|
53
|
-
/**
|
|
54
|
-
* The sibling index.
|
|
55
|
-
*/
|
|
56
|
-
get siblingIndex(): number;
|
|
57
|
-
set siblingIndex(value: number);
|
|
58
|
-
/**
|
|
59
|
-
* Create a entity.
|
|
60
|
-
* @param engine - The engine the entity belongs to
|
|
61
|
-
* @param name - The name of the entity
|
|
62
|
-
* @param components - The types of components you wish to add
|
|
63
|
-
*/
|
|
64
|
-
constructor(engine: Engine, name?: string, ...components: ComponentConstructor[]);
|
|
65
|
-
/**
|
|
66
|
-
* Add component based on the component type.
|
|
67
|
-
* @param type - The type of the component
|
|
68
|
-
* @param args - The arguments of the component
|
|
69
|
-
* @returns The component which has been added
|
|
70
|
-
*/
|
|
71
|
-
addComponent<T extends new (entity: Entity, ...args: any[]) => Component>(type: T, ...args: ComponentArguments<T>): InstanceType<T>;
|
|
72
|
-
/**
|
|
73
|
-
* Get component which match the type.
|
|
74
|
-
* @param type - The type of the component
|
|
75
|
-
* @returns The first component which match type
|
|
76
|
-
*/
|
|
77
|
-
getComponent<T extends Component>(type: new (entity: Entity) => T): T | null;
|
|
78
|
-
/**
|
|
79
|
-
* Get components which match the type.
|
|
80
|
-
* @param type - The type of the component
|
|
81
|
-
* @param results - The components which match type
|
|
82
|
-
* @returns The components which match type
|
|
83
|
-
*/
|
|
84
|
-
getComponents<T extends Component>(type: new (entity: Entity) => T, results: T[]): T[];
|
|
85
|
-
/**
|
|
86
|
-
* Get the components which match the type of the entity and it's children.
|
|
87
|
-
* @param type - The component type
|
|
88
|
-
* @param results - The components collection
|
|
89
|
-
* @returns The components collection which match the type
|
|
90
|
-
*/
|
|
91
|
-
getComponentsIncludeChildren<T extends Component>(type: new (entity: Entity) => T, results: T[]): T[];
|
|
92
|
-
/**
|
|
93
|
-
* Add child entity.
|
|
94
|
-
* @param child - The child entity which want to be added
|
|
95
|
-
*/
|
|
96
|
-
addChild(child: Entity): void;
|
|
97
|
-
/**
|
|
98
|
-
* Add child entity at specified index.
|
|
99
|
-
* @param index - specified index
|
|
100
|
-
* @param child - The child entity which want to be added
|
|
101
|
-
*/
|
|
102
|
-
addChild(index: number, child: Entity): void;
|
|
103
|
-
/**
|
|
104
|
-
* Remove child entity.
|
|
105
|
-
* @param child - The child entity which want to be removed
|
|
106
|
-
*/
|
|
107
|
-
removeChild(child: Entity): void;
|
|
108
|
-
/**
|
|
109
|
-
* @deprecated Please use `children` property instead.
|
|
110
|
-
* Find child entity by index.
|
|
111
|
-
* @param index - The index of the child entity
|
|
112
|
-
* @returns The component which be found
|
|
113
|
-
*/
|
|
114
|
-
getChild(index: number): Entity;
|
|
115
|
-
/**
|
|
116
|
-
* Find entity by name.
|
|
117
|
-
* @param name - The name of the entity which want to be found
|
|
118
|
-
* @returns The component which be found
|
|
119
|
-
*/
|
|
120
|
-
findByName(name: string): Entity;
|
|
121
|
-
/**
|
|
122
|
-
* Find the entity by path.
|
|
123
|
-
* @param path - The path of the entity eg: /entity
|
|
124
|
-
* @returns The component which be found
|
|
125
|
-
*/
|
|
126
|
-
findByPath(path: string): Entity;
|
|
127
|
-
/**
|
|
128
|
-
* Create child entity.
|
|
129
|
-
* @param name - The child entity's name
|
|
130
|
-
* @returns The child entity
|
|
131
|
-
*/
|
|
132
|
-
createChild(name?: string): Entity;
|
|
133
|
-
/**
|
|
134
|
-
* Clear children entities.
|
|
135
|
-
*/
|
|
136
|
-
clearChildren(): void;
|
|
137
|
-
/**
|
|
138
|
-
* Clone this entity include children and components.
|
|
139
|
-
* @returns Cloned entity
|
|
140
|
-
*/
|
|
141
|
-
clone(): Entity;
|
|
142
|
-
/**
|
|
143
|
-
* Listen for changes in the world pose of this `Entity`.
|
|
144
|
-
* @returns Change flag
|
|
145
|
-
*/
|
|
146
|
-
registerWorldChangeFlag(): BoolUpdateFlag;
|
|
147
|
-
private _createCloneEntity;
|
|
148
|
-
private _parseCloneEntity;
|
|
149
|
-
/**
|
|
150
|
-
* Destroy self.
|
|
151
|
-
*/
|
|
152
|
-
destroy(): void;
|
|
153
|
-
private _dispatchModify;
|
|
154
|
-
private _addToChildrenList;
|
|
155
|
-
private _setParent;
|
|
156
|
-
private _getComponentsInChildren;
|
|
157
|
-
private _setActiveComponents;
|
|
158
|
-
private _setActiveInHierarchy;
|
|
159
|
-
private _setInActiveInHierarchy;
|
|
160
|
-
private _setSiblingIndex;
|
|
161
|
-
private _setTransform;
|
|
162
|
-
private _invModelMatrix;
|
|
163
|
-
private _inverseWorldMatFlag;
|
|
164
|
-
/**
|
|
165
|
-
* @deprecated
|
|
166
|
-
*/
|
|
167
|
-
getInvModelMatrix(): Matrix;
|
|
168
|
-
}
|
|
169
|
-
type ComponentArguments<T extends new (entity: Entity, ...args: any[]) => Component> = T extends new (entity: Entity, ...args: infer P) => Component ? P : never;
|
|
170
|
-
type ComponentConstructor = new (entity: Entity) => Component;
|
|
171
|
-
export {};
|
package/types/Layer.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Layer, used for bit operations.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Layer {
|
|
5
|
-
/** Layer 0. */
|
|
6
|
-
Layer0 = 1,
|
|
7
|
-
/** Layer 1. */
|
|
8
|
-
Layer1 = 2,
|
|
9
|
-
/** Layer 2. */
|
|
10
|
-
Layer2 = 4,
|
|
11
|
-
/** Layer 3. */
|
|
12
|
-
Layer3 = 8,
|
|
13
|
-
/** Layer 4. */
|
|
14
|
-
Layer4 = 16,
|
|
15
|
-
/** Layer 5. */
|
|
16
|
-
Layer5 = 32,
|
|
17
|
-
/** Layer 6. */
|
|
18
|
-
Layer6 = 64,
|
|
19
|
-
/** Layer 7. */
|
|
20
|
-
Layer7 = 128,
|
|
21
|
-
/** Layer 8. */
|
|
22
|
-
Layer8 = 256,
|
|
23
|
-
/** Layer 9. */
|
|
24
|
-
Layer9 = 512,
|
|
25
|
-
/** Layer 10. */
|
|
26
|
-
Layer10 = 1024,
|
|
27
|
-
/** Layer 11. */
|
|
28
|
-
Layer11 = 2048,
|
|
29
|
-
/** Layer 12. */
|
|
30
|
-
Layer12 = 4096,
|
|
31
|
-
/** Layer 13. */
|
|
32
|
-
Layer13 = 8192,
|
|
33
|
-
/** Layer 14. */
|
|
34
|
-
Layer14 = 16384,
|
|
35
|
-
/** Layer 15. */
|
|
36
|
-
Layer15 = 32768,
|
|
37
|
-
/** Layer 16. */
|
|
38
|
-
Layer16 = 65536,
|
|
39
|
-
/** Layer 17. */
|
|
40
|
-
Layer17 = 131072,
|
|
41
|
-
/** Layer 18. */
|
|
42
|
-
Layer18 = 262144,
|
|
43
|
-
/** Layer 19. */
|
|
44
|
-
Layer19 = 524288,
|
|
45
|
-
/** Layer 20. */
|
|
46
|
-
Layer20 = 1048576,
|
|
47
|
-
/** Layer 21. */
|
|
48
|
-
Layer21 = 2097152,
|
|
49
|
-
/** Layer 22. */
|
|
50
|
-
Layer22 = 4194304,
|
|
51
|
-
/** Layer 23. */
|
|
52
|
-
Layer23 = 8388608,
|
|
53
|
-
/** Layer 24. */
|
|
54
|
-
Layer24 = 16777216,
|
|
55
|
-
/** Layer 25. */
|
|
56
|
-
Layer25 = 33554432,
|
|
57
|
-
/** Layer 26. */
|
|
58
|
-
Layer26 = 67108864,
|
|
59
|
-
/** Layer 27. */
|
|
60
|
-
Layer27 = 134217728,
|
|
61
|
-
/** Layer 28. */
|
|
62
|
-
Layer28 = 268435456,
|
|
63
|
-
/** Layer 29. */
|
|
64
|
-
Layer29 = 536870912,
|
|
65
|
-
/** Layer 30. */
|
|
66
|
-
Layer30 = 1073741824,
|
|
67
|
-
/** Layer 31. */
|
|
68
|
-
Layer31 = 2147483648,
|
|
69
|
-
/** All layers. */
|
|
70
|
-
Everything = 4294967295,
|
|
71
|
-
/** None layer. */
|
|
72
|
-
Nothing = 0
|
|
73
|
-
}
|
package/types/Platform.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The platform (including operating system and hardware) is running on.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Platform {
|
|
5
|
-
/** Android platform. */
|
|
6
|
-
Android = 0,
|
|
7
|
-
/** IPhone platform. */
|
|
8
|
-
IPhone = 1,
|
|
9
|
-
/** IPad platform. */
|
|
10
|
-
IPad = 2,
|
|
11
|
-
/** Mac platform. */
|
|
12
|
-
Mac = 3,
|
|
13
|
-
/** Unknown platform. */
|
|
14
|
-
Unknown = 4
|
|
15
|
-
}
|
package/types/Polyfill.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Camera } from "../Camera";
|
|
2
|
-
import { CameraClearFlags } from "../enums/CameraClearFlags";
|
|
3
|
-
import { TextureCubeFace } from "../texture";
|
|
4
|
-
import { RenderContext } from "./RenderContext";
|
|
5
|
-
import { RenderElement } from "./RenderElement";
|
|
6
|
-
/**
|
|
7
|
-
* Basic render pipeline.
|
|
8
|
-
*/
|
|
9
|
-
export declare class BasicRenderPipeline {
|
|
10
|
-
private _camera;
|
|
11
|
-
private _lastCanvasSize;
|
|
12
|
-
private _internalColorTarget;
|
|
13
|
-
private _cascadedShadowCasterPass;
|
|
14
|
-
private _depthOnlyPass;
|
|
15
|
-
private _saoPass;
|
|
16
|
-
private _opaqueTexturePass;
|
|
17
|
-
private _finalPass;
|
|
18
|
-
private _copyBackgroundTexture;
|
|
19
|
-
private _canUseBlitFrameBuffer;
|
|
20
|
-
private _shouldCopyBackgroundColor;
|
|
21
|
-
/**
|
|
22
|
-
* Create a basic render pipeline.
|
|
23
|
-
* @param camera - Camera
|
|
24
|
-
*/
|
|
25
|
-
constructor(camera: Camera);
|
|
26
|
-
/**
|
|
27
|
-
* Destroy internal resources.
|
|
28
|
-
*/
|
|
29
|
-
destroy(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Perform scene rendering.
|
|
32
|
-
* @param context - Render context
|
|
33
|
-
* @param cubeFace - Render surface of cube texture
|
|
34
|
-
* @param mipLevel - Set mip level the data want to write
|
|
35
|
-
* @param ignoreClear - Ignore clear flag
|
|
36
|
-
*/
|
|
37
|
-
render(context: RenderContext, cubeFace?: TextureCubeFace, mipLevel?: number, ignoreClear?: CameraClearFlags): void;
|
|
38
|
-
private _drawRenderPass;
|
|
39
|
-
/**
|
|
40
|
-
* Push render data to render queue.
|
|
41
|
-
* @param context - Render context
|
|
42
|
-
* @param renderElement - Render element
|
|
43
|
-
*/
|
|
44
|
-
pushRenderElement(context: RenderContext, renderElement: RenderElement): void;
|
|
45
|
-
private pushRenderElementByType;
|
|
46
|
-
private _drawBackgroundTexture;
|
|
47
|
-
private _prepareRender;
|
|
48
|
-
}
|
|
49
|
-
export declare enum RenderQueueFlags {
|
|
50
|
-
None = 0,
|
|
51
|
-
Opaque = 1,
|
|
52
|
-
AlphaTest = 2,
|
|
53
|
-
Transparent = 4,
|
|
54
|
-
All = 7
|
|
55
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Vector4 } from "@galacean/engine-math";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { Material } from "../material";
|
|
4
|
-
import { RenderTarget, Texture2D } from "../texture";
|
|
5
|
-
/**
|
|
6
|
-
* A helper class to blit texture to destination render target.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Blitter {
|
|
9
|
-
private static _blitTextureProperty;
|
|
10
|
-
private static _blitMipLevelProperty;
|
|
11
|
-
private static _blitTexelSizeProperty;
|
|
12
|
-
private static _sourceScaleOffsetProperty;
|
|
13
|
-
private static _rendererShaderData;
|
|
14
|
-
private static _texelSize;
|
|
15
|
-
private static _defaultScaleOffset;
|
|
16
|
-
/**
|
|
17
|
-
* Blit texture to destination render target using a triangle.
|
|
18
|
-
* @param engine - Engine
|
|
19
|
-
* @param source - Source texture
|
|
20
|
-
* @param destination - Destination render target
|
|
21
|
-
* @param mipLevel - Mip level to blit
|
|
22
|
-
* @param viewport - Viewport
|
|
23
|
-
* @param material - The material to use when blit
|
|
24
|
-
* @param passIndex - Pass index to use of the provided material
|
|
25
|
-
* @param sourceScaleOffset - Source scale and offset
|
|
26
|
-
*/
|
|
27
|
-
static blitTexture(engine: Engine, source: Texture2D, destination: RenderTarget | null, mipLevel?: number, viewport?: Vector4, material?: Material, passIndex?: number, sourceScaleOffset?: Vector4): void;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Engine } from "../Engine";
|
|
2
|
-
import { CullingResults } from "../RenderPipeline/CullingResults";
|
|
3
|
-
import { RenderContext } from "../RenderPipeline/RenderContext";
|
|
4
|
-
/**
|
|
5
|
-
* PipelinePass is a base class for all pipeline passes.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class PipelinePass {
|
|
8
|
-
readonly engine: Engine;
|
|
9
|
-
constructor(engine: Engine);
|
|
10
|
-
/**
|
|
11
|
-
* Called before rendering a camera, override this method to configure the camera If you need to configure the camera clear flag or render target.
|
|
12
|
-
* @param context - Rendering context
|
|
13
|
-
* @param cullingResults - Culling results
|
|
14
|
-
*/
|
|
15
|
-
abstract onRender(context: RenderContext, cullingResults: CullingResults): void;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IPoolElement } from "../utils/ObjectPool";
|
|
2
|
-
import { RenderQueueFlags } from "./BasicRenderPipeline";
|
|
3
|
-
import { SubRenderElement } from "./SubRenderElement";
|
|
4
|
-
export declare class RenderElement implements IPoolElement {
|
|
5
|
-
priority: number;
|
|
6
|
-
distanceForSort: number;
|
|
7
|
-
subRenderElements: SubRenderElement[];
|
|
8
|
-
renderQueueFlags: RenderQueueFlags;
|
|
9
|
-
set(priority: number, distanceForSort: number): void;
|
|
10
|
-
addSubRenderElement(element: SubRenderElement): void;
|
|
11
|
-
dispose(): void;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Renderer } from "../Renderer";
|
|
2
|
-
import { Primitive, SubMesh } from "../graphic";
|
|
3
|
-
import { Material } from "../material";
|
|
4
|
-
import { ShaderData, ShaderPass } from "../shader";
|
|
5
|
-
import { Texture2D } from "../texture";
|
|
6
|
-
import { IPoolElement } from "../utils/ObjectPool";
|
|
7
|
-
import { RenderQueueFlags } from "./BasicRenderPipeline";
|
|
8
|
-
import { SubPrimitiveChunk } from "./SubPrimitiveChunk";
|
|
9
|
-
export declare class SubRenderElement implements IPoolElement {
|
|
10
|
-
component: Renderer;
|
|
11
|
-
primitive: Primitive;
|
|
12
|
-
material: Material;
|
|
13
|
-
subPrimitive: SubMesh;
|
|
14
|
-
shaderPasses: ReadonlyArray<ShaderPass>;
|
|
15
|
-
shaderData?: ShaderData;
|
|
16
|
-
batched: boolean;
|
|
17
|
-
renderQueueFlags: RenderQueueFlags;
|
|
18
|
-
texture?: Texture2D;
|
|
19
|
-
subChunk?: SubPrimitiveChunk;
|
|
20
|
-
set(component: Renderer, material: Material, primitive: Primitive, subPrimitive: SubMesh, texture?: Texture2D, subChunk?: SubPrimitiveChunk): void;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|