@galacean/engine-core 1.6.6 → 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 -37540
- package/dist/main.js.map +0 -1
- package/dist/module.js +0 -37258
- 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,72 +0,0 @@
|
|
|
1
|
-
import { Color } from "@galacean/engine-math";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { Material } from "../material/Material";
|
|
4
|
-
/**
|
|
5
|
-
* Sun mode.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum SunMode {
|
|
8
|
-
/** None */
|
|
9
|
-
None = 0,
|
|
10
|
-
/** Simple sun. */
|
|
11
|
-
Simple = 1,
|
|
12
|
-
/** High quality sun. */
|
|
13
|
-
HighQuality = 2
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Sky procedural material.
|
|
17
|
-
*/
|
|
18
|
-
export declare class SkyProceduralMaterial extends Material {
|
|
19
|
-
private static _sunSizeProp;
|
|
20
|
-
private static _sunSizeConvergenceProp;
|
|
21
|
-
private static _atmosphereThicknessProp;
|
|
22
|
-
private static _skyTintProp;
|
|
23
|
-
private static _groundTintProp;
|
|
24
|
-
private static _exposureProp;
|
|
25
|
-
private static _sunHighQualityMacro;
|
|
26
|
-
private static _sunSimpleMacro;
|
|
27
|
-
private _sunDisk;
|
|
28
|
-
/**
|
|
29
|
-
* Sun mode.
|
|
30
|
-
*/
|
|
31
|
-
get sunMode(): SunMode;
|
|
32
|
-
set sunMode(value: SunMode);
|
|
33
|
-
/**
|
|
34
|
-
* Sun size, range is 0 to 1.
|
|
35
|
-
*/
|
|
36
|
-
get sunSize(): number;
|
|
37
|
-
set sunSize(value: number);
|
|
38
|
-
/**
|
|
39
|
-
* Sun size convergence, range is 0 to 20.
|
|
40
|
-
*/
|
|
41
|
-
get sunSizeConvergence(): number;
|
|
42
|
-
set sunSizeConvergence(value: number);
|
|
43
|
-
/**
|
|
44
|
-
* Atmosphere thickness, range is 0 to 5.
|
|
45
|
-
*/
|
|
46
|
-
get atmosphereThickness(): number;
|
|
47
|
-
set atmosphereThickness(value: number);
|
|
48
|
-
/**
|
|
49
|
-
* Sky tint.
|
|
50
|
-
*/
|
|
51
|
-
get skyTint(): Color;
|
|
52
|
-
set skyTint(value: Color);
|
|
53
|
-
/**
|
|
54
|
-
* Ground tint.
|
|
55
|
-
*/
|
|
56
|
-
get groundTint(): Color;
|
|
57
|
-
set groundTint(value: Color);
|
|
58
|
-
/**
|
|
59
|
-
* Exposure, range is 0 to 8.
|
|
60
|
-
*/
|
|
61
|
-
get exposure(): number;
|
|
62
|
-
set exposure(value: number);
|
|
63
|
-
/**
|
|
64
|
-
* Constructor a SkyBoxProceduralMaterial instance.
|
|
65
|
-
* @param engine - Engine to which the material belongs
|
|
66
|
-
*/
|
|
67
|
-
constructor(engine: Engine);
|
|
68
|
-
/**
|
|
69
|
-
* @inheritDoc
|
|
70
|
-
*/
|
|
71
|
-
clone(): SkyProceduralMaterial;
|
|
72
|
-
}
|
package/types/sky/index.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { GraphicsResource } from "../asset/GraphicsResource";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { RenderBufferDepthFormat } from "./enums/RenderBufferDepthFormat";
|
|
4
|
-
import { TextureFormat } from "./enums/TextureFormat";
|
|
5
|
-
import { Texture } from "./Texture";
|
|
6
|
-
/**
|
|
7
|
-
* The render target used for off-screen rendering.
|
|
8
|
-
*/
|
|
9
|
-
export declare class RenderTarget extends GraphicsResource {
|
|
10
|
-
private _autoGenerateMipmaps;
|
|
11
|
-
private _width;
|
|
12
|
-
private _height;
|
|
13
|
-
private _colorTextures;
|
|
14
|
-
private _depthTexture;
|
|
15
|
-
/**
|
|
16
|
-
* Whether to automatically generate multi-level textures.
|
|
17
|
-
*/
|
|
18
|
-
get autoGenerateMipmaps(): boolean;
|
|
19
|
-
set autoGenerateMipmaps(value: boolean);
|
|
20
|
-
/**
|
|
21
|
-
* Render target width.
|
|
22
|
-
*/
|
|
23
|
-
get width(): number;
|
|
24
|
-
/**
|
|
25
|
-
* Render target height.
|
|
26
|
-
*/
|
|
27
|
-
get height(): number;
|
|
28
|
-
/**
|
|
29
|
-
* Render color texture count.
|
|
30
|
-
*/
|
|
31
|
-
get colorTextureCount(): number;
|
|
32
|
-
/**
|
|
33
|
-
* Depth texture.
|
|
34
|
-
*/
|
|
35
|
-
get depthTexture(): Texture | null;
|
|
36
|
-
/**
|
|
37
|
-
* Anti-aliasing level.
|
|
38
|
-
* @remarks If the anti-aliasing level set is greater than the maximum level supported by the hardware, the maximum level of the hardware will be used.
|
|
39
|
-
*/
|
|
40
|
-
get antiAliasing(): number;
|
|
41
|
-
/**
|
|
42
|
-
* Create a render target through color texture and depth format.
|
|
43
|
-
* @param engine - Define the engine to use for this off-screen rendering
|
|
44
|
-
* @param width - Render target width
|
|
45
|
-
* @param height - Render target height
|
|
46
|
-
* @param colorTexture - Render color texture
|
|
47
|
-
* @param depthFormat - Depth format. default TextureFormat.Depth, engine will automatically select the supported precision
|
|
48
|
-
* @param antiAliasing - Anti-aliasing level, default is 1
|
|
49
|
-
*/
|
|
50
|
-
constructor(engine: Engine, width: number, height: number, colorTexture: Texture, depthFormat?: TextureFormat | null | RenderBufferDepthFormat, antiAliasing?: number);
|
|
51
|
-
/**
|
|
52
|
-
* Create a render target through color texture and depth format.
|
|
53
|
-
* @remarks If the color texture is not transmitted, only the depth texture is generated.
|
|
54
|
-
* @param engine - Define the engine to use for this off-screen rendering
|
|
55
|
-
* @param width - Render target width
|
|
56
|
-
* @param height - Render target height
|
|
57
|
-
* @param colorTexture - Render color texture
|
|
58
|
-
* @param depthTexture - Render depth texture
|
|
59
|
-
* @param antiAliasing - Anti-aliasing level, default is 1
|
|
60
|
-
*/
|
|
61
|
-
constructor(engine: Engine, width: number, height: number, colorTexture: Texture | null, depthTexture: Texture, antiAliasing?: number);
|
|
62
|
-
/**
|
|
63
|
-
* Create a render target with color texture array and depth format.
|
|
64
|
-
* @param engine - Define the engine to use for this off-screen rendering
|
|
65
|
-
* @param width - Render target width
|
|
66
|
-
* @param height - Render target height
|
|
67
|
-
* @param colorTextures - Render color texture array
|
|
68
|
-
* @param depthFormat - Depth format. default TextureFormat.Depth,engine will automatically select the supported precision
|
|
69
|
-
* @param antiAliasing - Anti-aliasing level, default is 1
|
|
70
|
-
*/
|
|
71
|
-
constructor(engine: Engine, width: number, height: number, colorTextures: Texture[], depthFormat?: TextureFormat | null | RenderBufferDepthFormat, antiAliasing?: number);
|
|
72
|
-
/**
|
|
73
|
-
* Create a render target with color texture array and depth texture.
|
|
74
|
-
* @param engine - Define the engine to use for this off-screen rendering
|
|
75
|
-
* @param width - Render target width
|
|
76
|
-
* @param height - Render target height
|
|
77
|
-
* @param colorTextures - Render color texture array
|
|
78
|
-
* @param depthTexture - Depth texture
|
|
79
|
-
* @param antiAliasing - Anti-aliasing level, default is 1
|
|
80
|
-
*/
|
|
81
|
-
constructor(engine: Engine, width: number, height: number, colorTextures: Texture[], depthTexture: Texture, antiAliasing?: number);
|
|
82
|
-
/**
|
|
83
|
-
* Get the render color texture by index.
|
|
84
|
-
* @param index - Render color texture index
|
|
85
|
-
*/
|
|
86
|
-
getColorTexture(index?: number): Texture | null;
|
|
87
|
-
/**
|
|
88
|
-
* Generate the mipmap of each attachment texture of the renderTarget according to the configuration.
|
|
89
|
-
*/
|
|
90
|
-
generateMipmaps(): void;
|
|
91
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { GraphicsResource } from "../asset/GraphicsResource";
|
|
2
|
-
import { Engine } from "../Engine";
|
|
3
|
-
import { TextureDepthCompareFunction } from "./enums/TextureDepthCompareFunction";
|
|
4
|
-
import { TextureFilterMode } from "./enums/TextureFilterMode";
|
|
5
|
-
import { TextureFormat } from "./enums/TextureFormat";
|
|
6
|
-
import { TextureUsage } from "./enums/TextureUsage";
|
|
7
|
-
import { TextureWrapMode } from "./enums/TextureWrapMode";
|
|
8
|
-
/**
|
|
9
|
-
* The base class of texture, contains some common functions of texture-related classes.
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class Texture extends GraphicsResource {
|
|
12
|
-
name: string;
|
|
13
|
-
protected _format: TextureFormat;
|
|
14
|
-
protected _width: number;
|
|
15
|
-
protected _height: number;
|
|
16
|
-
protected _usage: TextureUsage;
|
|
17
|
-
protected _mipmapCount: number;
|
|
18
|
-
protected _isSRGBColorSpace: boolean;
|
|
19
|
-
private _wrapModeU;
|
|
20
|
-
private _wrapModeV;
|
|
21
|
-
private _filterMode;
|
|
22
|
-
private _anisoLevel;
|
|
23
|
-
private _depthCompareFunction;
|
|
24
|
-
private _useDepthCompareMode;
|
|
25
|
-
/**
|
|
26
|
-
* Whether the texture data is in sRGB color space, otherwise is linear color space.
|
|
27
|
-
*/
|
|
28
|
-
get isSRGBColorSpace(): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Texture format.
|
|
31
|
-
*/
|
|
32
|
-
get format(): TextureFormat;
|
|
33
|
-
/**
|
|
34
|
-
* The width of the texture.
|
|
35
|
-
*/
|
|
36
|
-
get width(): number;
|
|
37
|
-
/**
|
|
38
|
-
* The height of the texture.
|
|
39
|
-
*/
|
|
40
|
-
get height(): number;
|
|
41
|
-
/**
|
|
42
|
-
* The usage of the texture.
|
|
43
|
-
*/
|
|
44
|
-
get usage(): TextureUsage;
|
|
45
|
-
/**
|
|
46
|
-
* Wrapping mode for texture coordinate S.
|
|
47
|
-
*/
|
|
48
|
-
get wrapModeU(): TextureWrapMode;
|
|
49
|
-
set wrapModeU(value: TextureWrapMode);
|
|
50
|
-
/**
|
|
51
|
-
* Wrapping mode for texture coordinate T.
|
|
52
|
-
*/
|
|
53
|
-
get wrapModeV(): TextureWrapMode;
|
|
54
|
-
set wrapModeV(value: TextureWrapMode);
|
|
55
|
-
/**
|
|
56
|
-
* Texture mipmapping count.
|
|
57
|
-
*/
|
|
58
|
-
get mipmapCount(): number;
|
|
59
|
-
/**
|
|
60
|
-
* Filter mode for texture.
|
|
61
|
-
*/
|
|
62
|
-
get filterMode(): TextureFilterMode;
|
|
63
|
-
set filterMode(value: TextureFilterMode);
|
|
64
|
-
/**
|
|
65
|
-
* Anisotropic level for texture.
|
|
66
|
-
*/
|
|
67
|
-
get anisoLevel(): number;
|
|
68
|
-
set anisoLevel(value: number);
|
|
69
|
-
/**
|
|
70
|
-
* Filter mode when texture as depth Texture.
|
|
71
|
-
* @remarks Only depth-related formats take effect.
|
|
72
|
-
*/
|
|
73
|
-
get depthCompareFunction(): TextureDepthCompareFunction;
|
|
74
|
-
set depthCompareFunction(value: TextureDepthCompareFunction);
|
|
75
|
-
constructor(engine: Engine, width: number, height: number, format: TextureFormat, mipmap: boolean, isSRGBColorSpace: boolean);
|
|
76
|
-
/**
|
|
77
|
-
* Generate multi-level textures based on the 0th level data.
|
|
78
|
-
*/
|
|
79
|
-
generateMipmaps(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Get the maximum mip level of the corresponding size:rounding down.
|
|
82
|
-
* @remarks http://download.nvidia.com/developer/Papers/2005/NP2_Mipmapping/NP2_Mipmap_Creation.pdf
|
|
83
|
-
*/
|
|
84
|
-
protected _getMaxMiplevel(size: number): number;
|
|
85
|
-
protected _getMipmapCount(): number;
|
|
86
|
-
protected _isIntFormat(): boolean;
|
|
87
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Engine } from "../Engine";
|
|
2
|
-
import { TextureFormat } from "./enums/TextureFormat";
|
|
3
|
-
import { TextureUsage } from "./enums/TextureUsage";
|
|
4
|
-
import { Texture } from "./Texture";
|
|
5
|
-
/**
|
|
6
|
-
* Two-dimensional texture.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Texture2D extends Texture {
|
|
9
|
-
/**
|
|
10
|
-
* Create Texture2D.
|
|
11
|
-
* @param engine - Define the engine to use to render this texture
|
|
12
|
-
* @param width - Texture width
|
|
13
|
-
* @param height - Texture height
|
|
14
|
-
* @param format - Texture format. default `TextureFormat.R8G8B8A8`
|
|
15
|
-
* @param mipmap - Whether to use multi-level texture
|
|
16
|
-
* @param isSRGBColorSpace - Whether the texture data is in sRGB color space, otherwise is linear color space. @defaultValue `true`
|
|
17
|
-
* @param usage - Texture usage
|
|
18
|
-
*/
|
|
19
|
-
constructor(engine: Engine, width: number, height: number, format?: TextureFormat, mipmap?: boolean, isSRGBColorSpace?: boolean, usage?: TextureUsage);
|
|
20
|
-
/**
|
|
21
|
-
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
22
|
-
* @remarks If it is the WebGL1.0 platform and the texture format is compressed, the first upload must be filled with textures.
|
|
23
|
-
* @param colorBuffer - Color buffer data
|
|
24
|
-
* @param mipLevel - Texture mipmapping level
|
|
25
|
-
* @param x - X coordinate of area start
|
|
26
|
-
* @param y - Y coordinate of area start
|
|
27
|
-
* @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)
|
|
28
|
-
* @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)
|
|
29
|
-
*/
|
|
30
|
-
setPixelBuffer(colorBuffer: ArrayBufferView, mipLevel?: number, x?: number, y?: number, width?: number, height?: number): void;
|
|
31
|
-
/**
|
|
32
|
-
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
33
|
-
* @param imageSource - The source of texture
|
|
34
|
-
* @param mipLevel - Texture mipmapping level
|
|
35
|
-
* @param flipY - Whether to flip the Y axis
|
|
36
|
-
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
37
|
-
* @param x - X coordinate of area start
|
|
38
|
-
* @param y - Y coordinate of area start
|
|
39
|
-
*/
|
|
40
|
-
setImageSource(imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
41
|
-
/**
|
|
42
|
-
* Get pixel color buffer.
|
|
43
|
-
* @param out - Color buffer
|
|
44
|
-
*/
|
|
45
|
-
getPixelBuffer(out: ArrayBufferView): void;
|
|
46
|
-
/**
|
|
47
|
-
* Get the pixel color buffer according to the specified mip level.
|
|
48
|
-
* @param mipLevel - Tet mip level want to get
|
|
49
|
-
* @param out - Color buffer
|
|
50
|
-
*/
|
|
51
|
-
getPixelBuffer(mipLevel: number, out: ArrayBufferView): void;
|
|
52
|
-
/**
|
|
53
|
-
* Get the pixel color buffer according to the specified area.
|
|
54
|
-
* @param x - X coordinate of area start
|
|
55
|
-
* @param y - Y coordinate of area start
|
|
56
|
-
* @param width - Area width
|
|
57
|
-
* @param height - Area height
|
|
58
|
-
* @param out - Color buffer
|
|
59
|
-
*/
|
|
60
|
-
getPixelBuffer(x: number, y: number, width: number, height: number, out: ArrayBufferView): void;
|
|
61
|
-
/**
|
|
62
|
-
* Get the pixel color buffer according to the specified area and mip level.
|
|
63
|
-
* @param x - X coordinate of area start
|
|
64
|
-
* @param y - Y coordinate of area start
|
|
65
|
-
* @param width - Area width
|
|
66
|
-
* @param height - Area height
|
|
67
|
-
* @param mipLevel - Tet mip level want to get
|
|
68
|
-
* @param out - Color buffer
|
|
69
|
-
*/
|
|
70
|
-
getPixelBuffer(x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
71
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Engine } from "../Engine";
|
|
2
|
-
import { TextureFormat } from "./enums/TextureFormat";
|
|
3
|
-
import { Texture } from "./Texture";
|
|
4
|
-
/**
|
|
5
|
-
* Two-dimensional texture array.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Texture2DArray extends Texture {
|
|
8
|
-
private readonly _length;
|
|
9
|
-
/**
|
|
10
|
-
* The length of the texture.
|
|
11
|
-
*/
|
|
12
|
-
get length(): number;
|
|
13
|
-
/**
|
|
14
|
-
* Create Texture2D Array.
|
|
15
|
-
* @param engine - Define the engine to use to render this texture
|
|
16
|
-
* @param width - Texture width
|
|
17
|
-
* @param height - Texture height
|
|
18
|
-
* @param length - Texture length
|
|
19
|
-
* @param format - Texture format. default `TextureFormat.R8G8B8A8`
|
|
20
|
-
* @param mipmap - Whether to use multi-level texture
|
|
21
|
-
* @param isSRGBColorSpace - Whether the texture data is in sRGB color space, otherwise is linear color space. @defaultValue `true`
|
|
22
|
-
*/
|
|
23
|
-
constructor(engine: Engine, width: number, height: number, length: number, format?: TextureFormat, mipmap?: boolean, isSRGBColorSpace?: boolean);
|
|
24
|
-
/**
|
|
25
|
-
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
26
|
-
* @remarks If it is the WebGL1.0 platform and the texture format is compressed, the first upload must be filled with textures.
|
|
27
|
-
* @param offsetIndex - The texture array element offset index
|
|
28
|
-
* @param colorBuffer - Color buffer data
|
|
29
|
-
* @param mipLevel - Texture mipmapping level
|
|
30
|
-
* @param x - X coordinate of area start
|
|
31
|
-
* @param y - Y coordinate of area start
|
|
32
|
-
* @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)
|
|
33
|
-
* @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)
|
|
34
|
-
* @param length - Data length. if it's empty, length is the length of Texture2DArray.length
|
|
35
|
-
*/
|
|
36
|
-
setPixelBuffer(offsetIndex: number, colorBuffer: ArrayBufferView, mipLevel?: number, x?: number, y?: number, width?: number, height?: number, length?: number): void;
|
|
37
|
-
/**
|
|
38
|
-
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
39
|
-
* @param elementIndex - The texture array element index
|
|
40
|
-
* @param imageSource - The source of texture
|
|
41
|
-
* @param mipLevel - Texture mipmapping level
|
|
42
|
-
* @param flipY - Whether to flip the Y axis
|
|
43
|
-
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
44
|
-
* @param x - X coordinate of area start
|
|
45
|
-
* @param y - Y coordinate of area start
|
|
46
|
-
*/
|
|
47
|
-
setImageSource(elementIndex: number, imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
48
|
-
/**
|
|
49
|
-
* Get pixel color buffer.
|
|
50
|
-
* @param elementIndex - The texture array element index
|
|
51
|
-
* @param out - Color buffer
|
|
52
|
-
*/
|
|
53
|
-
getPixelBuffer(elementIndex: number, out: ArrayBufferView): void;
|
|
54
|
-
/**
|
|
55
|
-
* Get the pixel color buffer according to the specified mip level.
|
|
56
|
-
* @param elementIndex - The texture array element index
|
|
57
|
-
* @param mipLevel - Tet mip level want to get
|
|
58
|
-
* @param out - Color buffer
|
|
59
|
-
*/
|
|
60
|
-
getPixelBuffer(elementIndex: number, mipLevel: number, out: ArrayBufferView): void;
|
|
61
|
-
/**
|
|
62
|
-
* Get the pixel color buffer according to the specified area.
|
|
63
|
-
* @param elementIndex - The texture array element index
|
|
64
|
-
* @param x - X coordinate of area start
|
|
65
|
-
* @param y - Y coordinate of area start
|
|
66
|
-
* @param width - Area width
|
|
67
|
-
* @param height - Area height
|
|
68
|
-
* @param out - Color buffer
|
|
69
|
-
*/
|
|
70
|
-
getPixelBuffer(elementIndex: number, x: number, y: number, width: number, height: number, out: ArrayBufferView): void;
|
|
71
|
-
/**
|
|
72
|
-
* Get the pixel color buffer according to the specified area and mip level.
|
|
73
|
-
* @param elementIndex - The texture array element index
|
|
74
|
-
* @param x - X coordinate of area start
|
|
75
|
-
* @param y - Y coordinate of area start
|
|
76
|
-
* @param width - Area width
|
|
77
|
-
* @param height - Area height
|
|
78
|
-
* @param mipLevel - Tet mip level want to get
|
|
79
|
-
* @param out - Color buffer
|
|
80
|
-
*/
|
|
81
|
-
getPixelBuffer(elementIndex: number, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
82
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Engine } from "../Engine";
|
|
2
|
-
import { TextureCubeFace } from "./enums/TextureCubeFace";
|
|
3
|
-
import { TextureFormat } from "./enums/TextureFormat";
|
|
4
|
-
import { Texture } from "./Texture";
|
|
5
|
-
/**
|
|
6
|
-
* Cube texture.
|
|
7
|
-
*/
|
|
8
|
-
export declare class TextureCube extends Texture {
|
|
9
|
-
/**
|
|
10
|
-
* Create TextureCube.
|
|
11
|
-
* @param engine - Define the engine to use to render this texture
|
|
12
|
-
* @param size - Texture size. texture width must be equal to height in cube texture
|
|
13
|
-
* @param format - Texture format,default TextureFormat.R8G8B8A8
|
|
14
|
-
* @param mipmap - Whether to use multi-level texture
|
|
15
|
-
* @param isSRGBColorSpace - Whether the texture data is in sRGB color space, otherwise is linear color space. @defaultValue `true`
|
|
16
|
-
*/
|
|
17
|
-
constructor(engine: Engine, size: number, format?: TextureFormat, mipmap?: boolean, isSRGBColorSpace?: boolean);
|
|
18
|
-
/**
|
|
19
|
-
* Setting pixels data through cube face,color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
20
|
-
* @remarks When compressed texture is in WebGL1, the texture must be filled first before writing the sub-region
|
|
21
|
-
* @param face - Cube face
|
|
22
|
-
* @param colorBuffer - Color buffer data
|
|
23
|
-
* @param mipLevel - Texture mipmapping level
|
|
24
|
-
* @param x - X coordinate of area start
|
|
25
|
-
* @param y - Y coordinate of area start
|
|
26
|
-
* @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)
|
|
27
|
-
* @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)
|
|
28
|
-
*/
|
|
29
|
-
setPixelBuffer(face: TextureCubeFace, colorBuffer: ArrayBufferView, mipLevel?: number, x?: number, y?: number, width?: number, height?: number): void;
|
|
30
|
-
/**
|
|
31
|
-
* Setting pixels data through cube face, TexImageSource, designated area and texture mipmapping level.
|
|
32
|
-
* @param face - Cube face
|
|
33
|
-
* @param imageSource - The source of texture
|
|
34
|
-
* @param mipLevel - Texture mipmapping level
|
|
35
|
-
* @param flipY - Whether to flip the Y axis
|
|
36
|
-
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
37
|
-
* @param x - X coordinate of area start
|
|
38
|
-
* @param y - Y coordinate of area start
|
|
39
|
-
*/
|
|
40
|
-
setImageSource(face: TextureCubeFace, imageSource: TexImageSource, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
41
|
-
/**
|
|
42
|
-
* Get pixel color buffer.
|
|
43
|
-
* @param out - Color buffer
|
|
44
|
-
*/
|
|
45
|
-
getPixelBuffer(face: TextureCubeFace, out: ArrayBufferView): void;
|
|
46
|
-
/**
|
|
47
|
-
* Get the pixel color buffer according to the specified mip level.
|
|
48
|
-
* @param mipLevel - Tet mip level want to get
|
|
49
|
-
* @param out - Color buffer
|
|
50
|
-
*/
|
|
51
|
-
getPixelBuffer(face: TextureCubeFace, mipLevel: number, out: ArrayBufferView): void;
|
|
52
|
-
/**
|
|
53
|
-
* Get the pixel color buffer according to the specified area.
|
|
54
|
-
* @param x - X coordinate of area start
|
|
55
|
-
* @param y - Y coordinate of area start
|
|
56
|
-
* @param width - Area width
|
|
57
|
-
* @param height - Area height
|
|
58
|
-
* @param out - Color buffer
|
|
59
|
-
*/
|
|
60
|
-
getPixelBuffer(face: TextureCubeFace, x: number, y: number, width: number, height: number, out: ArrayBufferView): void;
|
|
61
|
-
/**
|
|
62
|
-
* Get the pixel color buffer according to the specified area and mip level.
|
|
63
|
-
* @param x - X coordinate of area start
|
|
64
|
-
* @param y - Y coordinate of area start
|
|
65
|
-
* @param width - Area width
|
|
66
|
-
* @param height - Area height
|
|
67
|
-
* @param mipLevel - Tet mip level want to get
|
|
68
|
-
* @param out - Color buffer
|
|
69
|
-
*/
|
|
70
|
-
getPixelBuffer(face: TextureCubeFace, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
71
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated Please use `TextureFormat` instead.
|
|
3
|
-
*
|
|
4
|
-
* Render buffer depth format enumeration.
|
|
5
|
-
*/
|
|
6
|
-
export declare enum RenderBufferDepthFormat {
|
|
7
|
-
/** Render to depth buffer,engine will automatically select the supported precision. */
|
|
8
|
-
Depth = 27,
|
|
9
|
-
/** Render to stencil buffer. */
|
|
10
|
-
Stencil = 28,
|
|
11
|
-
/** Render to depth stencil buffer, engine will automatically select the supported precision. */
|
|
12
|
-
DepthStencil = 29,
|
|
13
|
-
/** Force 16-bit depth buffer. */
|
|
14
|
-
Depth16 = 30,
|
|
15
|
-
/** Force 24-bit depth buffer. */
|
|
16
|
-
Depth24 = 31,
|
|
17
|
-
/** Force 32-bit depth buffer. */
|
|
18
|
-
Depth32 = 32,
|
|
19
|
-
/** Force 16-bit depth + 8-bit stencil buffer. */
|
|
20
|
-
Depth24Stencil8 = 33,
|
|
21
|
-
/** Force 32-bit depth + 8-bit stencil buffer. */
|
|
22
|
-
Depth32Stencil8 = 34
|
|
23
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define the face of the cube texture.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum TextureCubeFace {
|
|
5
|
-
/** Positive X face for a cube-mapped texture. */
|
|
6
|
-
PositiveX = 0,
|
|
7
|
-
/** Negative X face for a cube-mapped texture. */
|
|
8
|
-
NegativeX = 1,
|
|
9
|
-
/** Positive Y face for a cube-mapped texture. */
|
|
10
|
-
PositiveY = 2,
|
|
11
|
-
/** Negative Y face for a cube-mapped texture. */
|
|
12
|
-
NegativeY = 3,
|
|
13
|
-
/** Positive Z face for a cube-mapped texture. */
|
|
14
|
-
PositiveZ = 4,
|
|
15
|
-
/** Negative Z face for a cube-mapped texture. */
|
|
16
|
-
NegativeZ = 5
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define the compare mode of depth texture.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum TextureDepthCompareFunction {
|
|
5
|
-
/** never pass. */
|
|
6
|
-
Never = 0,
|
|
7
|
-
/** pass if the compare value is less than the sample value. */
|
|
8
|
-
Less = 1,
|
|
9
|
-
/** pass if the compare value equals the sample value. */
|
|
10
|
-
Equal = 2,
|
|
11
|
-
/** pass if the compare value is less than or equal to the sample value. */
|
|
12
|
-
LessEqual = 3,
|
|
13
|
-
/** pass if the compare value is greater than the sample value. */
|
|
14
|
-
Greater = 4,
|
|
15
|
-
/** pass if the compare value is not equal to the sample value. */
|
|
16
|
-
NotEqual = 5,
|
|
17
|
-
/** pass if the compare value is greater than or equal to the sample value. */
|
|
18
|
-
GreaterEqual = 6,
|
|
19
|
-
/** always pass. */
|
|
20
|
-
Always = 7
|
|
21
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Texture format enumeration.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum TextureFormat {
|
|
5
|
-
/** RGB format, 8 bits per channel. */
|
|
6
|
-
R8G8B8 = 0,
|
|
7
|
-
/** RGBA format, 8 bits per channel. */
|
|
8
|
-
R8G8B8A8 = 1,
|
|
9
|
-
/** RGBA format, 4 bits per channel. */
|
|
10
|
-
R4G4B4A4 = 2,
|
|
11
|
-
/** RGBA format, 5 bits in R channel, 5 bits in G channel, 5 bits in B channel, 1 bit in A channel. */
|
|
12
|
-
R5G5B5A1 = 3,
|
|
13
|
-
/** RGB format, 5 bits in R channel, 6 bits in G channel, 5 bits in B channel. */
|
|
14
|
-
R5G6B5 = 4,
|
|
15
|
-
/** RGBA format, 16 bits per channel. */
|
|
16
|
-
R16G16B16A16 = 7,
|
|
17
|
-
/** RGBA format, 32 bits per channel. */
|
|
18
|
-
R32G32B32A32 = 8,
|
|
19
|
-
/** RGBA unsigned integer format, 32 bits per channel. */
|
|
20
|
-
R32G32B32A32_UInt = 9,
|
|
21
|
-
/** RGB unsigned float format, 11 bits in R channel, 11 bits in G channel, 10 bits in B channel. */
|
|
22
|
-
R11G11B10_UFloat = 35,
|
|
23
|
-
/** R float format, 8 bits. */
|
|
24
|
-
R8 = 36,
|
|
25
|
-
/** RG float format, 8 bits per channel. */
|
|
26
|
-
R8G8 = 37,
|
|
27
|
-
/** RGB compressed format, 4 bits per pixel. */
|
|
28
|
-
BC1 = 10,
|
|
29
|
-
/** RGBA compressed format, 8 bits per pixel. */
|
|
30
|
-
BC3 = 11,
|
|
31
|
-
/** RGB(A) compressed format, 128 bits per 4x4 pixel block. */
|
|
32
|
-
BC7 = 12,
|
|
33
|
-
/** RGB HDR compressed format, 8 bits per pixel. */
|
|
34
|
-
BC6H = 100,
|
|
35
|
-
/** RGB compressed format, 4 bits per pixel. */
|
|
36
|
-
ETC1_RGB = 13,
|
|
37
|
-
/** RGB compressed format, 4 bits per pixel. */
|
|
38
|
-
ETC2_RGB = 14,
|
|
39
|
-
/** RGBA compressed format, 5 bits per pixel, 4 bit in RGB, 1 bit in A. */
|
|
40
|
-
ETC2_RGBA5 = 15,
|
|
41
|
-
/** RGB compressed format, 8 bits per pixel. */
|
|
42
|
-
ETC2_RGBA8 = 16,
|
|
43
|
-
/** RGB compressed format, 2 bits per pixel. */
|
|
44
|
-
PVRTC_RGB2 = 17,
|
|
45
|
-
/** RGBA compressed format, 2 bits per pixel. */
|
|
46
|
-
PVRTC_RGBA2 = 18,
|
|
47
|
-
/** RGB compressed format, 4 bits per pixel. */
|
|
48
|
-
PVRTC_RGB4 = 19,
|
|
49
|
-
/** RGBA compressed format, 4 bits per pixel. */
|
|
50
|
-
PVRTC_RGBA4 = 20,
|
|
51
|
-
/** RGB(A) compressed format, 128 bits per 4x4 pixel block. */
|
|
52
|
-
ASTC_4x4 = 21,
|
|
53
|
-
/** RGB(A) compressed format, 128 bits per 5x5 pixel block. */
|
|
54
|
-
ASTC_5x5 = 22,
|
|
55
|
-
/** RGB(A) compressed format, 128 bits per 6x6 pixel block. */
|
|
56
|
-
ASTC_6x6 = 23,
|
|
57
|
-
/** RGB(A) compressed format, 128 bits per 8x8 pixel block. */
|
|
58
|
-
ASTC_8x8 = 24,
|
|
59
|
-
/** RGB(A) compressed format, 128 bits per 10x10 pixel block. */
|
|
60
|
-
ASTC_10x10 = 25,
|
|
61
|
-
/** RGB(A) compressed format, 128 bits per 12x12 pixel block. */
|
|
62
|
-
ASTC_12x12 = 26,
|
|
63
|
-
/** Automatic depth format, engine will automatically select the supported precision. */
|
|
64
|
-
Depth = 27,
|
|
65
|
-
/** Render to stencil buffer. */
|
|
66
|
-
Stencil = 28,
|
|
67
|
-
/** Automatic depth stencil format, engine will automatically select the supported precision. */
|
|
68
|
-
DepthStencil = 29,
|
|
69
|
-
/** 16-bit depth format. */
|
|
70
|
-
Depth16 = 30,
|
|
71
|
-
/** 24-bit depth format. */
|
|
72
|
-
Depth24 = 31,
|
|
73
|
-
/** 32-bit depth format. */
|
|
74
|
-
Depth32 = 32,
|
|
75
|
-
/** 16-bit depth + 8-bit stencil format. */
|
|
76
|
-
Depth24Stencil8 = 33,
|
|
77
|
-
/** 32-bit depth + 8-bit stencil format. */
|
|
78
|
-
Depth32Stencil8 = 34,
|
|
79
|
-
/** @deprecated Use 'TextureFormat.R8' instead. */
|
|
80
|
-
Alpha8 = 5,
|
|
81
|
-
/** @deprecated Use 'TextureFormat.R8G8' instead. */
|
|
82
|
-
LuminanceAlpha = 6,
|
|
83
|
-
/** @deprecated Use `TextureFormat.BC1` instead. */
|
|
84
|
-
DXT1 = 10,
|
|
85
|
-
/** @deprecated Use `TextureFormat.BC3` instead. */
|
|
86
|
-
DXT5 = 11
|
|
87
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Texture usage.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum TextureUsage {
|
|
5
|
-
/** The content of the texture is intended to be specified once. */
|
|
6
|
-
Static = 0,
|
|
7
|
-
/** The content of the texture is intended to be updated frequently, with better performance. */
|
|
8
|
-
Dynamic = 1
|
|
9
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wrapping mode of the texture.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum TextureWrapMode {
|
|
5
|
-
/** Clamping mode. use the color of edge pixels beyond the texture boundary. */
|
|
6
|
-
Clamp = 0,
|
|
7
|
-
/** Repeating mode. tiling will be repeated if it exceeds the texture boundary. */
|
|
8
|
-
Repeat = 1,
|
|
9
|
-
/** Mirror repeat mode. tiling will be mirrored and repeated if it exceeds the texture boundary. */
|
|
10
|
-
Mirror = 2
|
|
11
|
-
}
|