@galacean/engine-core 0.0.0-experimental-1.4-small-language.4 → 0.0.0-experimental-backup.0

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.
Files changed (397) hide show
  1. package/package.json +3 -3
  2. package/dist/main.js +0 -36304
  3. package/dist/main.js.map +0 -1
  4. package/dist/module.js +0 -36023
  5. package/dist/module.js.map +0 -1
  6. package/types/2d/assembler/ISpriteAssembler.d.ts +0 -11
  7. package/types/2d/assembler/ISpriteRenderer.d.ts +0 -16
  8. package/types/2d/assembler/SimpleSpriteAssembler.d.ts +0 -13
  9. package/types/2d/assembler/SlicedSpriteAssembler.d.ts +0 -15
  10. package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -17
  11. package/types/2d/atlas/FontAtlas.d.ts +0 -1
  12. package/types/2d/atlas/SpriteAtlas.d.ts +0 -32
  13. package/types/2d/atlas/types.d.ts +0 -69
  14. package/types/2d/enums/FontStyle.d.ts +0 -11
  15. package/types/2d/enums/SpriteDrawMode.d.ts +0 -11
  16. package/types/2d/enums/SpriteMaskInteraction.d.ts +0 -11
  17. package/types/2d/enums/SpriteModifyFlags.d.ts +0 -23
  18. package/types/2d/enums/SpriteTileMode.d.ts +0 -11
  19. package/types/2d/enums/TextAlignment.d.ts +0 -22
  20. package/types/2d/enums/TextOverflow.d.ts +0 -9
  21. package/types/2d/index.d.ts +0 -17
  22. package/types/2d/sprite/Sprite.d.ts +0 -106
  23. package/types/2d/sprite/SpriteMask.d.ts +0 -70
  24. package/types/2d/sprite/SpriteRenderer.d.ts +0 -95
  25. package/types/2d/sprite/index.d.ts +0 -3
  26. package/types/2d/text/CharInfo.d.ts +0 -1
  27. package/types/2d/text/CharRenderInfo.d.ts +0 -1
  28. package/types/2d/text/Font.d.ts +0 -21
  29. package/types/2d/text/ITextRenderer.d.ts +0 -8
  30. package/types/2d/text/SubFont.d.ts +0 -1
  31. package/types/2d/text/TextRenderer.d.ts +0 -139
  32. package/types/2d/text/TextUtils.d.ts +0 -1
  33. package/types/2d/text/index.d.ts +0 -5
  34. package/types/Background.d.ts +0 -51
  35. package/types/BasicResources.d.ts +0 -2
  36. package/types/BoolUpdateFlag.d.ts +0 -12
  37. package/types/Camera.d.ts +0 -307
  38. package/types/Canvas.d.ts +0 -19
  39. package/types/Component.d.ts +0 -27
  40. package/types/ComponentsDependencies.d.ts +0 -25
  41. package/types/ComponentsManager.d.ts +0 -52
  42. package/types/Engine.d.ts +0 -155
  43. package/types/EngineSettings.d.ts +0 -8
  44. package/types/Entity.d.ts +0 -170
  45. package/types/Layer.d.ts +0 -73
  46. package/types/Platform.d.ts +0 -15
  47. package/types/Polyfill.d.ts +0 -1
  48. package/types/RenderPipeline/BasicRenderPipeline.d.ts +0 -54
  49. package/types/RenderPipeline/BatchUtils.d.ts +0 -1
  50. package/types/RenderPipeline/BatcherManager.d.ts +0 -1
  51. package/types/RenderPipeline/Blitter.d.ts +0 -28
  52. package/types/RenderPipeline/CullingResults.d.ts +0 -1
  53. package/types/RenderPipeline/DepthOnlyPass.d.ts +0 -1
  54. package/types/RenderPipeline/MaskManager.d.ts +0 -1
  55. package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
  56. package/types/RenderPipeline/PipelinePass.d.ts +0 -16
  57. package/types/RenderPipeline/PipelineUtils.d.ts +0 -1
  58. package/types/RenderPipeline/PrimitiveChunk.d.ts +0 -1
  59. package/types/RenderPipeline/PrimitiveChunkManager.d.ts +0 -1
  60. package/types/RenderPipeline/RenderContext.d.ts +0 -1
  61. package/types/RenderPipeline/RenderElement.d.ts +0 -12
  62. package/types/RenderPipeline/RenderQueue.d.ts +0 -1
  63. package/types/RenderPipeline/SubPrimitiveChunk.d.ts +0 -1
  64. package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
  65. package/types/RenderPipeline/VertexArea.d.ts +0 -1
  66. package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -11
  67. package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +0 -1
  68. package/types/RenderPipeline/index.d.ts +0 -5
  69. package/types/Renderer.d.ts +0 -135
  70. package/types/Scene.d.ts +0 -176
  71. package/types/SceneManager.d.ts +0 -51
  72. package/types/Script.d.ts +0 -144
  73. package/types/SystemInfo.d.ts +0 -16
  74. package/types/Transform.d.ts +0 -266
  75. package/types/UpdateFlag.d.ts +0 -20
  76. package/types/UpdateFlagManager.d.ts +0 -1
  77. package/types/Utils.d.ts +0 -37
  78. package/types/VirtualCamera.d.ts +0 -1
  79. package/types/animation/AnimationClip.d.ts +0 -87
  80. package/types/animation/AnimationClipCurveBinding.d.ts +0 -31
  81. package/types/animation/AnimationEvent.d.ts +0 -11
  82. package/types/animation/Animator.d.ts +0 -153
  83. package/types/animation/AnimatorCondition.d.ts +0 -13
  84. package/types/animation/AnimatorController.d.ts +0 -72
  85. package/types/animation/AnimatorControllerLayer.d.ts +0 -21
  86. package/types/animation/AnimatorControllerParameter.d.ts +0 -14
  87. package/types/animation/AnimatorLayerMask.d.ts +0 -45
  88. package/types/animation/AnimatorState.d.ts +0 -69
  89. package/types/animation/AnimatorStateMachine.d.ts +0 -85
  90. package/types/animation/AnimatorStateTransition.d.ts +0 -59
  91. package/types/animation/AnimatorStateTransitionCollection.d.ts +0 -1
  92. package/types/animation/Keyframe.d.ts +0 -20
  93. package/types/animation/LayerPathMask.d.ts +0 -16
  94. package/types/animation/StateMachineScript.d.ts +0 -32
  95. package/types/animation/animationCurve/AnimationArrayCurve.d.ts +0 -7
  96. package/types/animation/animationCurve/AnimationBoolCurve.d.ts +0 -7
  97. package/types/animation/animationCurve/AnimationColorCurve.d.ts +0 -8
  98. package/types/animation/animationCurve/AnimationCurve.d.ts +0 -39
  99. package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -11
  100. package/types/animation/animationCurve/AnimationFloatCurve.d.ts +0 -7
  101. package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +0 -8
  102. package/types/animation/animationCurve/AnimationRectCurve.d.ts +0 -8
  103. package/types/animation/animationCurve/AnimationRefCurve.d.ts +0 -8
  104. package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
  105. package/types/animation/animationCurve/AnimationVector2Curve.d.ts +0 -8
  106. package/types/animation/animationCurve/AnimationVector3Curve.d.ts +0 -8
  107. package/types/animation/animationCurve/AnimationVector4Curve.d.ts +0 -8
  108. package/types/animation/animationCurve/index.d.ts +0 -13
  109. package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +0 -1
  110. package/types/animation/enums/AnimatorConditionMode.d.ts +0 -17
  111. package/types/animation/enums/AnimatorCullingMode.d.ts +0 -9
  112. package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +0 -4
  113. package/types/animation/enums/AnimatorStatePlayState.d.ts +0 -1
  114. package/types/animation/enums/InterpolationType.d.ts +0 -13
  115. package/types/animation/enums/LayerState.d.ts +0 -15
  116. package/types/animation/enums/PlayState.d.ts +0 -13
  117. package/types/animation/enums/WrapMode.d.ts +0 -9
  118. package/types/animation/index.d.ts +0 -25
  119. package/types/animation/internal/AnimationCurveLayerOwner.d.ts +0 -1
  120. package/types/animation/internal/AnimationEventHandler.d.ts +0 -1
  121. package/types/animation/internal/AnimatorLayerData.d.ts +0 -1
  122. package/types/animation/internal/AnimatorStateData.d.ts +0 -1
  123. package/types/animation/internal/AnimatorStatePlayData.d.ts +0 -1
  124. package/types/animation/internal/AnimatorTempValue.d.ts +0 -1
  125. package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +0 -5
  126. package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +0 -1
  127. package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +0 -1
  128. package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +0 -1
  129. package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +0 -1
  130. package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +0 -1
  131. package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +0 -1
  132. package/types/asset/AssetPromise.d.ts +0 -87
  133. package/types/asset/AssetType.d.ts +0 -66
  134. package/types/asset/ContentRestorer.d.ts +0 -17
  135. package/types/asset/GraphicsResource.d.ts +0 -9
  136. package/types/asset/IReferable.d.ts +0 -2
  137. package/types/asset/LoadItem.d.ts +0 -40
  138. package/types/asset/Loader.d.ts +0 -37
  139. package/types/asset/ReferResource.d.ts +0 -23
  140. package/types/asset/ResourceManager.d.ts +0 -121
  141. package/types/asset/request.d.ts +0 -36
  142. package/types/audio/AudioClip.d.ts +0 -24
  143. package/types/audio/AudioManager.d.ts +0 -1
  144. package/types/audio/AudioSource.d.ts +0 -72
  145. package/types/audio/index.d.ts +0 -3
  146. package/types/base/Constant.d.ts +0 -113
  147. package/types/base/EngineObject.d.ts +0 -25
  148. package/types/base/EventDispatcher.d.ts +0 -66
  149. package/types/base/Logger.d.ts +0 -11
  150. package/types/base/StaticInterfaceImplement.d.ts +0 -5
  151. package/types/base/Time.d.ts +0 -44
  152. package/types/base/index.d.ts +0 -5
  153. package/types/clone/CloneManager.d.ts +0 -31
  154. package/types/clone/ComponentCloner.d.ts +0 -17
  155. package/types/clone/enums/CloneMode.d.ts +0 -13
  156. package/types/enums/ActiveChangeFlag.d.ts +0 -6
  157. package/types/enums/BackgroundMode.d.ts +0 -9
  158. package/types/enums/BackgroundTextureFillMode.d.ts +0 -8
  159. package/types/enums/CameraClearFlags.d.ts +0 -13
  160. package/types/enums/CameraModifyFlags.d.ts +0 -17
  161. package/types/enums/CameraType.d.ts +0 -1
  162. package/types/enums/ColorSpace.d.ts +0 -9
  163. package/types/enums/DepthTextureMode.d.ts +0 -7
  164. package/types/enums/Downsampling.d.ts +0 -11
  165. package/types/enums/EntityModifyFlags.d.ts +0 -9
  166. package/types/enums/FogMode.d.ts +0 -13
  167. package/types/enums/MSAASamples.d.ts +0 -13
  168. package/types/enums/ReplacementFailureStrategy.d.ts +0 -9
  169. package/types/enums/SpriteMaskLayer.d.ts +0 -73
  170. package/types/env-probe/CubeProbe.d.ts +0 -27
  171. package/types/env-probe/Probe.d.ts +0 -52
  172. package/types/env-probe/index.d.ts +0 -2
  173. package/types/graphic/Buffer.d.ts +0 -114
  174. package/types/graphic/BufferUtil.d.ts +0 -12
  175. package/types/graphic/IndexBufferBinding.d.ts +0 -21
  176. package/types/graphic/Mesh.d.ts +0 -58
  177. package/types/graphic/Primitive.d.ts +0 -1
  178. package/types/graphic/SubMesh.d.ts +0 -8
  179. package/types/graphic/SubPrimitive.d.ts +0 -19
  180. package/types/graphic/VertexBufferBinding.d.ts +0 -20
  181. package/types/graphic/VertexElement.d.ts +0 -48
  182. package/types/graphic/enums/BufferBindFlag.d.ts +0 -9
  183. package/types/graphic/enums/BufferUsage.d.ts +0 -11
  184. package/types/graphic/enums/IndexFormat.d.ts +0 -11
  185. package/types/graphic/enums/MeshTopology.d.ts +0 -19
  186. package/types/graphic/enums/SetDataOptions.d.ts +0 -9
  187. package/types/graphic/enums/VertexElementFormat.d.ts +0 -37
  188. package/types/graphic/index.d.ts +0 -15
  189. package/types/index.d.ts +0 -67
  190. package/types/input/InputManager.d.ts +0 -65
  191. package/types/input/enums/Keys.d.ts +0 -398
  192. package/types/input/enums/PointerButton.d.ts +0 -33
  193. package/types/input/enums/PointerPhase.d.ts +0 -15
  194. package/types/input/index.d.ts +0 -8
  195. package/types/input/interface/IInput.d.ts +0 -10
  196. package/types/input/keyboard/KeyboardManager.d.ts +0 -1
  197. package/types/input/pointer/Pointer.d.ts +0 -31
  198. package/types/input/pointer/PointerEventData.d.ts +0 -12
  199. package/types/input/pointer/PointerManager.d.ts +0 -9
  200. package/types/input/pointer/emitter/IHitResult.d.ts +0 -1
  201. package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +0 -1
  202. package/types/input/pointer/emitter/PointerEventEmitter.d.ts +0 -30
  203. package/types/input/wheel/WheelManager.d.ts +0 -1
  204. package/types/lighting/AmbientLight.d.ts +0 -70
  205. package/types/lighting/DirectLight.d.ts +0 -32
  206. package/types/lighting/KHR_lights.d.ts +0 -4
  207. package/types/lighting/Light.d.ts +0 -47
  208. package/types/lighting/LightManager.d.ts +0 -12
  209. package/types/lighting/PointLight.d.ts +0 -26
  210. package/types/lighting/SpotLight.d.ts +0 -46
  211. package/types/lighting/enums/DiffuseMode.d.ts +0 -13
  212. package/types/lighting/index.d.ts +0 -6
  213. package/types/material/BaseMaterial.d.ts +0 -88
  214. package/types/material/BlinnPhongMaterial.d.ts +0 -68
  215. package/types/material/Material.d.ts +0 -52
  216. package/types/material/PBRBaseMaterial.d.ts +0 -101
  217. package/types/material/PBRMaterial.d.ts +0 -198
  218. package/types/material/PBRSpecularMaterial.d.ts +0 -38
  219. package/types/material/UnlitMaterial.d.ts +0 -33
  220. package/types/material/enums/BlendMode.d.ts +0 -9
  221. package/types/material/enums/Refraction.d.ts +0 -9
  222. package/types/material/enums/RenderFace.d.ts +0 -11
  223. package/types/material/enums/TextureCoordinate.d.ts +0 -13
  224. package/types/material/index.d.ts +0 -11
  225. package/types/material/utils/PrefilteredDFG.d.ts +0 -7
  226. package/types/mesh/BlendShape.d.ts +0 -39
  227. package/types/mesh/BlendShapeFrame.d.ts +0 -44
  228. package/types/mesh/BlendShapeManager.d.ts +0 -1
  229. package/types/mesh/BufferMesh.d.ts +0 -59
  230. package/types/mesh/MeshRenderer.d.ts +0 -25
  231. package/types/mesh/ModelMesh.d.ts +0 -254
  232. package/types/mesh/PrimitiveMesh.d.ts +0 -112
  233. package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
  234. package/types/mesh/Skin.d.ts +0 -35
  235. package/types/mesh/SkinnedMeshRenderer.d.ts +0 -50
  236. package/types/mesh/enums/VertexAttribute.d.ts +0 -33
  237. package/types/mesh/index.d.ts +0 -9
  238. package/types/particle/ParticleBufferUtils.d.ts +0 -1
  239. package/types/particle/ParticleGenerator.d.ts +0 -91
  240. package/types/particle/ParticleMaterial.d.ts +0 -28
  241. package/types/particle/ParticleRenderer.d.ts +0 -47
  242. package/types/particle/enums/ParticleCurveMode.d.ts +0 -9
  243. package/types/particle/enums/ParticleGradientMode.d.ts +0 -9
  244. package/types/particle/enums/ParticleRandomSubSeeds.d.ts +0 -1
  245. package/types/particle/enums/ParticleRenderMode.d.ts +0 -17
  246. package/types/particle/enums/ParticleScaleMode.d.ts +0 -11
  247. package/types/particle/enums/ParticleSimulationSpace.d.ts +0 -9
  248. package/types/particle/enums/ParticleStopMode.d.ts +0 -6
  249. package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +0 -1
  250. package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +0 -5
  251. package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +0 -1
  252. package/types/particle/index.d.ts +0 -22
  253. package/types/particle/modules/Burst.d.ts +0 -14
  254. package/types/particle/modules/ColorOverLifetimeModule.d.ts +0 -20
  255. package/types/particle/modules/EmissionModule.d.ts +0 -48
  256. package/types/particle/modules/MainModule.d.ts +0 -104
  257. package/types/particle/modules/ParticleCompositeCurve.d.ts +0 -81
  258. package/types/particle/modules/ParticleCompositeGradient.d.ts +0 -55
  259. package/types/particle/modules/ParticleCurve.d.ts +0 -63
  260. package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -15
  261. package/types/particle/modules/ParticleGradient.d.ts +0 -114
  262. package/types/particle/modules/RotationOverLifetimeModule.d.ts +0 -34
  263. package/types/particle/modules/SizeOverLifetimeModule.d.ts +0 -53
  264. package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -36
  265. package/types/particle/modules/VelocityOverLifetimeModule.d.ts +0 -55
  266. package/types/particle/modules/shape/BaseShape.d.ts +0 -22
  267. package/types/particle/modules/shape/BoxShape.d.ts +0 -17
  268. package/types/particle/modules/shape/CircleShape.d.ts +0 -35
  269. package/types/particle/modules/shape/ConeShape.d.ts +0 -45
  270. package/types/particle/modules/shape/HemisphereShape.d.ts +0 -14
  271. package/types/particle/modules/shape/ShapeUtils.d.ts +0 -1
  272. package/types/particle/modules/shape/SphereShape.d.ts +0 -14
  273. package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +0 -9
  274. package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +0 -15
  275. package/types/particle/modules/shape/index.d.ts +0 -7
  276. package/types/physics/CharacterController.d.ts +0 -51
  277. package/types/physics/Collider.d.ts +0 -33
  278. package/types/physics/Collision.d.ts +0 -22
  279. package/types/physics/ContactPoint.d.ts +0 -14
  280. package/types/physics/DynamicCollider.d.ts +0 -192
  281. package/types/physics/HitResult.d.ts +0 -18
  282. package/types/physics/PhysicsMaterial.d.ts +0 -42
  283. package/types/physics/PhysicsScene.d.ts +0 -79
  284. package/types/physics/StaticCollider.d.ts +0 -7
  285. package/types/physics/enums/ColliderShapeUpAxis.d.ts +0 -11
  286. package/types/physics/enums/ControllerCollisionFlag.d.ts +0 -11
  287. package/types/physics/enums/ControllerNonWalkableMode.d.ts +0 -9
  288. package/types/physics/enums/HingeJointFlag.d.ts +0 -1
  289. package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +0 -13
  290. package/types/physics/enums/index.d.ts +0 -4
  291. package/types/physics/index.d.ts +0 -12
  292. package/types/physics/joint/FixedJoint.d.ts +0 -4
  293. package/types/physics/joint/HingeJoint.d.ts +0 -61
  294. package/types/physics/joint/Joint.d.ts +0 -81
  295. package/types/physics/joint/JointLimits.d.ts +0 -39
  296. package/types/physics/joint/JointMotor.d.ts +0 -32
  297. package/types/physics/joint/SpringJoint.d.ts +0 -38
  298. package/types/physics/joint/index.d.ts +0 -6
  299. package/types/physics/shape/BoxColliderShape.d.ts +0 -16
  300. package/types/physics/shape/CapsuleColliderShape.d.ts +0 -27
  301. package/types/physics/shape/ColliderShape.d.ts +0 -60
  302. package/types/physics/shape/PlaneColliderShape.d.ts +0 -9
  303. package/types/physics/shape/SphereColliderShape.d.ts +0 -14
  304. package/types/physics/shape/index.d.ts +0 -5
  305. package/types/postProcess/PostProcess.d.ts +0 -64
  306. package/types/postProcess/PostProcessEffect.d.ts +0 -26
  307. package/types/postProcess/PostProcessEffectParameter.d.ts +0 -119
  308. package/types/postProcess/PostProcessManager.d.ts +0 -37
  309. package/types/postProcess/PostProcessPass.d.ts +0 -50
  310. package/types/postProcess/PostProcessUberPass.d.ts +0 -25
  311. package/types/postProcess/effects/BloomEffect.d.ts +0 -50
  312. package/types/postProcess/effects/TonemappingEffect.d.ts +0 -25
  313. package/types/postProcess/effects/index.d.ts +0 -2
  314. package/types/postProcess/index.d.ts +0 -7
  315. package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -7
  316. package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +0 -20
  317. package/types/renderingHardwareInterface/IPlatformTexture.d.ts +0 -36
  318. package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -37
  319. package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +0 -40
  320. package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -41
  321. package/types/renderingHardwareInterface/index.d.ts +0 -6
  322. package/types/shader/Shader.d.ts +0 -116
  323. package/types/shader/ShaderData.d.ts +0 -350
  324. package/types/shader/ShaderMacro.d.ts +0 -26
  325. package/types/shader/ShaderMacroCollection.d.ts +0 -1
  326. package/types/shader/ShaderPart.d.ts +0 -46
  327. package/types/shader/ShaderPass.d.ts +0 -34
  328. package/types/shader/ShaderPool.d.ts +0 -1
  329. package/types/shader/ShaderProgram.d.ts +0 -1
  330. package/types/shader/ShaderProgramPool.d.ts +0 -1
  331. package/types/shader/ShaderProperty.d.ts +0 -20
  332. package/types/shader/ShaderTagKey.d.ts +0 -16
  333. package/types/shader/ShaderUniform.d.ts +0 -1
  334. package/types/shader/ShaderUniformBlock.d.ts +0 -1
  335. package/types/shader/SubShader.d.ts +0 -18
  336. package/types/shader/enums/BlendFactor.d.ts +0 -32
  337. package/types/shader/enums/BlendOperation.d.ts +0 -16
  338. package/types/shader/enums/ColorWriteMask.d.ts +0 -18
  339. package/types/shader/enums/CompareFunction.d.ts +0 -22
  340. package/types/shader/enums/CullMode.d.ts +0 -12
  341. package/types/shader/enums/RenderQueueType.d.ts +0 -11
  342. package/types/shader/enums/RenderStateElementKey.d.ts +0 -60
  343. package/types/shader/enums/ShaderDataGroup.d.ts +0 -15
  344. package/types/shader/enums/ShaderPlatformTarget.d.ts +0 -4
  345. package/types/shader/enums/ShaderPropertyType.d.ts +0 -27
  346. package/types/shader/enums/ShaderType.d.ts +0 -1
  347. package/types/shader/enums/StencilOperation.d.ts +0 -22
  348. package/types/shader/index.d.ts +0 -19
  349. package/types/shader/state/BlendState.d.ts +0 -16
  350. package/types/shader/state/DepthState.d.ts +0 -14
  351. package/types/shader/state/RasterState.d.ts +0 -13
  352. package/types/shader/state/RenderState.d.ts +0 -21
  353. package/types/shader/state/RenderTargetBlendState.d.ts +0 -24
  354. package/types/shader/state/StencilState.d.ts +0 -34
  355. package/types/shader/state/index.d.ts +0 -6
  356. package/types/shaderlib/ShaderFactory.d.ts +0 -20
  357. package/types/shaderlib/ShaderLib.d.ts +0 -70
  358. package/types/shaderlib/index.d.ts +0 -1
  359. package/types/shaderlib/particle/index.d.ts +0 -14
  360. package/types/shaderlib/pbr/index.d.ts +0 -11
  361. package/types/shaderlib/shadow/index.d.ts +0 -8
  362. package/types/shadow/CascadedShadowCasterPass.d.ts +0 -45
  363. package/types/shadow/ShadowSliceData.d.ts +0 -1
  364. package/types/shadow/ShadowUtils.d.ts +0 -1
  365. package/types/shadow/enum/ShadowCascadesMode.d.ts +0 -11
  366. package/types/shadow/enum/ShadowResolution.d.ts +0 -13
  367. package/types/shadow/enum/ShadowType.d.ts +0 -13
  368. package/types/shadow/index.d.ts +0 -3
  369. package/types/sky/Sky.d.ts +0 -22
  370. package/types/sky/SkyBoxMaterial.d.ts +0 -43
  371. package/types/sky/SkyProceduralMaterial.d.ts +0 -72
  372. package/types/sky/index.d.ts +0 -3
  373. package/types/texture/RenderTarget.d.ts +0 -91
  374. package/types/texture/Texture.d.ts +0 -80
  375. package/types/texture/Texture2D.d.ts +0 -70
  376. package/types/texture/Texture2DArray.d.ts +0 -81
  377. package/types/texture/TextureCube.d.ts +0 -70
  378. package/types/texture/enums/RenderBufferDepthFormat.d.ts +0 -23
  379. package/types/texture/enums/TextureCubeFace.d.ts +0 -17
  380. package/types/texture/enums/TextureDepthCompareFunction.d.ts +0 -21
  381. package/types/texture/enums/TextureFilterMode.d.ts +0 -11
  382. package/types/texture/enums/TextureFormat.d.ts +0 -81
  383. package/types/texture/enums/TextureUsage.d.ts +0 -9
  384. package/types/texture/enums/TextureWrapMode.d.ts +0 -11
  385. package/types/texture/index.d.ts +0 -12
  386. package/types/trail/TrailMaterial.d.ts +0 -5
  387. package/types/trail/TrailRenderer.d.ts +0 -35
  388. package/types/trail/index.d.ts +0 -2
  389. package/types/ui/IUICanvas.d.ts +0 -1
  390. package/types/ui/UIUtils.d.ts +0 -11
  391. package/types/utils/ClearableObjectPool.d.ts +0 -16
  392. package/types/utils/DisorderedArray.d.ts +0 -70
  393. package/types/utils/ObjectPool.d.ts +0 -16
  394. package/types/utils/ReturnableObjectPool.d.ts +0 -16
  395. package/types/utils/SafeLoopArray.d.ts +0 -46
  396. package/types/utils/index.d.ts +0 -4
  397. package/types/xr/XRManager.d.ts +0 -5
@@ -1,38 +0,0 @@
1
- import { Color } from "@galacean/engine-math";
2
- import { Engine } from "../Engine";
3
- import { Texture2D } from "../texture/Texture2D";
4
- import { PBRBaseMaterial } from "./PBRBaseMaterial";
5
- /**
6
- * PBR (Specular-Glossiness Workflow) Material.
7
- */
8
- export declare class PBRSpecularMaterial extends PBRBaseMaterial {
9
- private static _specularColorProp;
10
- private static _glossinessProp;
11
- private static _specularGlossinessTextureProp;
12
- private static _specularGlossinessTextureMacro;
13
- /**
14
- * Specular color.
15
- */
16
- get specularColor(): Color;
17
- set specularColor(value: Color);
18
- /**
19
- * Glossiness.
20
- */
21
- get glossiness(): number;
22
- set glossiness(value: number);
23
- /**
24
- * Specular glossiness texture.
25
- * @remarks RGB is specular, A is glossiness
26
- */
27
- get specularGlossinessTexture(): Texture2D;
28
- set specularGlossinessTexture(value: Texture2D);
29
- /**
30
- * Create a pbr specular-glossiness workflow material instance.
31
- * @param engine - Engine to which the material belongs
32
- */
33
- constructor(engine: Engine);
34
- /**
35
- * @inheritdoc
36
- */
37
- clone(): PBRSpecularMaterial;
38
- }
@@ -1,33 +0,0 @@
1
- import { Color, Vector4 } from "@galacean/engine-math";
2
- import { Engine } from "../Engine";
3
- import { Texture2D } from "../texture/Texture2D";
4
- import { BaseMaterial } from "./BaseMaterial";
5
- /**
6
- * Unlit Material.
7
- */
8
- export declare class UnlitMaterial extends BaseMaterial {
9
- /**
10
- * Base color.
11
- */
12
- get baseColor(): Color;
13
- set baseColor(value: Color);
14
- /**
15
- * Base texture.
16
- */
17
- get baseTexture(): Texture2D;
18
- set baseTexture(value: Texture2D);
19
- /**
20
- * Tiling and offset of main textures.
21
- */
22
- get tilingOffset(): Vector4;
23
- set tilingOffset(value: Vector4);
24
- /**
25
- * Create a unlit material instance.
26
- * @param engine - Engine to which the material belongs
27
- */
28
- constructor(engine: Engine);
29
- /**
30
- * @inheritdoc
31
- */
32
- clone(): UnlitMaterial;
33
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Alpha blend mode.
3
- */
4
- export declare enum BlendMode {
5
- /** SRC ALPHA * SRC + (1 - SRC ALPHA) * DEST */
6
- Normal = 0,
7
- /** SRC ALPHA * SRC + ONE * DEST */
8
- Additive = 1
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Refraction mode.
3
- */
4
- export declare enum RefractionMode {
5
- /** Use the sphere refraction model when light passes through the surface. */
6
- Sphere = 0,
7
- /** Use the planar refraction model when light passes through the surface. */
8
- Planar = 1
9
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Set which face for render.
3
- */
4
- export declare enum RenderFace {
5
- /** Render front face. */
6
- Front = 0,
7
- /** Render back face. */
8
- Back = 1,
9
- /** Render double face. */
10
- Double = 2
11
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Texture UV coordinate.
3
- */
4
- export declare enum TextureCoordinate {
5
- UV0 = 0,
6
- UV1 = 1,
7
- UV2 = 2,
8
- UV3 = 3,
9
- UV4 = 4,
10
- UV5 = 5,
11
- UV6 = 6,
12
- UV7 = 7
13
- }
@@ -1,11 +0,0 @@
1
- export { BaseMaterial } from "./BaseMaterial";
2
- export { BlinnPhongMaterial } from "./BlinnPhongMaterial";
3
- export { BlendMode } from "./enums/BlendMode";
4
- export { RenderFace } from "./enums/RenderFace";
5
- export { TextureCoordinate } from "./enums/TextureCoordinate";
6
- export { Material } from "./Material";
7
- export { PBRBaseMaterial } from "./PBRBaseMaterial";
8
- export { PBRMaterial } from "./PBRMaterial";
9
- export { PBRSpecularMaterial } from "./PBRSpecularMaterial";
10
- export { UnlitMaterial } from "./UnlitMaterial";
11
- export { RefractionMode } from "./enums/Refraction";
@@ -1,7 +0,0 @@
1
- import { Engine } from "../../Engine";
2
- import { Texture2D } from "../../texture/Texture2D";
3
- export declare class PrefilteredDFG {
4
- private static _size;
5
- private static _base64;
6
- static create(engine: Engine): Promise<Texture2D>;
7
- }
@@ -1,39 +0,0 @@
1
- import { Vector3 } from "@galacean/engine-math";
2
- import { BlendShapeFrame } from "./BlendShapeFrame";
3
- /**
4
- * BlendShape.
5
- */
6
- export declare class BlendShape {
7
- /** Name of BlendShape. */
8
- name: string;
9
- private _frames;
10
- /**
11
- * Frames of BlendShape.
12
- */
13
- get frames(): Readonly<BlendShapeFrame[]>;
14
- /**
15
- * Create a BlendShape.
16
- * @param name - BlendShape name.
17
- */
18
- constructor(name: string);
19
- /**
20
- * Add a BlendShapeFrame by weight, deltaPositions, deltaNormals and deltaTangents.
21
- * @param weight - Weight of BlendShapeFrame
22
- * @param deltaPositions - Delta positions for the frame being added
23
- * @param deltaNormals - Delta normals for the frame being added
24
- * @param deltaTangents - Delta tangents for the frame being added
25
- */
26
- addFrame(weight: number, deltaPositions: Vector3[], deltaNormals?: Vector3[], deltaTangents?: Vector3[]): BlendShapeFrame;
27
- /**
28
- * Add a BlendShapeFrame.
29
- * @param frame - The BlendShapeFrame.
30
- */
31
- addFrame(frame: BlendShapeFrame): void;
32
- /**
33
- * Clear all frames.
34
- */
35
- clearFrames(): void;
36
- private _addFrame;
37
- private _updateUseNormalAndTangent;
38
- private _frameDataChangeListener;
39
- }
@@ -1,44 +0,0 @@
1
- import { Vector3 } from "@galacean/engine-math";
2
- /**
3
- * BlendShapeFrame.
4
- */
5
- export declare class BlendShapeFrame {
6
- /** Weight of BlendShapeFrame. */
7
- readonly weight: number;
8
- private _dirty;
9
- private _deltaPositions;
10
- private _deltaNormals;
11
- private _deltaTangents;
12
- /**
13
- * Delta positions for the frame being added.
14
- * @remarks Need to re-assign after modification to ensure that the modification takes effect.
15
- */
16
- get deltaPositions(): Vector3[];
17
- set deltaPositions(value: Vector3[]);
18
- /**
19
- * Delta normals for the frame being added.
20
- * @remarks Need to re-assign after modification to ensure that the modification takes effect.
21
- */
22
- get deltaNormals(): Vector3[];
23
- set deltaNormals(value: Vector3[]);
24
- /**
25
- * Delta tangents for the frame being added.
26
- * @remarks Need to re-assign after modification to ensure that the modification takes effect.
27
- */
28
- get deltaTangents(): Vector3[];
29
- set deltaTangents(value: Vector3[]);
30
- /**
31
- * Create a BlendShapeFrame.
32
- * @param weight - Weight of BlendShapeFrame
33
- * @param deltaPositions - Delta positions for the frame being added
34
- * @param deltaNormals - Delta normals for the frame being added
35
- * @param deltaTangents - Delta tangents for the frame being added
36
- */
37
- constructor(weight: number, deltaPositions: Vector3[], deltaNormals?: Vector3[], deltaTangents?: Vector3[]);
38
- }
39
- export declare enum BlendShapeFrameDirty {
40
- Position = 1,
41
- Normal = 2,
42
- Tangent = 4,
43
- All = 7
44
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,59 +0,0 @@
1
- import { IndexBufferBinding, IndexFormat, Mesh, Buffer, VertexBufferBinding, VertexElement } from "../graphic";
2
- /**
3
- * BufferMesh.
4
- */
5
- export declare class BufferMesh extends Mesh {
6
- /**
7
- * Instanced count, disable instanced drawing when set zero.
8
- */
9
- get instanceCount(): number;
10
- set instanceCount(value: number);
11
- /**
12
- * Vertex buffer binding collection.
13
- */
14
- get vertexBufferBindings(): Readonly<VertexBufferBinding[]>;
15
- /**
16
- * Index buffer binding.
17
- */
18
- get indexBufferBinding(): IndexBufferBinding;
19
- /**
20
- * Vertex element collection.
21
- */
22
- get vertexElements(): Readonly<VertexElement[]>;
23
- /**
24
- * Set vertex elements.
25
- * @param elements - Vertex element collection
26
- */
27
- setVertexElements(elements: VertexElement[]): void;
28
- /**
29
- * Set vertex buffer binding.
30
- * @param vertexBufferBinding - Vertex buffer binding
31
- * @param index - Vertex buffer index, the default value is 0
32
- */
33
- setVertexBufferBinding(vertexBufferBinding: VertexBufferBinding, index?: number): void;
34
- /**
35
- * Set vertex buffer binding.
36
- * @param vertexBuffer - Vertex buffer
37
- * @param stride - Vertex buffer data stride
38
- * @param index - Vertex buffer index, the default value is 0
39
- */
40
- setVertexBufferBinding(vertexBuffer: Buffer, stride: number, index?: number): void;
41
- /**
42
- * Set vertex buffer binding.
43
- * @param vertexBufferBindings - Vertex buffer binding
44
- * @param firstIndex - First vertex buffer index, the default value is 0
45
- */
46
- setVertexBufferBindings(vertexBufferBindings: VertexBufferBinding[], firstIndex?: number): void;
47
- /**
48
- * Set index buffer binding.
49
- * @param buffer - Index buffer
50
- * @param format - Index buffer format
51
- */
52
- setIndexBufferBinding(buffer: Buffer, format: IndexFormat): void;
53
- /**
54
- * Set index buffer binding.
55
- * @param bufferBinding - Index buffer binding
56
- * @remarks When bufferBinding is null, it will clear IndexBufferBinding
57
- */
58
- setIndexBufferBinding(bufferBinding: IndexBufferBinding | null): void;
59
- }
@@ -1,25 +0,0 @@
1
- import { Renderer } from "../Renderer";
2
- import { Mesh } from "../graphic/Mesh";
3
- /**
4
- * MeshRenderer Component.
5
- */
6
- export declare class MeshRenderer extends Renderer {
7
- private static _uvMacro;
8
- private static _uv1Macro;
9
- private static _normalMacro;
10
- private static _tangentMacro;
11
- private static _enableVertexColorMacro;
12
- private _enableVertexColor;
13
- /**
14
- * Mesh assigned to the renderer.
15
- */
16
- get mesh(): Mesh;
17
- set mesh(value: Mesh);
18
- /**
19
- * Whether enable vertex color.
20
- */
21
- get enableVertexColor(): boolean;
22
- set enableVertexColor(value: boolean);
23
- private _setMesh;
24
- private _onMeshChanged;
25
- }
@@ -1,254 +0,0 @@
1
- import { Color, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
2
- import { Engine } from "../Engine";
3
- import { Buffer } from "../graphic/Buffer";
4
- import { Mesh } from "../graphic/Mesh";
5
- import { VertexBufferBinding } from "../graphic/VertexBufferBinding";
6
- import { VertexElement } from "../graphic/VertexElement";
7
- import { BlendShape } from "./BlendShape";
8
- import { VertexAttribute } from "./enums/VertexAttribute";
9
- /**
10
- * Mesh containing common vertex elements of the model.
11
- */
12
- export declare class ModelMesh extends Mesh {
13
- private static _tempVec0;
14
- private static _tempVec1;
15
- private static _tempVec2;
16
- private static _tempVec3;
17
- private static _tempVec4;
18
- private _vertexCount;
19
- private _vertexCountDirty;
20
- private _dataVersionCounter;
21
- private _positions;
22
- private _normals;
23
- private _colors;
24
- private _tangents;
25
- private _uv;
26
- private _uv1;
27
- private _uv2;
28
- private _uv3;
29
- private _uv4;
30
- private _uv5;
31
- private _uv6;
32
- private _uv7;
33
- private _boneWeights;
34
- private _boneIndices;
35
- private _advancedElementUpdateFlag;
36
- private _advancedDataUpdateFlag;
37
- private _advancedVertexDataVersions;
38
- private _advancedDataSyncToBuffer;
39
- private _internalVertexBufferStride;
40
- private _internalVertexBufferCreatedInfo;
41
- private _internalVertexElementsOffset;
42
- private _internalVertexElementsFlags;
43
- private _vertexBufferInfos;
44
- private _indices;
45
- private _indicesFormat;
46
- private _indicesChangeFlag;
47
- /**
48
- * Vertex count of mesh.
49
- */
50
- get vertexCount(): number;
51
- /**
52
- * Vertex element collection.
53
- */
54
- get vertexElements(): Readonly<VertexElement[]>;
55
- /**
56
- * Vertex buffer binding collection.
57
- */
58
- get vertexBufferBindings(): ReadonlyArray<VertexBufferBinding>;
59
- /**
60
- * BlendShapes of this ModelMesh.
61
- */
62
- get blendShapes(): Readonly<BlendShape[]>;
63
- /**
64
- * BlendShape count of this ModelMesh.
65
- */
66
- get blendShapeCount(): number;
67
- /**
68
- * Create a model mesh.
69
- * @param engine - Engine to which the mesh belongs
70
- * @param name - Mesh name
71
- */
72
- constructor(engine: Engine, name?: string);
73
- /**
74
- * Set positions for the mesh.
75
- * @param positions - The positions for the mesh
76
- */
77
- setPositions(positions: Vector3[] | null): void;
78
- /**
79
- * Get positions for the mesh.
80
- * @remarks Please call the setPositions() method after modification to ensure that the modification takes effect.
81
- */
82
- getPositions(): Vector3[] | null;
83
- /**
84
- * Set per-vertex normals for the mesh.
85
- * @param normals - The normals for the mesh
86
- */
87
- setNormals(normals: Vector3[] | null): void;
88
- /**
89
- * Get normals for the mesh.
90
- * @remarks Please call the setNormals() method after modification to ensure that the modification takes effect.
91
- */
92
- getNormals(): Vector3[] | null;
93
- /**
94
- * Set per-vertex colors for the mesh.
95
- * @param colors - The colors for the mesh
96
- */
97
- setColors(colors: Color[] | null): void;
98
- /**
99
- * Get colors for the mesh.
100
- * @remarks Please call the setColors() method after modification to ensure that the modification takes effect.
101
- */
102
- getColors(): Color[] | null;
103
- /**
104
- * Set per-vertex bone weights for the mesh.
105
- * @param boneWeights - The bone weights for the mesh
106
- */
107
- setBoneWeights(boneWeights: Vector4[] | null): void;
108
- /**
109
- * Get bone weights for the mesh.
110
- * @remarks Please call the setWeights() method after modification to ensure that the modification takes effect.
111
- */
112
- getBoneWeights(): Vector4[] | null;
113
- /**
114
- * Set per-vertex bone indices for the mesh.
115
- * @param boneIndices - The bone indices for the mesh
116
- */
117
- setBoneIndices(boneIndices: Vector4[] | null): void;
118
- /**
119
- * Get bone indices for the mesh.
120
- * @remarks Please call the setBoneIndices() method after modification to ensure that the modification takes effect.
121
- */
122
- getBoneIndices(): Vector4[] | null;
123
- /**
124
- * Set per-vertex tangents for the mesh.
125
- * @param tangents - The tangents for the mesh
126
- */
127
- setTangents(tangents: Vector4[] | null): void;
128
- /**
129
- * Get tangents for the mesh.
130
- * @remarks Please call the setTangents() method after modification to ensure that the modification takes effect.
131
- */
132
- getTangents(): Vector4[] | null;
133
- /**
134
- * Set per-vertex uv for the mesh.
135
- * @param uv - The uv for the mesh
136
- */
137
- setUVs(uv: Vector2[] | null): void;
138
- /**
139
- * Set per-vertex uv for the mesh by channelIndex.
140
- * @param uv - The uv for the mesh
141
- * @param channelIndex - The index of uv channels, in [0 ~ 7] range
142
- */
143
- setUVs(uv: Vector2[] | null, channelIndex: number): void;
144
- /**
145
- * Get uv for the mesh.
146
- * @remarks Please call the setUV() method after modification to ensure that the modification takes effect.
147
- */
148
- getUVs(): Vector2[] | null;
149
- /**
150
- * Get uv for the mesh by channelIndex.
151
- * @param channelIndex - The index of uv channels, in [0 ~ 7] range.
152
- * @remarks Please call the setUV() method after modification to ensure that the modification takes effect.
153
- */
154
- getUVs(channelIndex: number): Vector2[] | null;
155
- /**
156
- * Set indices for the mesh.
157
- * @param indices - The indices for the mesh
158
- */
159
- setIndices(indices: Uint8Array | Uint16Array | Uint32Array): void;
160
- /**
161
- * Get indices for the mesh.
162
- */
163
- getIndices(): Uint8Array | Uint16Array | Uint32Array;
164
- /**
165
- * Set vertex elements.
166
- * @param elements - Vertex element collection
167
- *
168
- * @remarks
169
- * Call this method will clear the vertex data set by the setPositions(), setNormals(), setColors(), setBoneWeights(), setBoneIndices(), setTangents(), setUVs() methods.
170
- */
171
- setVertexElements(elements: VertexElement[]): void;
172
- /**
173
- * Set vertex buffer binding.
174
- * @param vertexBufferBinding - Vertex buffer binding
175
- * @param index - Vertex buffer index, the default value is 0
176
- */
177
- setVertexBufferBinding(vertexBufferBinding: VertexBufferBinding, index?: number): void;
178
- /**
179
- * Set vertex buffer binding.
180
- * @param vertexBuffer - Vertex buffer
181
- * @param stride - Vertex buffer data stride
182
- * @param index - Vertex buffer index, the default value is 0
183
- */
184
- setVertexBufferBinding(vertexBuffer: Buffer, stride: number, index?: number): void;
185
- /**
186
- * Set vertex buffer binding.
187
- * @param vertexBufferBindings - Vertex buffer binding
188
- * @param firstIndex - First vertex buffer index, the default value is 0
189
- */
190
- setVertexBufferBindings(vertexBufferBindings: VertexBufferBinding[], firstIndex?: number): void;
191
- /**
192
- * Get `VertexElement` by attribute.
193
- * @param attribute - Vertex attribute
194
- * @returns Vertex element
195
- */
196
- getVertexElement(attribute: VertexAttribute): VertexElement | null;
197
- /**
198
- * Add a BlendShape for this ModelMesh.
199
- * @param blendShape - The BlendShape
200
- */
201
- addBlendShape(blendShape: BlendShape): void;
202
- /**
203
- * Clear all BlendShapes.
204
- */
205
- clearBlendShapes(): void;
206
- /**
207
- * Get name of BlendShape by given index.
208
- * @param index - The index of BlendShape
209
- * @returns The name of BlendShape
210
- */
211
- getBlendShapeName(index: number): string;
212
- /**
213
- * Upload data to GPU set by `setPositions()`, `setNormals()`, `setColors()`, `setBoneWeights()`, `setBoneIndices()`, `setTangents()`, `setUVs()`, `setIndices()` methods.
214
- * This method will be auto generate vertex element and vertex buffer binding if needed.
215
- *
216
- * @param releaseData - Whether to release the data cache, release data can reduce memory usage.
217
- */
218
- uploadData(releaseData: boolean): void;
219
- /**
220
- * Calculate mesh tangent.
221
- * @remark need to set positions(with or not with indices), normals, uv before calculation.
222
- * @remark based on http://foundationsofgameenginedev.com/FGED2-sample.pdf
223
- */
224
- calculateTangents(): void;
225
- private _getVertexElementData;
226
- private _beforeSetAdvancedVertexData;
227
- private _updateAdvancedVertexDataMarks;
228
- private _updateInternalVertexBuffer;
229
- private _readVector2VertexData;
230
- private _readVector3VertexData;
231
- private _readVector4VertexData;
232
- private _readColorVertexData;
233
- private _readVertexData;
234
- private _updateAdvancedVertexElement;
235
- private _updateAdvancedVertexElements;
236
- private _updateVertexElements;
237
- private _writeVector2AdvancedVertexData;
238
- private _writeVector3AdvancedVertexData;
239
- private _writeVector4AdvancedVertexData;
240
- private _writeColorAdvancedVertexData;
241
- private _writeAdvancedVertexData;
242
- private _updateAdvancedVertices;
243
- private _getInternalVertexBufferIndex;
244
- private _getAttributeFormat;
245
- private _getAttributeByteLength;
246
- private _releaseCache;
247
- /** @deprecated */
248
- private _accessible;
249
- /**
250
- * @deprecated
251
- * Whether to access data of the mesh.
252
- */
253
- get accessible(): boolean;
254
- }
@@ -1,112 +0,0 @@
1
- import { Engine } from "../Engine";
2
- import { Buffer } from "../graphic/Buffer";
3
- import { ModelMesh } from "./ModelMesh";
4
- /**
5
- * Used to generate common primitive meshes.
6
- */
7
- export declare class PrimitiveMesh {
8
- private static _tempVec30;
9
- private static readonly _sphereSeedPositions;
10
- private static readonly _sphereSeedCells;
11
- private static _sphereEdgeIdx;
12
- private static _spherePoleIdx;
13
- /**
14
- * Create a sphere mesh.
15
- * @param engine - Engine
16
- * @param radius - Sphere radius
17
- * @param segments - Number of segments
18
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
19
- * @returns Sphere model mesh
20
- */
21
- static createSphere(engine: Engine, radius?: number, segments?: number, noLongerAccessible?: boolean): ModelMesh;
22
- /**
23
- * Create a sphere mesh by implementing Catmull-Clark Surface Subdivision Algorithm.
24
- * Max step is limited to 6.
25
- * @param engine - Engine
26
- * @param radius - Sphere radius
27
- * @param step - Number of subdiv steps
28
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
29
- * @returns Sphere model mesh
30
- */
31
- static createSubdivisionSurfaceSphere(engine: Engine, radius?: number, step?: number, noLongerAccessible?: boolean): ModelMesh;
32
- /**
33
- * Create a cuboid mesh.
34
- * @param engine - Engine
35
- * @param width - Cuboid width
36
- * @param height - Cuboid height
37
- * @param depth - Cuboid depth
38
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
39
- * @returns Cuboid model mesh
40
- */
41
- static createCuboid(engine: Engine, width?: number, height?: number, depth?: number, noLongerAccessible?: boolean): ModelMesh;
42
- /**
43
- * Create a plane mesh.
44
- * @param engine - Engine
45
- * @param width - Plane width
46
- * @param height - Plane height
47
- * @param horizontalSegments - Plane horizontal segments
48
- * @param verticalSegments - Plane vertical segments
49
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
50
- * @returns Plane model mesh
51
- */
52
- static createPlane(engine: Engine, width?: number, height?: number, horizontalSegments?: number, verticalSegments?: number, noLongerAccessible?: boolean): ModelMesh;
53
- /**
54
- * Create a cylinder mesh.
55
- * @param engine - Engine
56
- * @param radiusTop - The radius of top cap
57
- * @param radiusBottom - The radius of bottom cap
58
- * @param height - The height of torso
59
- * @param radialSegments - Cylinder radial segments
60
- * @param heightSegments - Cylinder height segments
61
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
62
- * @returns Cylinder model mesh
63
- */
64
- static createCylinder(engine: Engine, radiusTop?: number, radiusBottom?: number, height?: number, radialSegments?: number, heightSegments?: number, noLongerAccessible?: boolean): ModelMesh;
65
- /**
66
- * Create a torus mesh.
67
- * @param engine - Engine
68
- * @param radius - Torus radius
69
- * @param tubeRadius - Torus tube
70
- * @param radialSegments - Torus radial segments
71
- * @param tubularSegments - Torus tubular segments
72
- * @param arc - Central angle
73
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
74
- * @returns Torus model mesh
75
- */
76
- static createTorus(engine: Engine, radius?: number, tubeRadius?: number, radialSegments?: number, tubularSegments?: number, arc?: number, noLongerAccessible?: boolean): ModelMesh;
77
- /**
78
- * Create a cone mesh.
79
- * @param engine - Engine
80
- * @param radius - The radius of cap
81
- * @param height - The height of torso
82
- * @param radialSegments - Cone radial segments
83
- * @param heightSegments - Cone height segments
84
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
85
- * @returns Cone model mesh
86
- */
87
- static createCone(engine: Engine, radius?: number, height?: number, radialSegments?: number, heightSegments?: number, noLongerAccessible?: boolean): ModelMesh;
88
- /**
89
- * Create a capsule mesh.
90
- * @param engine - Engine
91
- * @param radius - The radius of the two hemispherical ends
92
- * @param height - The height of the cylindrical part, measured between the centers of the hemispherical ends
93
- * @param radialSegments - Hemispherical end radial segments
94
- * @param heightSegments - Cylindrical part height segments
95
- * @param noLongerAccessible - No longer access the vertices of the mesh after creation
96
- * @returns Capsule model mesh
97
- */
98
- static createCapsule(engine: Engine, radius?: number, height?: number, radialSegments?: number, heightSegments?: number, noLongerAccessible?: boolean): ModelMesh;
99
- /**
100
- * Duplicate vertices at the poles and adjust their UV coordinates.
101
- */
102
- private static _generateAndReplacePoleUV;
103
- /**
104
- * Get edge point index for subdivision surface sphere.
105
- */
106
- private static _calculateEdgeIndex;
107
- static _setCylinderData(cylinderMesh: ModelMesh, radiusTop: number, radiusBottom: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean, restoreVertexBuffer?: Buffer): void;
108
- static _setCapsuleData(capsuleMesh: ModelMesh, radius: number, height: number, radialSegments: number, heightSegments: number, noLongerAccessible: boolean, isRestoreMode: boolean, restoreVertexBuffer?: Buffer): void;
109
- private static _initialize;
110
- private static _generateIndices;
111
- private static _createCapsuleCap;
112
- }
@@ -1 +0,0 @@
1
- export {};