@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
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { EngineObject } from "../base";
|
|
2
|
-
import { Camera } from "../Camera";
|
|
3
|
-
import { RenderTarget, Texture2D } from "../texture";
|
|
4
|
-
import { PostProcessManager } from "./PostProcessManager";
|
|
5
|
-
/**
|
|
6
|
-
* Controls when the post process pass executes.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum PostProcessPassEvent {
|
|
9
|
-
/** Before the uber pass. */
|
|
10
|
-
BeforeUber = 0,
|
|
11
|
-
/** After the uber pass. */
|
|
12
|
-
AfterUber = 100
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Post process pass.
|
|
16
|
-
*/
|
|
17
|
-
export declare abstract class PostProcessPass extends EngineObject {
|
|
18
|
-
private _event;
|
|
19
|
-
private _isActive;
|
|
20
|
-
/**
|
|
21
|
-
* When the post process pass is rendered.
|
|
22
|
-
* @remarks
|
|
23
|
-
* Users can also inject pass events in a specific point by doing PostProcessPassEvent + offset.
|
|
24
|
-
*/
|
|
25
|
-
get event(): PostProcessPassEvent;
|
|
26
|
-
set event(value: PostProcessPassEvent);
|
|
27
|
-
/**
|
|
28
|
-
* Whether the post process pass is active.
|
|
29
|
-
*/
|
|
30
|
-
get isActive(): boolean;
|
|
31
|
-
set isActive(value: boolean);
|
|
32
|
-
/**
|
|
33
|
-
* Whether the post process pass is valid in current post process manager.
|
|
34
|
-
* @remarks
|
|
35
|
-
* This method can be overridden to control the pass's real validity.
|
|
36
|
-
* @param postProcessManager - The post process manager
|
|
37
|
-
*/
|
|
38
|
-
isValid(postProcessManager: PostProcessManager): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Execute the post process pass if it is active.
|
|
41
|
-
* @param camera - The camera used to render
|
|
42
|
-
* @param srcTexture - The source texture from last render target
|
|
43
|
-
* @param destTarget - The destination render target
|
|
44
|
-
*/
|
|
45
|
-
abstract onRender(camera: Camera, srcTexture: Texture2D, destTarget: RenderTarget): void;
|
|
46
|
-
/**
|
|
47
|
-
* @inheritdoc
|
|
48
|
-
*/
|
|
49
|
-
_onDestroy(): void;
|
|
50
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Camera } from "../Camera";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { RenderTarget, Texture2D } from "../texture";
|
|
4
|
-
import { PostProcessManager } from "./PostProcessManager";
|
|
5
|
-
import { PostProcessPass } from "./PostProcessPass";
|
|
6
|
-
export declare class PostProcessUberPass extends PostProcessPass {
|
|
7
|
-
static readonly UBER_SHADER_NAME = "UberPost";
|
|
8
|
-
private _uberMaterial;
|
|
9
|
-
private _bloomMaterial;
|
|
10
|
-
private _mipDownRT;
|
|
11
|
-
private _mipUpRT;
|
|
12
|
-
constructor(engine: Engine);
|
|
13
|
-
/** @inheritdoc */
|
|
14
|
-
isValid(postProcessManager: PostProcessManager): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @inheritdoc
|
|
17
|
-
*/
|
|
18
|
-
onRender(camera: Camera, srcTexture: Texture2D, destTarget: RenderTarget): void;
|
|
19
|
-
/**
|
|
20
|
-
* @inheritdoc
|
|
21
|
-
*/
|
|
22
|
-
_onDestroy(): void;
|
|
23
|
-
private _setupBloom;
|
|
24
|
-
private _releaseBloomRenderTargets;
|
|
25
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { PostProcessEffect } from "../PostProcessEffect";
|
|
2
|
-
import { PostProcessEffectBoolParameter, PostProcessEffectColorParameter, PostProcessEffectEnumParameter, PostProcessEffectFloatParameter, PostProcessEffectTextureParameter } from "../PostProcessEffectParameter";
|
|
3
|
-
/**
|
|
4
|
-
* This controls the size of the bloom texture.
|
|
5
|
-
*/
|
|
6
|
-
export declare enum BloomDownScaleMode {
|
|
7
|
-
/** Use this to select half size as the starting resolution. */
|
|
8
|
-
Half = 0,
|
|
9
|
-
/** Use this to select quarter size as the starting resolution. */
|
|
10
|
-
Quarter = 1
|
|
11
|
-
}
|
|
12
|
-
export declare class BloomEffect extends PostProcessEffect {
|
|
13
|
-
static readonly SHADER_NAME = "PostProcessEffect Bloom";
|
|
14
|
-
/**
|
|
15
|
-
* Controls whether to use bicubic sampling instead of bilinear sampling for the upSampling passes.
|
|
16
|
-
* @remarks This is slightly more expensive but helps getting smoother visuals.
|
|
17
|
-
*/
|
|
18
|
-
highQualityFiltering: PostProcessEffectBoolParameter;
|
|
19
|
-
/**
|
|
20
|
-
* Controls the starting resolution that this effect begins processing.
|
|
21
|
-
*/
|
|
22
|
-
downScale: PostProcessEffectEnumParameter<BloomDownScaleMode>;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies a Texture to add smudges or dust to the bloom effect.
|
|
25
|
-
*/
|
|
26
|
-
dirtTexture: PostProcessEffectTextureParameter;
|
|
27
|
-
/**
|
|
28
|
-
* Set the level of brightness to filter out pixels under this level.
|
|
29
|
-
* @remarks This value is expressed in linear.
|
|
30
|
-
*/
|
|
31
|
-
threshold: PostProcessEffectFloatParameter;
|
|
32
|
-
/**
|
|
33
|
-
* Controls the radius of the bloom effect.
|
|
34
|
-
*/
|
|
35
|
-
scatter: PostProcessEffectFloatParameter;
|
|
36
|
-
/**
|
|
37
|
-
* Controls the strength of the bloom effect.
|
|
38
|
-
*/
|
|
39
|
-
intensity: PostProcessEffectFloatParameter;
|
|
40
|
-
/**
|
|
41
|
-
* Controls the strength of the lens dirt.
|
|
42
|
-
*/
|
|
43
|
-
dirtIntensity: PostProcessEffectFloatParameter;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the tint of the bloom effect.
|
|
46
|
-
*/
|
|
47
|
-
tint: PostProcessEffectColorParameter;
|
|
48
|
-
/** @inheritdoc */
|
|
49
|
-
isValid(): boolean;
|
|
50
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { PostProcessEffect } from "../PostProcessEffect";
|
|
2
|
-
import { PostProcessEffectEnumParameter } from "../PostProcessEffectParameter";
|
|
3
|
-
/**
|
|
4
|
-
* Options to select a tonemapping algorithm to use.
|
|
5
|
-
*/
|
|
6
|
-
export declare enum TonemappingMode {
|
|
7
|
-
/**
|
|
8
|
-
* Neutral tonemapper.
|
|
9
|
-
* @remarks Use this option if you only want range-remapping with minimal impact on color hue and saturation.
|
|
10
|
-
*/
|
|
11
|
-
Neutral = 0,
|
|
12
|
-
/**
|
|
13
|
-
* ACES Filmic reference tonemapper (custom approximation).
|
|
14
|
-
* @remarks
|
|
15
|
-
* Use this option to apply a close approximation of the reference ACES tonemapper for a more filmic look.
|
|
16
|
-
* It is more contrasted than Neutral and has an effect on actual color hue and saturation.
|
|
17
|
-
*/
|
|
18
|
-
ACES = 1
|
|
19
|
-
}
|
|
20
|
-
export declare class TonemappingEffect extends PostProcessEffect {
|
|
21
|
-
/**
|
|
22
|
-
* Use this to select a tonemapping algorithm to use.
|
|
23
|
-
*/
|
|
24
|
-
mode: PostProcessEffectEnumParameter<TonemappingMode>;
|
|
25
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./effects";
|
|
2
|
-
export { PostProcess } from "./PostProcess";
|
|
3
|
-
export { PostProcessEffect } from "./PostProcessEffect";
|
|
4
|
-
export { PostProcessEffectBoolParameter, PostProcessEffectColorParameter, PostProcessEffectEnumParameter, PostProcessEffectFloatParameter, PostProcessEffectParameter, PostProcessEffectTextureParameter, PostProcessEffectVector2Parameter, PostProcessEffectVector3Parameter, PostProcessEffectVector4Parameter } from "./PostProcessEffectParameter";
|
|
5
|
-
export { PostProcessManager } from "./PostProcessManager";
|
|
6
|
-
export { PostProcessPass, PostProcessPassEvent } from "./PostProcessPass";
|
|
7
|
-
export { PostProcessUberPass } from "./PostProcessUberPass";
|
|
8
|
-
export { FinalPass } from "./FinalPass";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SetDataOptions } from "../graphic";
|
|
2
|
-
export interface IPlatformBuffer {
|
|
3
|
-
bind(): void;
|
|
4
|
-
setData(byteLength: number, data: ArrayBuffer | ArrayBufferView, bufferByteOffset?: number, dataOffset?: number, dataLength?: number, options?: SetDataOptions): void;
|
|
5
|
-
getData(data: ArrayBufferView, bufferByteOffset?: number, dataOffset?: number, dataLength?: number): void;
|
|
6
|
-
destroy(): void;
|
|
7
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TextureCubeFace } from "../texture";
|
|
2
|
-
/**
|
|
3
|
-
* Off-screen rendering target specification.
|
|
4
|
-
*/
|
|
5
|
-
export interface IPlatformRenderTarget {
|
|
6
|
-
/**
|
|
7
|
-
* Set which face and mipLevel of the cube texture to render to.
|
|
8
|
-
* @param mipLevel - Set mip level the data want to write
|
|
9
|
-
* @param faceIndex - Cube texture face
|
|
10
|
-
*/
|
|
11
|
-
activeRenderTarget(mipLevel: number, faceIndex?: TextureCubeFace): void;
|
|
12
|
-
/**
|
|
13
|
-
* Blit FBO.
|
|
14
|
-
*/
|
|
15
|
-
blitRenderTarget(): void;
|
|
16
|
-
/**
|
|
17
|
-
* Destroy render target.
|
|
18
|
-
*/
|
|
19
|
-
destroy(): void;
|
|
20
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TextureFilterMode, TextureWrapMode } from "../texture";
|
|
2
|
-
import { TextureDepthCompareFunction } from "../texture/enums/TextureDepthCompareFunction";
|
|
3
|
-
/**
|
|
4
|
-
* Texture interface specification.
|
|
5
|
-
*/
|
|
6
|
-
export interface IPlatformTexture {
|
|
7
|
-
/**
|
|
8
|
-
* Wrapping mode for texture coordinate S.
|
|
9
|
-
*/
|
|
10
|
-
wrapModeU: TextureWrapMode;
|
|
11
|
-
/**
|
|
12
|
-
* Wrapping mode for texture coordinate T.
|
|
13
|
-
*/
|
|
14
|
-
wrapModeV: TextureWrapMode;
|
|
15
|
-
/**
|
|
16
|
-
* Filter mode for texture.
|
|
17
|
-
*/
|
|
18
|
-
filterMode: TextureFilterMode;
|
|
19
|
-
/**
|
|
20
|
-
* Anisotropic level for texture.
|
|
21
|
-
*/
|
|
22
|
-
anisoLevel: number;
|
|
23
|
-
/**
|
|
24
|
-
* Filter mode when texture as depth Texture.
|
|
25
|
-
*/
|
|
26
|
-
depthCompareFunction: TextureDepthCompareFunction;
|
|
27
|
-
/**
|
|
28
|
-
* Destroy texture.
|
|
29
|
-
*/
|
|
30
|
-
destroy(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Generate multi-level textures based on the 0th level data.
|
|
33
|
-
*/
|
|
34
|
-
generateMipmaps(): void;
|
|
35
|
-
setUseDepthCompareMode(value: boolean): any;
|
|
36
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IPlatformTexture } from "./IPlatformTexture";
|
|
2
|
-
/**
|
|
3
|
-
* 2D texture interface specification.
|
|
4
|
-
*/
|
|
5
|
-
export interface IPlatformTexture2D extends IPlatformTexture {
|
|
6
|
-
/**
|
|
7
|
-
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
8
|
-
* @remarks If it is the WebGL1.0 platform and the texture format is compressed, the first upload must be filled with textures.
|
|
9
|
-
* @param colorBuffer - Color buffer data
|
|
10
|
-
* @param mipLevel - Texture mipmapping level
|
|
11
|
-
* @param x - X coordinate of area start
|
|
12
|
-
* @param y - Y coordinate of area start
|
|
13
|
-
* @param width - Data width. if it's empty, width is the width corresponding to mipLevel minus x , width corresponding to mipLevel is Math.max(1, this.width >> mipLevel)
|
|
14
|
-
* @param height - Data height. if it's empty, height is the height corresponding to mipLevel minus y , height corresponding to mipLevel is Math.max(1, this.height >> mipLevel)
|
|
15
|
-
*/
|
|
16
|
-
setPixelBuffer(colorBuffer: ArrayBufferView, mipLevel: number, x: number, y: number, width?: number, height?: number): void;
|
|
17
|
-
/**
|
|
18
|
-
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
19
|
-
* @param imageSource - The source of texture
|
|
20
|
-
* @param mipLevel - Texture mipmapping level
|
|
21
|
-
* @param flipY - Whether to flip the Y axis
|
|
22
|
-
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
23
|
-
* @param x - X coordinate of area start
|
|
24
|
-
* @param y - Y coordinate of area start
|
|
25
|
-
*/
|
|
26
|
-
setImageSource(imageSource: TexImageSource, mipLevel: number, flipY: boolean, premultiplyAlpha: boolean, x: number, y: number): void;
|
|
27
|
-
/**
|
|
28
|
-
* Get the pixel color buffer according to the specified area.
|
|
29
|
-
* @param x - X coordinate of area start
|
|
30
|
-
* @param y - Y coordinate of area start
|
|
31
|
-
* @param width - Area width
|
|
32
|
-
* @param height - Area height
|
|
33
|
-
* @param mipLevel - Set mip level the data want to get from
|
|
34
|
-
* @param out - Color buffer
|
|
35
|
-
*/
|
|
36
|
-
getPixelBuffer(x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
37
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IPlatformTexture } from "./IPlatformTexture";
|
|
2
|
-
/**
|
|
3
|
-
* 2D texture array interface specification.
|
|
4
|
-
*/
|
|
5
|
-
export interface IPlatformTexture2DArray extends IPlatformTexture {
|
|
6
|
-
/**
|
|
7
|
-
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
8
|
-
* @param offsetIndex - The texture array element offset index
|
|
9
|
-
* @param colorBuffer - Color buffer data
|
|
10
|
-
* @param mipLevel - Texture mipmapping level
|
|
11
|
-
* @param x - X coordinate of area start
|
|
12
|
-
* @param y - Y coordinate of area start
|
|
13
|
-
* @param width - Data width. if it's empty, width is the width corresponding to mipLevel minus x , width corresponding to mipLevel is Math.max(1, this.width >> mipLevel)
|
|
14
|
-
* @param height - Data height. if it's empty, height is the height corresponding to mipLevel minus y , height corresponding to mipLevel is Math.max(1, this.height >> mipLevel)
|
|
15
|
-
* @param length - Data length.
|
|
16
|
-
*/
|
|
17
|
-
setPixelBuffer(offsetIndex: number, colorBuffer: ArrayBufferView, mipLevel: number, x: number, y: number, width?: number, height?: number, length?: number): void;
|
|
18
|
-
/**
|
|
19
|
-
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
20
|
-
* @param index - The texture array element index
|
|
21
|
-
* @param imageSource - The source of texture
|
|
22
|
-
* @param mipLevel - Texture mipmapping level
|
|
23
|
-
* @param flipY - Whether to flip the Y axis
|
|
24
|
-
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
25
|
-
* @param x - X coordinate of area start
|
|
26
|
-
* @param y - Y coordinate of area start
|
|
27
|
-
*/
|
|
28
|
-
setImageSource(index: number, imageSource: TexImageSource, mipLevel: number, flipY: boolean, premultiplyAlpha: boolean, x: number, y: number): void;
|
|
29
|
-
/**
|
|
30
|
-
* Get the pixel color buffer according to the specified area.
|
|
31
|
-
* @param elementIndex - The texture array element index
|
|
32
|
-
* @param x - X coordinate of area start
|
|
33
|
-
* @param y - Y coordinate of area start
|
|
34
|
-
* @param width - Area width
|
|
35
|
-
* @param height - Area height
|
|
36
|
-
* @param mipLevel - Set mip level the data want to get from
|
|
37
|
-
* @param out - Color buffer
|
|
38
|
-
*/
|
|
39
|
-
getPixelBuffer(elementIndex: number, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
40
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { TextureCubeFace } from "../texture";
|
|
2
|
-
import { IPlatformTexture } from "./IPlatformTexture";
|
|
3
|
-
/**
|
|
4
|
-
* Cube texture interface specification.
|
|
5
|
-
*/
|
|
6
|
-
export interface IPlatformTextureCube extends IPlatformTexture {
|
|
7
|
-
/**
|
|
8
|
-
* Setting pixels data through cube face,color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
9
|
-
* @remarks When compressed texture is in WebGL1, the texture must be filled first before writing the sub-region
|
|
10
|
-
* @param face - Cube face
|
|
11
|
-
* @param colorBuffer - Color buffer data
|
|
12
|
-
* @param mipLevel - Texture mipmapping level
|
|
13
|
-
* @param x - X coordinate of area start
|
|
14
|
-
* @param y - Y coordinate of area start
|
|
15
|
-
* @param width - Data width.if it's empty, width is the width corresponding to mipLevel minus x , width corresponding to mipLevel is Math.max(1, this.width >> mipLevel)
|
|
16
|
-
* @param height - Data height.if it's empty, height is the height corresponding to mipLevel minus y , height corresponding to mipLevel is Math.max(1, this.height >> mipLevel)
|
|
17
|
-
*/
|
|
18
|
-
setPixelBuffer(face: TextureCubeFace, colorBuffer: ArrayBufferView, mipLevel: number, x: number, y: number, width?: number, height?: number): void;
|
|
19
|
-
/**
|
|
20
|
-
* Setting pixels data through cube face, TexImageSource, designated area and texture mipmapping level.
|
|
21
|
-
* @param face - Cube face
|
|
22
|
-
* @param imageSource - The source of texture
|
|
23
|
-
* @param mipLevel - Texture mipmapping level
|
|
24
|
-
* @param flipY - Whether to flip the Y axis
|
|
25
|
-
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
26
|
-
* @param x - X coordinate of area start
|
|
27
|
-
* @param y - Y coordinate of area start
|
|
28
|
-
*/
|
|
29
|
-
setImageSource(face: TextureCubeFace, imageSource: TexImageSource, mipLevel: number, flipY: boolean, premultiplyAlpha: boolean, x: number, y: number): void;
|
|
30
|
-
/**
|
|
31
|
-
* Get the pixel color buffer according to the specified cube face and area.
|
|
32
|
-
* @param face - You can choose which cube face to read
|
|
33
|
-
* @param x - X coordinate of area start
|
|
34
|
-
* @param y - Y coordinate of area start
|
|
35
|
-
* @param width - Area width
|
|
36
|
-
* @param height - Area height
|
|
37
|
-
* @param mipLevel - Set mip level the data want to get from
|
|
38
|
-
* @param out - Color buffer
|
|
39
|
-
*/
|
|
40
|
-
getPixelBuffer(face: TextureCubeFace, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
41
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type { IPlatformBuffer } from "./IPlatformBuffer";
|
|
2
|
-
export type { IPlatformRenderTarget } from "./IPlatformRenderTarget";
|
|
3
|
-
export type { IPlatformTexture } from "./IPlatformTexture";
|
|
4
|
-
export type { IPlatformTexture2D } from "./IPlatformTexture2D";
|
|
5
|
-
export type { IPlatformTexture2DArray } from "./IPlatformTexture2DArray";
|
|
6
|
-
export type { IPlatformTextureCube } from "./IPlatformTextureCube";
|
package/types/shader/Shader.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Engine } from "../Engine";
|
|
2
|
-
import { IReferable } from "../asset/IReferable";
|
|
3
|
-
import { ShaderMacro } from "./ShaderMacro";
|
|
4
|
-
import { ShaderPass } from "./ShaderPass";
|
|
5
|
-
import { ShaderProperty } from "./ShaderProperty";
|
|
6
|
-
import { SubShader } from "./SubShader";
|
|
7
|
-
import { ShaderLanguage } from "./enums/ShaderLanguage";
|
|
8
|
-
/**
|
|
9
|
-
* Shader for rendering.
|
|
10
|
-
*/
|
|
11
|
-
export declare class Shader implements IReferable {
|
|
12
|
-
readonly name: string;
|
|
13
|
-
private static _shaderMap;
|
|
14
|
-
/**
|
|
15
|
-
* Create a shader by source code.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
*
|
|
19
|
-
* ShaderLab must be enabled first as follows:
|
|
20
|
-
* ```ts
|
|
21
|
-
* // Import shaderLab
|
|
22
|
-
* import { ShaderLab } from "@galacean/engine-shaderlab";
|
|
23
|
-
* // Create engine with shaderLab
|
|
24
|
-
* const engine = await WebGLEngine.create({ canvas: "canvas", shader: new ShaderLab() });
|
|
25
|
-
* ...
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @param shaderSource - Shader code
|
|
29
|
-
* @param platformTarget - Shader platform target, @defaultValue ShaderLanguage.GLSLES300
|
|
30
|
-
* @param path - Shader location path
|
|
31
|
-
* @returns Shader
|
|
32
|
-
*
|
|
33
|
-
* @throws
|
|
34
|
-
* Throw string exception if shaderLab has not been enabled properly.
|
|
35
|
-
*/
|
|
36
|
-
static create(shaderSource: string, platformTarget?: ShaderLanguage, path?: string): Shader;
|
|
37
|
-
/**
|
|
38
|
-
* Create a shader.
|
|
39
|
-
* @param name - Name of the shader
|
|
40
|
-
* @param vertexSource - Vertex source code
|
|
41
|
-
* @param fragmentSource - Fragment source code
|
|
42
|
-
* @returns Shader
|
|
43
|
-
*/
|
|
44
|
-
static create(name: string, vertexSource: string, fragmentSource: string): Shader;
|
|
45
|
-
/**
|
|
46
|
-
* Create a shader.
|
|
47
|
-
* @param name - Name of the shader
|
|
48
|
-
* @param shaderPasses - Shader passes
|
|
49
|
-
* @returns Shader
|
|
50
|
-
*/
|
|
51
|
-
static create(name: string, shaderPasses: ShaderPass[]): Shader;
|
|
52
|
-
/**
|
|
53
|
-
* Create a shader.
|
|
54
|
-
* @param name - Name of the shader
|
|
55
|
-
* @param subShaders - Sub shaders
|
|
56
|
-
* @returns Shader
|
|
57
|
-
*/
|
|
58
|
-
static create(name: string, subShaders: SubShader[]): Shader;
|
|
59
|
-
/**
|
|
60
|
-
* Find a shader by name.
|
|
61
|
-
* @param name - Name of the shader
|
|
62
|
-
*/
|
|
63
|
-
static find(name: string): Shader;
|
|
64
|
-
private static _applyConstRenderStates;
|
|
65
|
-
private _refCount;
|
|
66
|
-
private _destroyed;
|
|
67
|
-
private _subShaders;
|
|
68
|
-
/**
|
|
69
|
-
* Sub shaders of the shader.
|
|
70
|
-
*/
|
|
71
|
-
get subShaders(): ReadonlyArray<SubShader>;
|
|
72
|
-
/**
|
|
73
|
-
* Whether it has been destroyed.
|
|
74
|
-
*/
|
|
75
|
-
get destroyed(): boolean;
|
|
76
|
-
private constructor();
|
|
77
|
-
/**
|
|
78
|
-
* Compile shader variant by macro name list.
|
|
79
|
-
*
|
|
80
|
-
* @remarks
|
|
81
|
-
* Usually a shader contains some macros,any combination of macros is called shader variant.
|
|
82
|
-
*
|
|
83
|
-
* @param engine - Engine to which the shader variant belongs
|
|
84
|
-
* @param macros - Macro name list
|
|
85
|
-
* @returns Is the compiled shader variant valid
|
|
86
|
-
*/
|
|
87
|
-
compileVariant(engine: Engine, macros: string[]): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Destroy the shader.
|
|
90
|
-
* @param force - Whether to force the destruction, if it is false, refCount = 0 can be released successfully.
|
|
91
|
-
* @returns Whether the release was successful.
|
|
92
|
-
*/
|
|
93
|
-
destroy(force?: boolean): boolean;
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated Please use `ShaderMacro.getByName` instead
|
|
96
|
-
*
|
|
97
|
-
* Get shader macro by name.
|
|
98
|
-
* @param name - Name of the shader macro
|
|
99
|
-
* @returns Shader macro
|
|
100
|
-
*/
|
|
101
|
-
static getMacroByName(name: string): ShaderMacro;
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated Please use `ShaderMacro.getByName` instead
|
|
104
|
-
*
|
|
105
|
-
* Get shader macro by name.
|
|
106
|
-
* @param name - Name of the shader macro
|
|
107
|
-
* @param value - Value of the shader macro
|
|
108
|
-
* @returns Shader macro
|
|
109
|
-
*/
|
|
110
|
-
static getMacroByName(name: string, value: string): ShaderMacro;
|
|
111
|
-
/**
|
|
112
|
-
* @deprecated Please use `ShaderProperty.getByName` instead
|
|
113
|
-
*
|
|
114
|
-
* Get shader property by name.
|
|
115
|
-
* @param name - Name of the shader property
|
|
116
|
-
* @returns Shader property
|
|
117
|
-
*/
|
|
118
|
-
static getPropertyByName(name: string): ShaderProperty;
|
|
119
|
-
}
|