@galacean/engine-core 1.6.8 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +37541 -0
- package/dist/main.js.map +1 -0
- package/dist/module.js +37259 -0
- package/dist/module.js.map +1 -0
- package/package.json +3 -3
- package/types/2d/assembler/ISpriteAssembler.d.ts +11 -0
- package/types/2d/assembler/ISpriteRenderer.d.ts +16 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +13 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +15 -0
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +17 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +32 -0
- package/types/2d/atlas/types.d.ts +69 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +11 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +23 -0
- package/types/2d/enums/SpriteTileMode.d.ts +11 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +16 -0
- package/types/2d/sprite/Sprite.d.ts +106 -0
- package/types/2d/sprite/SpriteMask.d.ts +70 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +95 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderInfo.d.ts +1 -0
- package/types/2d/text/Font.d.ts +21 -0
- package/types/2d/text/ITextRenderer.d.ts +8 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +122 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +5 -0
- package/types/Background.d.ts +53 -0
- package/types/BasicResources.d.ts +2 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +321 -0
- package/types/Canvas.d.ts +19 -0
- package/types/Component.d.ts +27 -0
- package/types/ComponentsDependencies.d.ts +22 -0
- package/types/ComponentsManager.d.ts +52 -0
- package/types/Engine.d.ts +150 -0
- package/types/EngineSettings.d.ts +5 -0
- package/types/Entity.d.ts +170 -0
- package/types/Layer.d.ts +73 -0
- package/types/Platform.d.ts +15 -0
- package/types/Polyfill.d.ts +1 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +55 -0
- package/types/RenderPipeline/BatchUtils.d.ts +1 -0
- package/types/RenderPipeline/BatcherManager.d.ts +1 -0
- package/types/RenderPipeline/Blitter.d.ts +28 -0
- package/types/RenderPipeline/CullingResults.d.ts +1 -0
- package/types/RenderPipeline/DepthOnlyPass.d.ts +1 -0
- package/types/RenderPipeline/MaskManager.d.ts +1 -0
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +1 -0
- package/types/RenderPipeline/PipelinePass.d.ts +16 -0
- package/types/RenderPipeline/PipelineUtils.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +1 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderElement.d.ts +12 -0
- package/types/RenderPipeline/RenderQueue.d.ts +1 -0
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +1 -0
- package/types/RenderPipeline/SubRenderElement.d.ts +22 -0
- package/types/RenderPipeline/VertexArea.d.ts +1 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +11 -0
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +1 -0
- package/types/RenderPipeline/index.d.ts +5 -0
- package/types/Renderer.d.ts +135 -0
- package/types/Scene.d.ts +183 -0
- package/types/SceneManager.d.ts +51 -0
- package/types/Script.d.ts +144 -0
- package/types/SystemInfo.d.ts +27 -0
- package/types/Transform.d.ts +304 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +37 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +87 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +30 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +154 -0
- package/types/animation/AnimatorCondition.d.ts +13 -0
- package/types/animation/AnimatorController.d.ts +72 -0
- package/types/animation/AnimatorControllerLayer.d.ts +21 -0
- package/types/animation/AnimatorControllerParameter.d.ts +14 -0
- package/types/animation/AnimatorLayerMask.d.ts +45 -0
- package/types/animation/AnimatorState.d.ts +69 -0
- package/types/animation/AnimatorStateMachine.d.ts +85 -0
- package/types/animation/AnimatorStateTransition.d.ts +59 -0
- package/types/animation/AnimatorStateTransitionCollection.d.ts +1 -0
- package/types/animation/Keyframe.d.ts +20 -0
- package/types/animation/LayerPathMask.d.ts +16 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +11 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +13 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +17 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +15 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +25 -0
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +1 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +88 -0
- package/types/asset/AssetType.d.ts +66 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +40 -0
- package/types/asset/Loader.d.ts +37 -0
- package/types/asset/ReferResource.d.ts +23 -0
- package/types/asset/ResourceManager.d.ts +121 -0
- package/types/asset/request.d.ts +36 -0
- package/types/audio/AudioClip.d.ts +24 -0
- package/types/audio/AudioManager.d.ts +1 -0
- package/types/audio/AudioSource.d.ts +72 -0
- package/types/audio/index.d.ts +3 -0
- package/types/base/Constant.d.ts +116 -0
- package/types/base/EngineObject.d.ts +25 -0
- package/types/base/EventDispatcher.d.ts +66 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +44 -0
- package/types/base/index.d.ts +5 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +17 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/ActiveChangeFlag.d.ts +6 -0
- package/types/enums/AntiAliasing.d.ts +7 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/CameraModifyFlags.d.ts +17 -0
- package/types/enums/CameraType.d.ts +1 -0
- package/types/enums/DepthTextureMode.d.ts +7 -0
- package/types/enums/Downsampling.d.ts +11 -0
- package/types/enums/EntityModifyFlags.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/enums/MSAASamples.d.ts +13 -0
- package/types/enums/ReplacementFailureStrategy.d.ts +9 -0
- package/types/enums/SpriteMaskLayer.d.ts +73 -0
- package/types/env-probe/CubeProbe.d.ts +27 -0
- package/types/env-probe/Probe.d.ts +52 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/graphic/Buffer.d.ts +114 -0
- package/types/graphic/BufferUtil.d.ts +12 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +58 -0
- package/types/graphic/Primitive.d.ts +1 -0
- package/types/graphic/SubMesh.d.ts +8 -0
- package/types/graphic/SubPrimitive.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +48 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +15 -0
- package/types/index.d.ts +68 -0
- package/types/input/InputManager.d.ts +65 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +8 -0
- package/types/input/interface/IInput.d.ts +10 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +31 -0
- package/types/input/pointer/PointerEventData.d.ts +12 -0
- package/types/input/pointer/PointerManager.d.ts +9 -0
- package/types/input/pointer/emitter/IHitResult.d.ts +1 -0
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +1 -0
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +30 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +70 -0
- package/types/lighting/DirectLight.d.ts +32 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +45 -0
- package/types/lighting/LightManager.d.ts +12 -0
- package/types/lighting/PointLight.d.ts +26 -0
- package/types/lighting/SpotLight.d.ts +45 -0
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +79 -0
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +1 -0
- package/types/lighting/ambientOcclusion/index.d.ts +2 -0
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +11 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +7 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +68 -0
- package/types/material/Material.d.ts +52 -0
- package/types/material/PBRMaterial.d.ts +311 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/Refraction.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +9 -0
- package/types/material/utils/PrefilteredDFG.d.ts +7 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +44 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +25 -0
- package/types/mesh/ModelMesh.d.ts +254 -0
- package/types/mesh/PrimitiveMesh.d.ts +112 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +35 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +50 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +9 -0
- package/types/particle/ParticleBufferUtils.d.ts +1 -0
- package/types/particle/ParticleGenerator.d.ts +94 -0
- package/types/particle/ParticleMaterial.d.ts +38 -0
- package/types/particle/ParticleRenderer.d.ts +47 -0
- package/types/particle/enums/ParticleCurveMode.d.ts +9 -0
- package/types/particle/enums/ParticleGradientMode.d.ts +9 -0
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +1 -0
- package/types/particle/enums/ParticleRenderMode.d.ts +17 -0
- package/types/particle/enums/ParticleScaleMode.d.ts +11 -0
- package/types/particle/enums/ParticleSimulationSpace.d.ts +9 -0
- package/types/particle/enums/ParticleStopMode.d.ts +6 -0
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +1 -0
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +5 -0
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +1 -0
- package/types/particle/index.d.ts +22 -0
- package/types/particle/modules/Burst.d.ts +14 -0
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +20 -0
- package/types/particle/modules/EmissionModule.d.ts +48 -0
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +51 -0
- package/types/particle/modules/MainModule.d.ts +104 -0
- package/types/particle/modules/ParticleCompositeCurve.d.ts +81 -0
- package/types/particle/modules/ParticleCompositeGradient.d.ts +55 -0
- package/types/particle/modules/ParticleCurve.d.ts +63 -0
- package/types/particle/modules/ParticleGeneratorModule.d.ts +17 -0
- package/types/particle/modules/ParticleGradient.d.ts +114 -0
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +34 -0
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +52 -0
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +39 -0
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +54 -0
- package/types/particle/modules/shape/BaseShape.d.ts +22 -0
- package/types/particle/modules/shape/BoxShape.d.ts +17 -0
- package/types/particle/modules/shape/CircleShape.d.ts +35 -0
- package/types/particle/modules/shape/ConeShape.d.ts +45 -0
- package/types/particle/modules/shape/HemisphereShape.d.ts +14 -0
- package/types/particle/modules/shape/MeshShape.d.ts +21 -0
- package/types/particle/modules/shape/ShapeUtils.d.ts +1 -0
- package/types/particle/modules/shape/SphereShape.d.ts +14 -0
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +9 -0
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +17 -0
- package/types/particle/modules/shape/index.d.ts +8 -0
- package/types/physics/CharacterController.d.ts +51 -0
- package/types/physics/Collider.d.ts +43 -0
- package/types/physics/Collision.d.ts +22 -0
- package/types/physics/ContactPoint.d.ts +14 -0
- package/types/physics/DynamicCollider.d.ts +192 -0
- package/types/physics/HitResult.d.ts +18 -0
- package/types/physics/PhysicsMaterial.d.ts +42 -0
- package/types/physics/PhysicsScene.d.ts +276 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +1 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +12 -0
- package/types/physics/joint/FixedJoint.d.ts +4 -0
- package/types/physics/joint/HingeJoint.d.ts +61 -0
- package/types/physics/joint/Joint.d.ts +81 -0
- package/types/physics/joint/JointLimits.d.ts +39 -0
- package/types/physics/joint/JointMotor.d.ts +32 -0
- package/types/physics/joint/SpringJoint.d.ts +38 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +16 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +27 -0
- package/types/physics/shape/ColliderShape.d.ts +61 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +9 -0
- package/types/physics/shape/SphereColliderShape.d.ts +14 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/postProcess/FinalPass.d.ts +1 -0
- package/types/postProcess/PostProcess.d.ts +64 -0
- package/types/postProcess/PostProcessEffect.d.ts +26 -0
- package/types/postProcess/PostProcessEffectParameter.d.ts +119 -0
- package/types/postProcess/PostProcessManager.d.ts +38 -0
- package/types/postProcess/PostProcessPass.d.ts +50 -0
- package/types/postProcess/PostProcessUberPass.d.ts +25 -0
- package/types/postProcess/effects/BloomEffect.d.ts +50 -0
- package/types/postProcess/effects/TonemappingEffect.d.ts +25 -0
- package/types/postProcess/effects/index.d.ts +2 -0
- package/types/postProcess/index.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +7 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +119 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +26 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +46 -0
- package/types/shader/ShaderPass.d.ts +25 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +20 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +18 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/RenderStateElementKey.d.ts +60 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +15 -0
- package/types/shader/enums/ShaderLanguage.d.ts +9 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +19 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +21 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shader/state/index.d.ts +6 -0
- package/types/shaderlib/ShaderFactory.d.ts +20 -0
- package/types/shaderlib/ShaderLib.d.ts +73 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/particle/index.d.ts +15 -0
- package/types/shaderlib/pbr/index.d.ts +11 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +45 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +22 -0
- package/types/sky/SkyBoxMaterial.d.ts +43 -0
- package/types/sky/SkyProceduralMaterial.d.ts +72 -0
- package/types/sky/index.d.ts +3 -0
- package/types/texture/RenderTarget.d.ts +91 -0
- package/types/texture/Texture.d.ts +87 -0
- package/types/texture/Texture2D.d.ts +71 -0
- package/types/texture/Texture2DArray.d.ts +82 -0
- package/types/texture/TextureCube.d.ts +71 -0
- package/types/texture/TextureUtils.d.ts +1 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +23 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +87 -0
- package/types/texture/enums/TextureUsage.d.ts +9 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +13 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +35 -0
- package/types/trail/index.d.ts +2 -0
- package/types/ui/IUICanvas.d.ts +1 -0
- package/types/ui/UIUtils.d.ts +12 -0
- package/types/utils/ClearableObjectPool.d.ts +16 -0
- package/types/utils/DisorderedArray.d.ts +70 -0
- package/types/utils/ObjectPool.d.ts +16 -0
- package/types/utils/ReturnableObjectPool.d.ts +16 -0
- package/types/utils/SafeLoopArray.d.ts +46 -0
- package/types/utils/index.d.ts +4 -0
- package/types/xr/XRManager.d.ts +5 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare enum RenderStateElementKey {
|
|
2
|
+
/** Blend state enabled for target 0 key. */
|
|
3
|
+
BlendStateEnabled0 = 0,
|
|
4
|
+
/** Blend state color blend operation for target 0 key. */
|
|
5
|
+
BlendStateColorBlendOperation0 = 1,
|
|
6
|
+
/** Blend state alpha blend operation for target 0 key. */
|
|
7
|
+
BlendStateAlphaBlendOperation0 = 2,
|
|
8
|
+
/** Blend state source color blend factor for target 0 key. */
|
|
9
|
+
BlendStateSourceColorBlendFactor0 = 3,
|
|
10
|
+
/** Blend state source alpha blend factor for target 0 key. */
|
|
11
|
+
BlendStateSourceAlphaBlendFactor0 = 4,
|
|
12
|
+
/** Blend state destination color blend factor for target 0 key. */
|
|
13
|
+
BlendStateDestinationColorBlendFactor0 = 5,
|
|
14
|
+
/** Blend state destination alpha blend factor for target 0 key. */
|
|
15
|
+
BlendStateDestinationAlphaBlendFactor0 = 6,
|
|
16
|
+
/** Blend state color write mask for target 0 key. */
|
|
17
|
+
BlendStateColorWriteMask0 = 7,
|
|
18
|
+
/** Blend state blend color key. */
|
|
19
|
+
BlendStateBlendColor = 8,
|
|
20
|
+
/** Blend state alpha to coverage key. */
|
|
21
|
+
BlendStateAlphaToCoverage = 9,
|
|
22
|
+
/** Depth state enabled key. */
|
|
23
|
+
DepthStateEnabled = 10,
|
|
24
|
+
/** Depth state write enabled key. */
|
|
25
|
+
DepthStateWriteEnabled = 11,
|
|
26
|
+
/** Depth state compare function key. */
|
|
27
|
+
DepthStateCompareFunction = 12,
|
|
28
|
+
/** Stencil state enabled key. */
|
|
29
|
+
StencilStateEnabled = 13,
|
|
30
|
+
/** Stencil state reference value key. */
|
|
31
|
+
StencilStateReferenceValue = 14,
|
|
32
|
+
/** Stencil state read mask key. */
|
|
33
|
+
StencilStateMask = 15,
|
|
34
|
+
/** Stencil state write mask key. */
|
|
35
|
+
StencilStateWriteMask = 16,
|
|
36
|
+
/** Stencil state compare function front key. */
|
|
37
|
+
StencilStateCompareFunctionFront = 17,
|
|
38
|
+
/** Stencil state compare function back key. */
|
|
39
|
+
StencilStateCompareFunctionBack = 18,
|
|
40
|
+
/** Stencil state pass operation front key. */
|
|
41
|
+
StencilStatePassOperationFront = 19,
|
|
42
|
+
/** Stencil state pass operation back key. */
|
|
43
|
+
StencilStatePassOperationBack = 20,
|
|
44
|
+
/** Stencil state fail operation front key. */
|
|
45
|
+
StencilStateFailOperationFront = 21,
|
|
46
|
+
/** Stencil state fail operation back key. */
|
|
47
|
+
StencilStateFailOperationBack = 22,
|
|
48
|
+
/** Stencil state z fail operation front key. */
|
|
49
|
+
StencilStateZFailOperationFront = 23,
|
|
50
|
+
/** Stencil state z fail operation back key. */
|
|
51
|
+
StencilStateZFailOperationBack = 24,
|
|
52
|
+
/** Raster state fill mode key. */
|
|
53
|
+
RasterStateCullMode = 25,
|
|
54
|
+
/** Raster state cull mode key. */
|
|
55
|
+
RasterStateDepthBias = 26,
|
|
56
|
+
/** Raster state depth bias key. */
|
|
57
|
+
RasterStateSlopeScaledDepthBias = 27,
|
|
58
|
+
/** Render queue type key. */
|
|
59
|
+
RenderQueueType = 28
|
|
60
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shader data grouping.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ShaderDataGroup {
|
|
5
|
+
/** Scene group. */
|
|
6
|
+
Scene = 0,
|
|
7
|
+
/** Camera group. */
|
|
8
|
+
Camera = 1,
|
|
9
|
+
/** Renderer group. */
|
|
10
|
+
Renderer = 2,
|
|
11
|
+
/** Material group. */
|
|
12
|
+
Material = 3,
|
|
13
|
+
/** Render element group. */
|
|
14
|
+
RenderElement = 4
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shader Property type.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ShaderPropertyType {
|
|
5
|
+
/** Float type. */
|
|
6
|
+
Float = 0,
|
|
7
|
+
/** Int type. */
|
|
8
|
+
Int = 1,
|
|
9
|
+
/** Vector2 type. */
|
|
10
|
+
Vector2 = 2,
|
|
11
|
+
/** Vector3 type. */
|
|
12
|
+
Vector3 = 3,
|
|
13
|
+
/** Vector4 type. */
|
|
14
|
+
Vector4 = 4,
|
|
15
|
+
/** Matrix type. */
|
|
16
|
+
Matrix = 5,
|
|
17
|
+
/** Color type. */
|
|
18
|
+
Color = 6,
|
|
19
|
+
/** Texture type. */
|
|
20
|
+
Texture = 7,
|
|
21
|
+
/** Float array type. */
|
|
22
|
+
FloatArray = 8,
|
|
23
|
+
/** Int array type. */
|
|
24
|
+
IntArray = 9,
|
|
25
|
+
/** Texture array type. */
|
|
26
|
+
TextureArray = 10
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stencil operation mode.
|
|
3
|
+
* @remarks sets the front and/or back-facing stencil test actions.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum StencilOperation {
|
|
6
|
+
/** Keeps the current value. */
|
|
7
|
+
Keep = 0,
|
|
8
|
+
/** Sets the stencil buffer value to 0. */
|
|
9
|
+
Zero = 1,
|
|
10
|
+
/** Sets the stencil buffer value to the reference value. */
|
|
11
|
+
Replace = 2,
|
|
12
|
+
/** Increments the current stencil buffer value. Clamps to the maximum representable unsigned value. */
|
|
13
|
+
IncrementSaturate = 3,
|
|
14
|
+
/** Decrements the current stencil buffer value. Clamps to 0. */
|
|
15
|
+
DecrementSaturate = 4,
|
|
16
|
+
/** Inverts the current stencil buffer value bitwise. */
|
|
17
|
+
Invert = 5,
|
|
18
|
+
/** Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing the maximum representable unsigned value. */
|
|
19
|
+
IncrementWrap = 6,
|
|
20
|
+
/** Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable unsigned value when decrementing a stencil buffer value of 0. */
|
|
21
|
+
DecrementWrap = 7
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { BlendFactor } from "./enums/BlendFactor";
|
|
2
|
+
export { BlendOperation } from "./enums/BlendOperation";
|
|
3
|
+
export { ColorWriteMask } from "./enums/ColorWriteMask";
|
|
4
|
+
export { CompareFunction } from "./enums/CompareFunction";
|
|
5
|
+
export { CullMode } from "./enums/CullMode";
|
|
6
|
+
export { RenderQueueType } from "./enums/RenderQueueType";
|
|
7
|
+
export { RenderStateElementKey } from "./enums/RenderStateElementKey";
|
|
8
|
+
export { ShaderDataGroup } from "./enums/ShaderDataGroup";
|
|
9
|
+
export { ShaderLanguage } from "./enums/ShaderLanguage";
|
|
10
|
+
export { ShaderPropertyType } from "./enums/ShaderPropertyType";
|
|
11
|
+
export { StencilOperation } from "./enums/StencilOperation";
|
|
12
|
+
export { Shader } from "./Shader";
|
|
13
|
+
export { ShaderData } from "./ShaderData";
|
|
14
|
+
export { ShaderMacro } from "./ShaderMacro";
|
|
15
|
+
export { ShaderPass } from "./ShaderPass";
|
|
16
|
+
export { ShaderProperty } from "./ShaderProperty";
|
|
17
|
+
export { ShaderTagKey } from "./ShaderTagKey";
|
|
18
|
+
export * from "./state";
|
|
19
|
+
export { SubShader } from "./SubShader";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Color } from "@galacean/engine-math";
|
|
2
|
+
import { RenderTargetBlendState } from "./RenderTargetBlendState";
|
|
3
|
+
/**
|
|
4
|
+
* Blend state.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BlendState {
|
|
7
|
+
private static _getGLBlendFactor;
|
|
8
|
+
private static _getGLBlendOperation;
|
|
9
|
+
/** The blend state of the render target. */
|
|
10
|
+
readonly targetBlendState: RenderTargetBlendState;
|
|
11
|
+
/** Constant blend color. */
|
|
12
|
+
readonly blendColor: Color;
|
|
13
|
+
/** Whether to use (Alpha-to-Coverage) technology. */
|
|
14
|
+
alphaToCoverage: boolean;
|
|
15
|
+
private _platformApply;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CompareFunction } from "../enums/CompareFunction";
|
|
2
|
+
/**
|
|
3
|
+
* Depth state.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DepthState {
|
|
6
|
+
private static _getGLCompareFunction;
|
|
7
|
+
/** Whether to enable the depth test. */
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
/** Depth comparison function. */
|
|
10
|
+
compareFunction: CompareFunction;
|
|
11
|
+
/** Whether the depth value can be written.*/
|
|
12
|
+
writeEnabled: boolean;
|
|
13
|
+
private _platformApply;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CullMode } from "../enums/CullMode";
|
|
2
|
+
/**
|
|
3
|
+
* Raster state.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RasterState {
|
|
6
|
+
/** Specifies whether or not front- and/or back-facing polygons can be culled. */
|
|
7
|
+
cullMode: CullMode;
|
|
8
|
+
/** The multiplier by which an implementation-specific value is multiplied with to create a constant depth offset. */
|
|
9
|
+
depthBias: number;
|
|
10
|
+
/** The scale factor for the variable depth offset for each polygon. */
|
|
11
|
+
slopeScaledDepthBias: number;
|
|
12
|
+
private _platformApply;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RenderQueueType } from "../enums/RenderQueueType";
|
|
2
|
+
import { BlendState } from "./BlendState";
|
|
3
|
+
import { DepthState } from "./DepthState";
|
|
4
|
+
import { RasterState } from "./RasterState";
|
|
5
|
+
import { StencilState } from "./StencilState";
|
|
6
|
+
/**
|
|
7
|
+
* Render state.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RenderState {
|
|
10
|
+
/** Blend state. */
|
|
11
|
+
readonly blendState: BlendState;
|
|
12
|
+
/** Depth state. */
|
|
13
|
+
readonly depthState: DepthState;
|
|
14
|
+
/** Stencil state. */
|
|
15
|
+
readonly stencilState: StencilState;
|
|
16
|
+
/** Raster state. */
|
|
17
|
+
readonly rasterState: RasterState;
|
|
18
|
+
/** Render queue type. */
|
|
19
|
+
renderQueueType: RenderQueueType;
|
|
20
|
+
private _applyStatesByShaderData;
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BlendOperation } from "../enums/BlendOperation";
|
|
2
|
+
import { BlendFactor } from "../enums/BlendFactor";
|
|
3
|
+
import { ColorWriteMask } from "../enums/ColorWriteMask";
|
|
4
|
+
/**
|
|
5
|
+
* The blend state of the render target.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RenderTargetBlendState {
|
|
8
|
+
/** Whether to enable blend. */
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
/** color (RGB) blend operation. */
|
|
11
|
+
colorBlendOperation: BlendOperation;
|
|
12
|
+
/** alpha (A) blend operation. */
|
|
13
|
+
alphaBlendOperation: BlendOperation;
|
|
14
|
+
/** color blend factor (RGB) for source. */
|
|
15
|
+
sourceColorBlendFactor: BlendFactor;
|
|
16
|
+
/** alpha blend factor (A) for source. */
|
|
17
|
+
sourceAlphaBlendFactor: BlendFactor;
|
|
18
|
+
/** color blend factor (RGB) for destination. */
|
|
19
|
+
destinationColorBlendFactor: BlendFactor;
|
|
20
|
+
/** alpha blend factor (A) for destination. */
|
|
21
|
+
destinationAlphaBlendFactor: BlendFactor;
|
|
22
|
+
/** color mask. */
|
|
23
|
+
colorWriteMask: ColorWriteMask;
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CompareFunction } from "../enums/CompareFunction";
|
|
2
|
+
import { StencilOperation } from "../enums/StencilOperation";
|
|
3
|
+
/**
|
|
4
|
+
* Stencil state.
|
|
5
|
+
*/
|
|
6
|
+
export declare class StencilState {
|
|
7
|
+
private static _getGLCompareFunction;
|
|
8
|
+
private static _getGLStencilOperation;
|
|
9
|
+
/** Whether to enable stencil test. */
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
/** Write the reference value of the stencil buffer. */
|
|
12
|
+
referenceValue: number;
|
|
13
|
+
/** Specifying a bit-wise mask that is used to AND the reference value and the stored stencil value when the test is done. */
|
|
14
|
+
mask: number;
|
|
15
|
+
/** Specifying a bit mask to enable or disable writing of individual bits in the stencil planes. */
|
|
16
|
+
writeMask: number;
|
|
17
|
+
/** The comparison function of the reference value of the front face of the geometry and the current buffer storage value. */
|
|
18
|
+
compareFunctionFront: CompareFunction;
|
|
19
|
+
/** The comparison function of the reference value of the back of the geometry and the current buffer storage value. */
|
|
20
|
+
compareFunctionBack: CompareFunction;
|
|
21
|
+
/** specifying the function to use for front face when both the stencil test and the depth test pass. */
|
|
22
|
+
passOperationFront: StencilOperation;
|
|
23
|
+
/** specifying the function to use for back face when both the stencil test and the depth test pass. */
|
|
24
|
+
passOperationBack: StencilOperation;
|
|
25
|
+
/** specifying the function to use for front face when the stencil test fails. */
|
|
26
|
+
failOperationFront: StencilOperation;
|
|
27
|
+
/** specifying the function to use for back face when the stencil test fails. */
|
|
28
|
+
failOperationBack: StencilOperation;
|
|
29
|
+
/** specifying the function to use for front face when the stencil test passes, but the depth test fails. */
|
|
30
|
+
zFailOperationFront: StencilOperation;
|
|
31
|
+
/** specifying the function to use for back face when the stencil test passes, but the depth test fails. */
|
|
32
|
+
zFailOperationBack: StencilOperation;
|
|
33
|
+
private _platformApply;
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BlendState } from "./BlendState";
|
|
2
|
+
export { DepthState } from "./DepthState";
|
|
3
|
+
export { RasterState } from "./RasterState";
|
|
4
|
+
export { RenderState } from "./RenderState";
|
|
5
|
+
export { RenderTargetBlendState } from "./RenderTargetBlendState";
|
|
6
|
+
export { StencilState } from "./StencilState";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ShaderMacro } from "../shader/ShaderMacro";
|
|
2
|
+
export declare class ShaderFactory {
|
|
3
|
+
private static readonly _has300OutInFragReg;
|
|
4
|
+
static parseCustomMacros(macros: ShaderMacro[]): string;
|
|
5
|
+
static registerInclude(includeName: string, includeSource: string): void;
|
|
6
|
+
static unRegisterInclude(includeName: string): void;
|
|
7
|
+
/**
|
|
8
|
+
* @param regex The default regex is for engine's builtin glsl `#include` syntax,
|
|
9
|
+
* since `ShaderLab` use the same parsing function but different syntax for `#include` --- `/^[ \t]*#include +"([\w\d.]+)"/gm`
|
|
10
|
+
*/
|
|
11
|
+
static parseIncludes(src: string, regex?: RegExp): string;
|
|
12
|
+
/**
|
|
13
|
+
* Convert lower GLSL version to GLSL 300 es.
|
|
14
|
+
* @param shader - code
|
|
15
|
+
* @param isFrag - Whether it is a fragment shader.
|
|
16
|
+
* */
|
|
17
|
+
static convertTo300(shader: string, isFrag?: boolean): string;
|
|
18
|
+
private static _has300Output;
|
|
19
|
+
private static _replaceMRTShader;
|
|
20
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const ShaderLib: {
|
|
2
|
+
particle_common: string;
|
|
3
|
+
velocity_over_lifetime_module: string;
|
|
4
|
+
rotation_over_lifetime_module: string;
|
|
5
|
+
size_over_lifetime_module: string;
|
|
6
|
+
color_over_lifetime_module: string;
|
|
7
|
+
texture_sheet_animation_module: string;
|
|
8
|
+
force_over_lifetime_module: string;
|
|
9
|
+
sphere_billboard: string;
|
|
10
|
+
stretched_billboard: string;
|
|
11
|
+
vertical_billboard: string;
|
|
12
|
+
horizontal_billboard: string;
|
|
13
|
+
particle_mesh: string;
|
|
14
|
+
normal_get: string;
|
|
15
|
+
pbr_frag_define: string;
|
|
16
|
+
pbr_helper: string;
|
|
17
|
+
brdf: string;
|
|
18
|
+
direct_irradiance_frag_define: string;
|
|
19
|
+
ibl_frag_define: string;
|
|
20
|
+
pbr_frag: string;
|
|
21
|
+
btdf: string;
|
|
22
|
+
refraction: string;
|
|
23
|
+
ShadowCoord: string;
|
|
24
|
+
ShadowFragmentDeclaration: string;
|
|
25
|
+
shadow_sample_tent: string;
|
|
26
|
+
ShadowVertexDeclaration: string;
|
|
27
|
+
ShadowVertex: string;
|
|
28
|
+
common: string;
|
|
29
|
+
common_vert: string;
|
|
30
|
+
transform_declare: string;
|
|
31
|
+
camera_declare: string;
|
|
32
|
+
color_share: string;
|
|
33
|
+
normal_share: string;
|
|
34
|
+
uv_share: string;
|
|
35
|
+
worldpos_share: string;
|
|
36
|
+
FogVertexDeclaration: string;
|
|
37
|
+
FogFragmentDeclaration: string;
|
|
38
|
+
PositionClipSpaceDeclaration: string;
|
|
39
|
+
begin_normal_vert: string;
|
|
40
|
+
begin_position_vert: string;
|
|
41
|
+
position_vert: string;
|
|
42
|
+
color_vert: string;
|
|
43
|
+
normal_vert: string;
|
|
44
|
+
skinning_vert: string;
|
|
45
|
+
blendShape_input: string;
|
|
46
|
+
blendShape_vert: string;
|
|
47
|
+
uv_vert: string;
|
|
48
|
+
worldpos_vert: string;
|
|
49
|
+
FogVertex: string;
|
|
50
|
+
light_frag_define: string;
|
|
51
|
+
mobile_material_frag: string;
|
|
52
|
+
FogFragment: string;
|
|
53
|
+
PositionClipSpaceVertex: string;
|
|
54
|
+
begin_mobile_frag: string;
|
|
55
|
+
begin_viewdir_frag: string;
|
|
56
|
+
mobile_blinnphong_frag: string;
|
|
57
|
+
noise_common: string;
|
|
58
|
+
noise_cellular_2D: string;
|
|
59
|
+
noise_cellular_2x2: string;
|
|
60
|
+
noise_cellular_2x2x2: string;
|
|
61
|
+
noise_cellular_3D: string;
|
|
62
|
+
noise_cellular: string;
|
|
63
|
+
noise_perlin_2D: string;
|
|
64
|
+
noise_perlin_3D: string;
|
|
65
|
+
noise_perlin_4D: string;
|
|
66
|
+
noise_perlin: string;
|
|
67
|
+
noise_psrd_2D: string;
|
|
68
|
+
noise_simplex_2D: string;
|
|
69
|
+
noise_simplex_3D_grad: string;
|
|
70
|
+
noise_simplex_3D: string;
|
|
71
|
+
noise_simplex_4D: string;
|
|
72
|
+
noise_simplex: string;
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ShaderFactory } from "./ShaderFactory";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
particle_common: string;
|
|
3
|
+
velocity_over_lifetime_module: string;
|
|
4
|
+
rotation_over_lifetime_module: string;
|
|
5
|
+
size_over_lifetime_module: string;
|
|
6
|
+
color_over_lifetime_module: string;
|
|
7
|
+
texture_sheet_animation_module: string;
|
|
8
|
+
force_over_lifetime_module: string;
|
|
9
|
+
sphere_billboard: string;
|
|
10
|
+
stretched_billboard: string;
|
|
11
|
+
vertical_billboard: string;
|
|
12
|
+
horizontal_billboard: string;
|
|
13
|
+
particle_mesh: string;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Camera } from "../Camera";
|
|
2
|
+
import { PipelinePass } from "../RenderPipeline/PipelinePass";
|
|
3
|
+
/**
|
|
4
|
+
* Cascade shadow caster pass.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CascadedShadowCasterPass extends PipelinePass {
|
|
7
|
+
private static _lightShadowBiasProperty;
|
|
8
|
+
private static _lightDirectionProperty;
|
|
9
|
+
private static _shadowMatricesProperty;
|
|
10
|
+
private static _shadowMapSize;
|
|
11
|
+
private static _shadowInfosProperty;
|
|
12
|
+
private static _shadowMapsProperty;
|
|
13
|
+
private static _shadowSplitSpheresProperty;
|
|
14
|
+
private static _maxCascades;
|
|
15
|
+
private static _cascadesSplitDistance;
|
|
16
|
+
private static _viewport;
|
|
17
|
+
private static _clearColor;
|
|
18
|
+
private static _tempVector;
|
|
19
|
+
private static _tempMatrix0;
|
|
20
|
+
private readonly _camera;
|
|
21
|
+
private readonly _supportDepthTexture;
|
|
22
|
+
private _shadowMapResolution;
|
|
23
|
+
private _shadowMapSize;
|
|
24
|
+
private _shadowTileResolution;
|
|
25
|
+
private _shadowBias;
|
|
26
|
+
private _shadowMapFormat;
|
|
27
|
+
private _shadowCascadeMode;
|
|
28
|
+
private _shadowSliceData;
|
|
29
|
+
private _lightUp;
|
|
30
|
+
private _lightSide;
|
|
31
|
+
private _splitBoundSpheres;
|
|
32
|
+
/** The end is project precision problem in shader. */
|
|
33
|
+
private _shadowMatrices;
|
|
34
|
+
private _shadowInfos;
|
|
35
|
+
private _depthTexture;
|
|
36
|
+
private _renderTarget;
|
|
37
|
+
private _viewportOffsets;
|
|
38
|
+
constructor(camera: Camera);
|
|
39
|
+
private _renderDirectShadowMap;
|
|
40
|
+
private _updateReceiversShaderData;
|
|
41
|
+
private _getCascadesSplitDistance;
|
|
42
|
+
private _getFarWithRadius;
|
|
43
|
+
private _updateShadowSettings;
|
|
44
|
+
private _updateSingleShadowCasterShaderData;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default shadow resolution.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ShadowResolution {
|
|
5
|
+
/** Low shadow map resolution. */
|
|
6
|
+
Low = 0,
|
|
7
|
+
/** Medium shadow map resolution. */
|
|
8
|
+
Medium = 1,
|
|
9
|
+
/** High shadow map resolution. */
|
|
10
|
+
High = 2,
|
|
11
|
+
/** Very high shadow map resolution. */
|
|
12
|
+
VeryHigh = 3
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines which type of shadows should be used.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ShadowType {
|
|
5
|
+
/** Disable Shadows. */
|
|
6
|
+
None = 0,
|
|
7
|
+
/** Hard Shadows Only. */
|
|
8
|
+
Hard = 1,
|
|
9
|
+
/** Cast "soft" shadows with low range. */
|
|
10
|
+
SoftLow = 2,
|
|
11
|
+
/** Cast "soft" shadows with large range. */
|
|
12
|
+
SoftHigh = 3
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Mesh } from "../graphic/Mesh";
|
|
2
|
+
import { Material } from "../material";
|
|
3
|
+
/**
|
|
4
|
+
* Sky.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Sky {
|
|
7
|
+
private static _epsilon;
|
|
8
|
+
private static _viewProjMatrix;
|
|
9
|
+
private static _projectionMatrix;
|
|
10
|
+
private _material;
|
|
11
|
+
private _mesh;
|
|
12
|
+
/**
|
|
13
|
+
* Material of the sky.
|
|
14
|
+
*/
|
|
15
|
+
get material(): Material;
|
|
16
|
+
set material(value: Material);
|
|
17
|
+
/**
|
|
18
|
+
* Mesh of the sky.
|
|
19
|
+
*/
|
|
20
|
+
get mesh(): Mesh;
|
|
21
|
+
set mesh(value: Mesh);
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Color } from "@galacean/engine-math";
|
|
2
|
+
import { Engine } from "../Engine";
|
|
3
|
+
import { Material } from "../material/Material";
|
|
4
|
+
import { TextureCube } from "../texture";
|
|
5
|
+
/**
|
|
6
|
+
* SkyBoxMaterial.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SkyBoxMaterial extends Material {
|
|
9
|
+
private static _tintColorProp;
|
|
10
|
+
private static _textureCubeProp;
|
|
11
|
+
private static _rotationProp;
|
|
12
|
+
private static _exposureProp;
|
|
13
|
+
private static _decodeSkyRGBMMacro;
|
|
14
|
+
private _textureDecodeRGBM;
|
|
15
|
+
private _tintColor;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to decode texture with RGBM format.
|
|
18
|
+
*/
|
|
19
|
+
get textureDecodeRGBM(): boolean;
|
|
20
|
+
set textureDecodeRGBM(value: boolean);
|
|
21
|
+
/**
|
|
22
|
+
* Texture of the sky box material.
|
|
23
|
+
*/
|
|
24
|
+
get texture(): TextureCube;
|
|
25
|
+
set texture(value: TextureCube);
|
|
26
|
+
/**
|
|
27
|
+
* The angle to rotate around the y-axis, unit is degree.
|
|
28
|
+
*/
|
|
29
|
+
get rotation(): number;
|
|
30
|
+
set rotation(value: number);
|
|
31
|
+
/**
|
|
32
|
+
* The exposure value of this material.
|
|
33
|
+
*/
|
|
34
|
+
get exposure(): number;
|
|
35
|
+
set exposure(value: number);
|
|
36
|
+
/**
|
|
37
|
+
* The Tint color of this material.
|
|
38
|
+
*/
|
|
39
|
+
get tintColor(): Color;
|
|
40
|
+
set tintColor(value: Color);
|
|
41
|
+
constructor(engine: Engine);
|
|
42
|
+
clone(): SkyBoxMaterial;
|
|
43
|
+
}
|