@galacean/engine-core 0.0.0-experimental-animator-additive.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/main.js +24671 -0
- package/dist/main.js.map +1 -0
- package/dist/miniprogram.js +24671 -0
- package/dist/module.js +24554 -0
- package/dist/module.js.map +1 -0
- package/package.json +26 -0
- package/types/2d/assembler/IAssembler.d.ts +1 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +36 -0
- package/types/2d/atlas/types.d.ts +64 -0
- package/types/2d/data/RenderData2D.d.ts +1 -0
- package/types/2d/data/VertexData2D.d.ts +1 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDirtyFlag.d.ts +13 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +9 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteMaskLayer.d.ts +71 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +13 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +9 -0
- package/types/2d/sprite/Sprite.d.ts +97 -0
- package/types/2d/sprite/SpriteMask.d.ts +63 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +77 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderData.d.ts +1 -0
- package/types/2d/text/CharRenderDataPool.d.ts +1 -0
- package/types/2d/text/Font.d.ts +26 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +123 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +2 -0
- package/types/Background.d.ts +43 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +206 -0
- package/types/Canvas.d.ts +9 -0
- package/types/Component.d.ts +32 -0
- package/types/ComponentsDependencies.d.ts +17 -0
- package/types/ComponentsManager.d.ts +46 -0
- package/types/DisorderedArray.d.ts +18 -0
- package/types/Engine.d.ts +140 -0
- package/types/EngineSettings.d.ts +8 -0
- package/types/Entity.d.ts +151 -0
- package/types/Layer.d.ts +73 -0
- package/types/ListenerUpdateFlag.d.ts +12 -0
- package/types/Platform.d.ts +15 -0
- package/types/RenderPipeline/Basic2DBatcher.d.ts +20 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +66 -0
- package/types/RenderPipeline/ClassPool.d.ts +17 -0
- package/types/RenderPipeline/MeshRenderData.d.ts +15 -0
- package/types/RenderPipeline/MeshRenderElement.d.ts +17 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderData.d.ts +7 -0
- package/types/RenderPipeline/RenderElement.d.ts +11 -0
- package/types/RenderPipeline/RenderPass.d.ts +55 -0
- package/types/RenderPipeline/RenderQueue.d.ts +38 -0
- package/types/RenderPipeline/SpriteBatcher.d.ts +1 -0
- package/types/RenderPipeline/SpriteElement.d.ts +13 -0
- package/types/RenderPipeline/SpriteMaskBatcher.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskElement.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskManager.d.ts +1 -0
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +10 -0
- package/types/RenderPipeline/SpriteRenderData.d.ts +12 -0
- package/types/RenderPipeline/TextRenderData.d.ts +6 -0
- package/types/RenderPipeline/TextRenderElement.d.ts +6 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
- package/types/RenderPipeline/index.d.ts +4 -0
- package/types/Renderer.d.ts +119 -0
- package/types/Scene.d.ts +142 -0
- package/types/SceneManager.d.ts +28 -0
- package/types/Script.d.ts +118 -0
- package/types/SystemInfo.d.ts +14 -0
- package/types/Transform.d.ts +258 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +3 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +58 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +21 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +86 -0
- package/types/animation/AnimatorController.d.ts +32 -0
- package/types/animation/AnimatorControllerLayer.d.ts +18 -0
- package/types/animation/AnimatorState.d.ts +60 -0
- package/types/animation/AnimatorStateMachine.d.ts +37 -0
- package/types/animation/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/AnimatorStateTransition.d.ts +12 -0
- package/types/animation/AnimatorTransition.d.ts +14 -0
- package/types/animation/AnimatorTransitionBase.d.ts +10 -0
- package/types/animation/Keyframe.d.ts +19 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +12 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +10 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +8 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +13 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/StateMachineState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +21 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorPlayableObject.d.ts +23 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateInfo.d.ts +1 -0
- package/types/animation/internal/AnimatorStateMachineData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/CrossCurveData.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/Assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +56 -0
- package/types/asset/AssetType.d.ts +52 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IRefObject.d.ts +2 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +33 -0
- package/types/asset/Loader.d.ts +30 -0
- package/types/asset/RefObject.d.ts +27 -0
- package/types/asset/ReferResource.d.ts +27 -0
- package/types/asset/ResourceManager.d.ts +101 -0
- package/types/asset/request.d.ts +25 -0
- package/types/base/Constant.d.ts +110 -0
- package/types/base/EngineObject.d.ts +24 -0
- package/types/base/Event.d.ts +24 -0
- package/types/base/EventDispatcher.d.ts +79 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +41 -0
- package/types/base/Util.d.ts +14 -0
- package/types/base/index.d.ts +7 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +14 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/ColorSpace.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/env-probe/CubeProbe.d.ts +34 -0
- package/types/env-probe/Probe.d.ts +58 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/fog/EXP2Fog.d.ts +15 -0
- package/types/fog/Fog.d.ts +14 -0
- package/types/fog/LinearFog.d.ts +22 -0
- package/types/fog/index.d.ts +3 -0
- package/types/graphic/Buffer.d.ts +105 -0
- package/types/graphic/BufferUtil.d.ts +11 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +70 -0
- package/types/graphic/SubMesh.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +44 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +13 -0
- package/types/index.d.ts +53 -0
- package/types/input/InputManager.d.ts +67 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +5 -0
- package/types/input/interface/IInput.d.ts +18 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +25 -0
- package/types/input/pointer/PointerManager.d.ts +1 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +67 -0
- package/types/lighting/DirectLight.d.ts +21 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +48 -0
- package/types/lighting/LightManager.d.ts +5 -0
- package/types/lighting/PointLight.d.ts +18 -0
- package/types/lighting/SpotLight.d.ts +36 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +6 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +71 -0
- package/types/material/Material.d.ts +51 -0
- package/types/material/PBRBaseMaterial.d.ts +101 -0
- package/types/material/PBRMaterial.d.ts +36 -0
- package/types/material/PBRSpecularMaterial.d.ts +38 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +10 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +22 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +30 -0
- package/types/mesh/ModelMesh.d.ts +226 -0
- package/types/mesh/PrimitiveMesh.d.ts +86 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +16 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +62 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +8 -0
- package/types/particle/ParticleRenderer.d.ts +235 -0
- package/types/particle/index.d.ts +1 -0
- package/types/physics/CharacterController.d.ts +53 -0
- package/types/physics/Collider.d.ts +29 -0
- package/types/physics/DynamicCollider.d.ts +161 -0
- package/types/physics/HitResult.d.ts +15 -0
- package/types/physics/PhysicsManager.d.ts +95 -0
- package/types/physics/PhysicsMaterial.d.ts +37 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +10 -0
- package/types/physics/joint/FixedJoint.d.ts +3 -0
- package/types/physics/joint/HingeJoint.d.ts +57 -0
- package/types/physics/joint/Joint.d.ts +58 -0
- package/types/physics/joint/JointLimits.d.ts +15 -0
- package/types/physics/joint/JointMotor.d.ts +13 -0
- package/types/physics/joint/SpringJoint.d.ts +42 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +15 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +26 -0
- package/types/physics/shape/ColliderShape.d.ts +51 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +7 -0
- package/types/physics/shape/SphereColliderShape.d.ts +13 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +72 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +10 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +41 -0
- package/types/shader/ShaderPass.d.ts +9 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +13 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +19 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +13 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +12 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +20 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shaderlib/ShaderFactory.d.ts +17 -0
- package/types/shaderlib/ShaderLib.d.ts +57 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/pbr/index.d.ts +9 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +47 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowMode.d.ts +13 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +14 -0
- package/types/sky/SkyBoxMaterial.d.ts +25 -0
- package/types/sky/index.d.ts +2 -0
- package/types/texture/RenderTarget.d.ts +95 -0
- package/types/texture/Texture.d.ts +77 -0
- package/types/texture/Texture2D.d.ts +68 -0
- package/types/texture/Texture2DArray.d.ts +81 -0
- package/types/texture/TextureCube.d.ts +70 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +21 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +69 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +11 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +40 -0
- package/types/trail/index.d.ts +2 -0
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
*/
|
|
22
|
+
constructor(engine: Engine, width: number, height: number, length: number, format?: TextureFormat, mipmap?: boolean);
|
|
23
|
+
/**
|
|
24
|
+
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
25
|
+
* @remarks If it is the WebGL1.0 platform and the texture format is compressed, the first upload must be filled with textures.
|
|
26
|
+
* @param offsetIndex - The texture array element offset index
|
|
27
|
+
* @param colorBuffer - Color buffer data
|
|
28
|
+
* @param mipLevel - Texture mipmapping level
|
|
29
|
+
* @param x - X coordinate of area start
|
|
30
|
+
* @param y - Y coordinate of area start
|
|
31
|
+
* @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)
|
|
32
|
+
* @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)
|
|
33
|
+
* @param length - Data length. if it's empty, length is the length of Texture2DArray.length
|
|
34
|
+
*/
|
|
35
|
+
setPixelBuffer(offsetIndex: number, colorBuffer: ArrayBufferView, mipLevel?: number, x?: number, y?: number, width?: number, height?: number, length?: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
38
|
+
* @param elementIndex - The texture array element index
|
|
39
|
+
* @param imageSource - The source of texture
|
|
40
|
+
* @param mipLevel - Texture mipmapping level
|
|
41
|
+
* @param flipY - Whether to flip the Y axis
|
|
42
|
+
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
43
|
+
* @param x - X coordinate of area start
|
|
44
|
+
* @param y - Y coordinate of area start
|
|
45
|
+
*/
|
|
46
|
+
setImageSource(elementIndex: number, imageSource: TexImageSource | OffscreenCanvas, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* Get pixel color buffer.
|
|
49
|
+
* @param elementIndex - The texture array element index
|
|
50
|
+
* @param out - Color buffer
|
|
51
|
+
*/
|
|
52
|
+
getPixelBuffer(elementIndex: number, out: ArrayBufferView): void;
|
|
53
|
+
/**
|
|
54
|
+
* Get the pixel color buffer according to the specified mip level.
|
|
55
|
+
* @param elementIndex - The texture array element index
|
|
56
|
+
* @param mipLevel - Tet mip level want to get
|
|
57
|
+
* @param out - Color buffer
|
|
58
|
+
*/
|
|
59
|
+
getPixelBuffer(elementIndex: number, mipLevel: number, out: ArrayBufferView): void;
|
|
60
|
+
/**
|
|
61
|
+
* Get the pixel color buffer according to the specified area.
|
|
62
|
+
* @param elementIndex - The texture array element index
|
|
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 out - Color buffer
|
|
68
|
+
*/
|
|
69
|
+
getPixelBuffer(elementIndex: number, x: number, y: number, width: number, height: number, out: ArrayBufferView): void;
|
|
70
|
+
/**
|
|
71
|
+
* Get the pixel color buffer according to the specified area and mip level.
|
|
72
|
+
* @param elementIndex - The texture array element index
|
|
73
|
+
* @param x - X coordinate of area start
|
|
74
|
+
* @param y - Y coordinate of area start
|
|
75
|
+
* @param width - Area width
|
|
76
|
+
* @param height - Area height
|
|
77
|
+
* @param mipLevel - Tet mip level want to get
|
|
78
|
+
* @param out - Color buffer
|
|
79
|
+
*/
|
|
80
|
+
getPixelBuffer(elementIndex: number, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
81
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
*/
|
|
16
|
+
constructor(engine: Engine, size: number, format?: TextureFormat, mipmap?: boolean);
|
|
17
|
+
/**
|
|
18
|
+
* Setting pixels data through cube face,color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
19
|
+
* @remarks When compressed texture is in WebGL1, the texture must be filled first before writing the sub-region
|
|
20
|
+
* @param face - Cube face
|
|
21
|
+
* @param colorBuffer - Color buffer data
|
|
22
|
+
* @param mipLevel - Texture mipmapping level
|
|
23
|
+
* @param x - X coordinate of area start
|
|
24
|
+
* @param y - Y coordinate of area start
|
|
25
|
+
* @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)
|
|
26
|
+
* @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)
|
|
27
|
+
*/
|
|
28
|
+
setPixelBuffer(face: TextureCubeFace, colorBuffer: ArrayBufferView, mipLevel?: number, x?: number, y?: number, width?: number, height?: number): void;
|
|
29
|
+
/**
|
|
30
|
+
* Setting pixels data through cube face, TexImageSource, designated area and texture mipmapping level.
|
|
31
|
+
* @param face - Cube face
|
|
32
|
+
* @param imageSource - The source of texture
|
|
33
|
+
* @param mipLevel - Texture mipmapping level
|
|
34
|
+
* @param flipY - Whether to flip the Y axis
|
|
35
|
+
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
36
|
+
* @param x - X coordinate of area start
|
|
37
|
+
* @param y - Y coordinate of area start
|
|
38
|
+
*/
|
|
39
|
+
setImageSource(face: TextureCubeFace, imageSource: TexImageSource | OffscreenCanvas, mipLevel?: number, flipY?: boolean, premultiplyAlpha?: boolean, x?: number, y?: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* Get pixel color buffer.
|
|
42
|
+
* @param out - Color buffer
|
|
43
|
+
*/
|
|
44
|
+
getPixelBuffer(face: TextureCubeFace, out: ArrayBufferView): void;
|
|
45
|
+
/**
|
|
46
|
+
* Get the pixel color buffer according to the specified mip level.
|
|
47
|
+
* @param mipLevel - Tet mip level want to get
|
|
48
|
+
* @param out - Color buffer
|
|
49
|
+
*/
|
|
50
|
+
getPixelBuffer(face: TextureCubeFace, mipLevel: number, out: ArrayBufferView): void;
|
|
51
|
+
/**
|
|
52
|
+
* Get the pixel color buffer according to the specified area.
|
|
53
|
+
* @param x - X coordinate of area start
|
|
54
|
+
* @param y - Y coordinate of area start
|
|
55
|
+
* @param width - Area width
|
|
56
|
+
* @param height - Area height
|
|
57
|
+
* @param out - Color buffer
|
|
58
|
+
*/
|
|
59
|
+
getPixelBuffer(face: TextureCubeFace, x: number, y: number, width: number, height: number, out: ArrayBufferView): void;
|
|
60
|
+
/**
|
|
61
|
+
* Get the pixel color buffer according to the specified area and mip level.
|
|
62
|
+
* @param x - X coordinate of area start
|
|
63
|
+
* @param y - Y coordinate of area start
|
|
64
|
+
* @param width - Area width
|
|
65
|
+
* @param height - Area height
|
|
66
|
+
* @param mipLevel - Tet mip level want to get
|
|
67
|
+
* @param out - Color buffer
|
|
68
|
+
*/
|
|
69
|
+
getPixelBuffer(face: TextureCubeFace, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Render buffer depth format enumeration.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum RenderBufferDepthFormat {
|
|
5
|
+
/** Render to depth buffer,engine will automatically select the supported precision. */
|
|
6
|
+
Depth = 0,
|
|
7
|
+
/** Render to depth stencil buffer, engine will automatically select the supported precision. */
|
|
8
|
+
DepthStencil = 1,
|
|
9
|
+
/** Render to stencil buffer. */
|
|
10
|
+
Stencil = 2,
|
|
11
|
+
/** Force 16-bit depth buffer. */
|
|
12
|
+
Depth16 = 3,
|
|
13
|
+
/** Force 24-bit depth buffer. */
|
|
14
|
+
Depth24 = 4,
|
|
15
|
+
/** Force 32-bit depth buffer. */
|
|
16
|
+
Depth32 = 5,
|
|
17
|
+
/** Force 16-bit depth + 8-bit stencil buffer. */
|
|
18
|
+
Depth24Stencil8 = 6,
|
|
19
|
+
/** Force 32-bit depth + 8-bit stencil buffer. */
|
|
20
|
+
Depth32Stencil8 = 7
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
/** Transparent format,8 bits. */
|
|
16
|
+
Alpha8 = 5,
|
|
17
|
+
/** Luminance/alpha in RGB channel, alpha in A channel. */
|
|
18
|
+
LuminanceAlpha = 6,
|
|
19
|
+
/** RGBA format,16 bits per channel. */
|
|
20
|
+
R16G16B16A16 = 7,
|
|
21
|
+
/** RGBA format,32 bits per channel. */
|
|
22
|
+
R32G32B32A32 = 8,
|
|
23
|
+
/** RGB compressed format。*/
|
|
24
|
+
DXT1 = 9,
|
|
25
|
+
/** RGBA compressed format。*/
|
|
26
|
+
DXT5 = 10,
|
|
27
|
+
/** RGB compressed format,4 bits per pixel。*/
|
|
28
|
+
ETC1_RGB = 11,
|
|
29
|
+
/** RGB compressed format,4 bits per pixel。*/
|
|
30
|
+
ETC2_RGB = 12,
|
|
31
|
+
/** RGBA compressed format,5 bits per pixel,4 bit in RGB, 1 bit in A. */
|
|
32
|
+
ETC2_RGBA5 = 13,
|
|
33
|
+
/** RGB compressed format,8 bits per pixel. */
|
|
34
|
+
ETC2_RGBA8 = 14,
|
|
35
|
+
/** RGB compressed format,2 bits per pixel. */
|
|
36
|
+
PVRTC_RGB2 = 15,
|
|
37
|
+
/** RGBA compressed format,2 bits per pixel. */
|
|
38
|
+
PVRTC_RGBA2 = 16,
|
|
39
|
+
/** RGB compressed format,4 bits per pixel. */
|
|
40
|
+
PVRTC_RGB4 = 17,
|
|
41
|
+
/** RGBA compressed format,4 bits per pixel. */
|
|
42
|
+
PVRTC_RGBA4 = 18,
|
|
43
|
+
/** RGB(A) compressed format,128 bits per 4x4 pixel block. */
|
|
44
|
+
ASTC_4x4 = 19,
|
|
45
|
+
/** RGB(A) compressed format,128 bits per 5x5 pixel block. */
|
|
46
|
+
ASTC_5x5 = 20,
|
|
47
|
+
/** RGB(A) compressed format,128 bits per 6x6 pixel block. */
|
|
48
|
+
ASTC_6x6 = 21,
|
|
49
|
+
/** RGB(A) compressed format,128 bits per 8x8 pixel block. */
|
|
50
|
+
ASTC_8x8 = 22,
|
|
51
|
+
/** RGB(A) compressed format,128 bits per 10x10 pixel block. */
|
|
52
|
+
ASTC_10x10 = 23,
|
|
53
|
+
/** RGB(A) compressed format,128 bits per 12x12 pixel block. */
|
|
54
|
+
ASTC_12x12 = 24,
|
|
55
|
+
/** Automatic depth format,engine will automatically select the supported precision. */
|
|
56
|
+
Depth = 25,
|
|
57
|
+
/** Automatic depth setncil format, engine will automatically select the supported precision. */
|
|
58
|
+
DepthStencil = 26,
|
|
59
|
+
/** 16-bit depth format. */
|
|
60
|
+
Depth16 = 27,
|
|
61
|
+
/** 24-bit depth format. */
|
|
62
|
+
Depth24 = 28,
|
|
63
|
+
/** 32-bit depth format. */
|
|
64
|
+
Depth32 = 29,
|
|
65
|
+
/** 16-bit depth + 8-bit stencil format. */
|
|
66
|
+
Depth24Stencil8 = 30,
|
|
67
|
+
/** 32-bit depth + 8-bit stencil format. */
|
|
68
|
+
Depth32Stencil8 = 31
|
|
69
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { RenderBufferDepthFormat } from "./enums/RenderBufferDepthFormat";
|
|
2
|
+
export { TextureCubeFace } from "./enums/TextureCubeFace";
|
|
3
|
+
export { TextureDepthCompareFunction } from "./enums/TextureDepthCompareFunction";
|
|
4
|
+
export { TextureFilterMode } from "./enums/TextureFilterMode";
|
|
5
|
+
export { TextureFormat } from "./enums/TextureFormat";
|
|
6
|
+
export { TextureWrapMode } from "./enums/TextureWrapMode";
|
|
7
|
+
export { RenderTarget } from "./RenderTarget";
|
|
8
|
+
export { Texture } from "./Texture";
|
|
9
|
+
export { Texture2D } from "./Texture2D";
|
|
10
|
+
export { Texture2DArray } from "./Texture2DArray";
|
|
11
|
+
export { TextureCube } from "./TextureCube";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Entity } from "../Entity";
|
|
2
|
+
import { MeshRenderer } from "../mesh/MeshRenderer";
|
|
3
|
+
import { RenderContext } from "../RenderPipeline/RenderContext";
|
|
4
|
+
import { Texture2D } from "../texture";
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
export declare class TrailRenderer extends MeshRenderer {
|
|
9
|
+
private _vertexStride;
|
|
10
|
+
private _vertices;
|
|
11
|
+
private _vertexBuffer;
|
|
12
|
+
private _stroke;
|
|
13
|
+
private _minSeg;
|
|
14
|
+
private _lifetime;
|
|
15
|
+
private _maxPointNum;
|
|
16
|
+
private _points;
|
|
17
|
+
private _pointStates;
|
|
18
|
+
private _strapPoints;
|
|
19
|
+
private _curPointNum;
|
|
20
|
+
private _prePointsNum;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
*/
|
|
24
|
+
constructor(entity: Entity, props: any);
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* Set trail texture.
|
|
28
|
+
* @param texture
|
|
29
|
+
*/
|
|
30
|
+
setTexture(texture: Texture2D): void;
|
|
31
|
+
/**
|
|
32
|
+
* @override
|
|
33
|
+
*/
|
|
34
|
+
protected _render(context: RenderContext): void;
|
|
35
|
+
private _initGeometry;
|
|
36
|
+
private _updateStrapVertices;
|
|
37
|
+
private _updateStrapCoords;
|
|
38
|
+
private _projectOnVector;
|
|
39
|
+
private _projectOnPlane;
|
|
40
|
+
}
|