rhodonite 0.26.0 → 0.27.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 (370) hide show
  1. package/VERSION-FILE +1 -1
  2. package/dist/esm/foundation/core/MemoryManager.d.ts +19 -0
  3. package/dist/esm/foundation/core/MemoryManager.js +2 -2
  4. package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +1 -0
  5. package/dist/esm/foundation/definitions/ShaderSemantics.js +2 -2
  6. package/dist/esm/foundation/helpers/Shadow/ShadowSystem.js +1 -1
  7. package/dist/esm/foundation/helpers/materials/createNodeBasedRaymarchingMaterials.js +1 -1
  8. package/dist/esm/foundation/helpers/materials/nodeBasedMaterialCommon.js +1 -1
  9. package/dist/esm/foundation/importer/DrcPointCloudImporter.js +1 -1
  10. package/dist/esm/foundation/importer/Gltf2Importer.d.ts +2 -1
  11. package/dist/esm/foundation/importer/Gltf2Importer.js +1 -1
  12. package/dist/esm/foundation/importer/GltfImporter.js +1 -1
  13. package/dist/esm/foundation/importer/RhodoniteImportExtension.js +1 -1
  14. package/dist/esm/foundation/importer/Vrm0xImporter.js +1 -1
  15. package/dist/esm/foundation/importer/VrmImporter.js +1 -1
  16. package/dist/esm/foundation/materials/contents/CustomMaterialContent.js +1 -1
  17. package/dist/esm/foundation/materials/contents/MToon0xMaterialContent.js +11 -11
  18. package/dist/esm/foundation/materials/contents/MToon1MaterialContent.js +6 -6
  19. package/dist/esm/foundation/materials/core/AbstractMaterialContent.js +1 -1
  20. package/dist/esm/foundation/materials/core/Material.d.ts +7 -2
  21. package/dist/esm/foundation/materials/core/Material.js +1 -1
  22. package/dist/esm/foundation/materials/core/ShaderityUtilityWebGL.js +2 -2
  23. package/dist/esm/foundation/materials/core/ShaderityUtilityWebGPU.js +2 -2
  24. package/dist/esm/foundation/memory/Accessor.js +6 -6
  25. package/dist/esm/foundation/memory/BufferView.js +1 -1
  26. package/dist/esm/foundation/misc/PngDecoder.d.ts +18 -0
  27. package/dist/esm/foundation/misc/PngDecoder.js +1 -0
  28. package/dist/esm/foundation/renderer/RenderPass.d.ts +7 -0
  29. package/dist/esm/foundation/renderer/RenderPass.js +1 -1
  30. package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +2 -1
  31. package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.js +1 -1
  32. package/dist/esm/foundation/system/Engine.js +1 -1
  33. package/dist/esm/foundation/textures/CubeTexture.d.ts +11 -2
  34. package/dist/esm/foundation/textures/CubeTexture.js +1 -1
  35. package/dist/esm/foundation/textures/RenderTargetTexture2DArray.js +1 -1
  36. package/dist/esm/foundation/textures/RenderTargetTextureCube.d.ts +6 -0
  37. package/dist/esm/foundation/textures/RenderTargetTextureCube.js +1 -1
  38. package/dist/esm/version.js +1 -1
  39. package/dist/esm/webgl/MultiDraw.js +1 -1
  40. package/dist/esm/webgl/MultiDrawRepository.js +1 -1
  41. package/dist/esm/webgl/WebGLResourceRepository.d.ts +5 -0
  42. package/dist/esm/webgl/WebGLResourceRepository.js +3 -3
  43. package/dist/esm/webgl/WebGLStereoUtil.js +1 -1
  44. package/dist/esm/webgl/WebGLStrategyWebGL2.d.ts +19 -14
  45. package/dist/esm/webgl/WebGLStrategyWebGL2.js +67 -67
  46. package/dist/esm/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.glsl.js +2 -1
  47. package/dist/esm/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.glsl.js +1 -0
  48. package/dist/esm/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -0
  49. package/dist/esm/webgl/shaderity_shaders/common/iblDefinition.glsl.js +11 -5
  50. package/dist/esm/webgl/shaders/nodes/BlockBeginShader.js +1 -1
  51. package/dist/esm/webgl/shaders/nodes/BlockEndShader.js +1 -1
  52. package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.js +5 -5
  53. package/dist/esm/webgl/shaders/nodes/RaymarchObjectIdUniform.js +3 -3
  54. package/dist/esm/webgl/shaders/nodes/SdApplyWorldMatrix.js +3 -3
  55. package/dist/esm/webgl/shaders/nodes/Texture2DShader.js +14 -14
  56. package/dist/esm/webgl/shaders/nodes/UniformDataShader.js +13 -13
  57. package/dist/esm/webgpu/GpuCullingRegistry.js +1 -1
  58. package/dist/esm/webgpu/GpuDeformRegistry.js +1 -1
  59. package/dist/esm/webgpu/WebGpuGpuTimer.js +1 -1
  60. package/dist/esm/webgpu/WebGpuResourceRepository.d.ts +6 -0
  61. package/dist/esm/webgpu/WebGpuResourceRepository.js +5 -5
  62. package/dist/esm/webgpu/WebGpuStrategyBasic.js +2 -2
  63. package/dist/esm/webgpu/WebGpuVertexDeformer.js +1 -1
  64. package/dist/esm/webgpu/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.wgsl.js +1 -0
  65. package/dist/esm/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.wgsl.js +1 -0
  66. package/dist/esm/webgpu/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +1 -0
  67. package/dist/esm/webgpu/shaderity_shaders/common/iblDefinition.wgsl.js +10 -4
  68. package/dist/esmdev/foundation/core/MemoryManager.d.ts +19 -0
  69. package/dist/esmdev/foundation/core/MemoryManager.js +28 -3
  70. package/dist/esmdev/foundation/core/RnObject.js +37 -37
  71. package/dist/esmdev/foundation/definitions/Blend.js +3 -3
  72. package/dist/esmdev/foundation/definitions/ComponentType.js +7 -7
  73. package/dist/esmdev/foundation/definitions/CompositionType.js +50 -50
  74. package/dist/esmdev/foundation/definitions/CompressionTextureType.js +6 -6
  75. package/dist/esmdev/foundation/definitions/ShaderSemantics.d.ts +1 -0
  76. package/dist/esmdev/foundation/definitions/ShaderSemantics.js +12 -7
  77. package/dist/esmdev/foundation/definitions/TextureFormat.js +3 -3
  78. package/dist/esmdev/foundation/definitions/TextureParameter.js +3 -3
  79. package/dist/esmdev/foundation/definitions/VertexAttribute.js +30 -30
  80. package/dist/esmdev/foundation/enhanced_js_objects/Array.js +2 -2
  81. package/dist/esmdev/foundation/exporter/Gltf2Exporter.js +106 -106
  82. package/dist/esmdev/foundation/geometry/ComplexVertexAttribute.js +18 -18
  83. package/dist/esmdev/foundation/geometry/Frustum.js +39 -39
  84. package/dist/esmdev/foundation/geometry/Mesh.js +205 -205
  85. package/dist/esmdev/foundation/geometry/Primitive.js +124 -124
  86. package/dist/esmdev/foundation/geometry/SimpleVertexAttribute.js +7 -7
  87. package/dist/esmdev/foundation/geometry/shapes/Cylinder.js +3 -3
  88. package/dist/esmdev/foundation/geometry/shapes/Joint.js +33 -33
  89. package/dist/esmdev/foundation/gizmos/AABBGizmo.js +12 -12
  90. package/dist/esmdev/foundation/gizmos/CapsuleColliderGizmo.js +23 -23
  91. package/dist/esmdev/foundation/gizmos/Gizmo.js +23 -23
  92. package/dist/esmdev/foundation/gizmos/JointGizmo.js +35 -35
  93. package/dist/esmdev/foundation/gizmos/LightGizmo.js +23 -23
  94. package/dist/esmdev/foundation/gizmos/LocatorGizmo.js +22 -22
  95. package/dist/esmdev/foundation/gizmos/RotationGizmo.js +197 -197
  96. package/dist/esmdev/foundation/gizmos/ScaleGizmo.js +129 -129
  97. package/dist/esmdev/foundation/gizmos/ShapeGizmo.js +43 -43
  98. package/dist/esmdev/foundation/gizmos/SphereColliderGizmo.js +24 -24
  99. package/dist/esmdev/foundation/gizmos/TranslationGizmo.js +129 -129
  100. package/dist/esmdev/foundation/helpers/BloomHelper.js +28 -28
  101. package/dist/esmdev/foundation/helpers/GaussianBlurHelper.js +18 -18
  102. package/dist/esmdev/foundation/helpers/Shadow/PointShadowMap.js +11 -11
  103. package/dist/esmdev/foundation/helpers/Shadow/ShadowMap.js +5 -5
  104. package/dist/esmdev/foundation/helpers/Shadow/ShadowSystem.js +111 -111
  105. package/dist/esmdev/foundation/helpers/materials/createNodeBasedRaymarchingMaterials.js +10 -1
  106. package/dist/esmdev/foundation/helpers/materials/nodeBasedMaterialCommon.js +11 -1
  107. package/dist/esmdev/foundation/importer/AnimationAssigner.js +44 -44
  108. package/dist/esmdev/foundation/importer/DrcPointCloudImporter.js +27 -27
  109. package/dist/esmdev/foundation/importer/Gltf2Importer.d.ts +2 -1
  110. package/dist/esmdev/foundation/importer/Gltf2Importer.js +21 -17
  111. package/dist/esmdev/foundation/importer/GltfImporter.js +22 -22
  112. package/dist/esmdev/foundation/importer/ModelConverter.js +131 -131
  113. package/dist/esmdev/foundation/importer/RhodoniteImportExtension.js +6 -6
  114. package/dist/esmdev/foundation/importer/Vrm0xImporter.js +48 -48
  115. package/dist/esmdev/foundation/importer/VrmImporter.js +10 -10
  116. package/dist/esmdev/foundation/materials/contents/CustomMaterialContent.js +37 -28
  117. package/dist/esmdev/foundation/materials/contents/DepthEncodeMaterialContent.js +2 -2
  118. package/dist/esmdev/foundation/materials/contents/MToon0xMaterialContent.js +145 -137
  119. package/dist/esmdev/foundation/materials/contents/MToon1MaterialContent.js +27 -19
  120. package/dist/esmdev/foundation/materials/contents/ShadowMapDecodeClassicMaterialContent.js +5 -5
  121. package/dist/esmdev/foundation/materials/contents/VarianceShadowMapDecodeClassicMaterialContent.js +4 -4
  122. package/dist/esmdev/foundation/materials/core/AbstractMaterialContent.js +47 -47
  123. package/dist/esmdev/foundation/materials/core/AbstractShaderNode.js +25 -25
  124. package/dist/esmdev/foundation/materials/core/DummyTextures.js +3 -3
  125. package/dist/esmdev/foundation/materials/core/Material.d.ts +7 -2
  126. package/dist/esmdev/foundation/materials/core/Material.js +113 -99
  127. package/dist/esmdev/foundation/materials/core/MaterialRepository.js +51 -51
  128. package/dist/esmdev/foundation/materials/core/ShaderGraphResolver.js +38 -38
  129. package/dist/esmdev/foundation/materials/core/ShaderHandler.js +4 -4
  130. package/dist/esmdev/foundation/materials/core/ShaderityUtilityWebGL.js +14 -14
  131. package/dist/esmdev/foundation/materials/core/ShaderityUtilityWebGPU.js +15 -15
  132. package/dist/esmdev/foundation/materials/nodes/AbsShaderNode.js +13 -13
  133. package/dist/esmdev/foundation/materials/nodes/AcosShaderNode.js +13 -13
  134. package/dist/esmdev/foundation/materials/nodes/AddShaderNode.js +18 -18
  135. package/dist/esmdev/foundation/materials/nodes/AlphaTestShaderNode.js +5 -5
  136. package/dist/esmdev/foundation/materials/nodes/AndShaderNode.js +6 -6
  137. package/dist/esmdev/foundation/materials/nodes/Atan2ShaderNode.js +15 -15
  138. package/dist/esmdev/foundation/materials/nodes/AttributeColorShaderNode.js +1 -1
  139. package/dist/esmdev/foundation/materials/nodes/AttributeInstanceIdsShaderNode.js +1 -1
  140. package/dist/esmdev/foundation/materials/nodes/AttributeJointShaderNode.js +1 -1
  141. package/dist/esmdev/foundation/materials/nodes/AttributeNormalShaderNode.js +1 -1
  142. package/dist/esmdev/foundation/materials/nodes/AttributePositionShaderNode.js +2 -2
  143. package/dist/esmdev/foundation/materials/nodes/AttributeTangentShaderNode.js +1 -1
  144. package/dist/esmdev/foundation/materials/nodes/AttributeTexcoordShaderNode.js +2 -2
  145. package/dist/esmdev/foundation/materials/nodes/AttributeWeightShaderNode.js +1 -1
  146. package/dist/esmdev/foundation/materials/nodes/BlockBeginShaderNode.js +11 -11
  147. package/dist/esmdev/foundation/materials/nodes/BlockEndShaderNode.js +6 -6
  148. package/dist/esmdev/foundation/materials/nodes/BranchShaderNode.js +15 -15
  149. package/dist/esmdev/foundation/materials/nodes/CalcBitangentShaderNode.js +7 -7
  150. package/dist/esmdev/foundation/materials/nodes/CastToFloatShaderNode.js +13 -13
  151. package/dist/esmdev/foundation/materials/nodes/ClampShaderNode.js +15 -15
  152. package/dist/esmdev/foundation/materials/nodes/ClassicShaderNode.js +11 -11
  153. package/dist/esmdev/foundation/materials/nodes/ConstantScalarVariableShaderNode.js +1 -1
  154. package/dist/esmdev/foundation/materials/nodes/ConstantVariableShaderNode.js +5 -5
  155. package/dist/esmdev/foundation/materials/nodes/ConstantVector2VariableShaderNode.js +1 -1
  156. package/dist/esmdev/foundation/materials/nodes/ConstantVector3VariableShaderNode.js +1 -1
  157. package/dist/esmdev/foundation/materials/nodes/ConstantVector4VariableShaderNode.js +1 -1
  158. package/dist/esmdev/foundation/materials/nodes/CosShaderNode.js +13 -13
  159. package/dist/esmdev/foundation/materials/nodes/DiscardShaderNode.js +2 -2
  160. package/dist/esmdev/foundation/materials/nodes/DotProductShaderNode.js +10 -10
  161. package/dist/esmdev/foundation/materials/nodes/EqualShaderNode.js +10 -10
  162. package/dist/esmdev/foundation/materials/nodes/FlatShaderNode.js +5 -5
  163. package/dist/esmdev/foundation/materials/nodes/GreaterOrEqualShaderNode.js +10 -10
  164. package/dist/esmdev/foundation/materials/nodes/GreaterShaderNode.js +3 -3
  165. package/dist/esmdev/foundation/materials/nodes/GreaterThanShaderNode.js +10 -10
  166. package/dist/esmdev/foundation/materials/nodes/LengthShaderNode.js +13 -13
  167. package/dist/esmdev/foundation/materials/nodes/LessOrEqualShaderNode.js +10 -10
  168. package/dist/esmdev/foundation/materials/nodes/LessThanShaderNode.js +10 -10
  169. package/dist/esmdev/foundation/materials/nodes/MergeVectorShaderNode.js +19 -19
  170. package/dist/esmdev/foundation/materials/nodes/MinShaderNode.js +18 -18
  171. package/dist/esmdev/foundation/materials/nodes/MultiplyShaderNode.js +21 -21
  172. package/dist/esmdev/foundation/materials/nodes/NormalMatrixShaderNode.js +1 -1
  173. package/dist/esmdev/foundation/materials/nodes/NormalizeShaderNode.js +9 -9
  174. package/dist/esmdev/foundation/materials/nodes/NotEqualShaderNode.js +10 -10
  175. package/dist/esmdev/foundation/materials/nodes/OrShaderNode.js +6 -6
  176. package/dist/esmdev/foundation/materials/nodes/OutColorShaderNode.js +2 -2
  177. package/dist/esmdev/foundation/materials/nodes/OutPositionShaderNode.js +2 -2
  178. package/dist/esmdev/foundation/materials/nodes/PbrAnisotropyPropsShaderNode.js +5 -5
  179. package/dist/esmdev/foundation/materials/nodes/PbrAnisotropyRotationShaderNode.js +3 -3
  180. package/dist/esmdev/foundation/materials/nodes/PbrBaseColorPropsShaderNode.js +5 -5
  181. package/dist/esmdev/foundation/materials/nodes/PbrClearcoatPropsShaderNode.js +7 -7
  182. package/dist/esmdev/foundation/materials/nodes/PbrDiffuseTransmissionPropsShaderNode.js +6 -6
  183. package/dist/esmdev/foundation/materials/nodes/PbrEmissivePropsShaderNode.js +5 -5
  184. package/dist/esmdev/foundation/materials/nodes/PbrIridescencePropsShaderNode.js +8 -8
  185. package/dist/esmdev/foundation/materials/nodes/PbrMetallicRoughnessPropsShaderNode.js +6 -6
  186. package/dist/esmdev/foundation/materials/nodes/PbrNormalPropsShaderNode.js +11 -11
  187. package/dist/esmdev/foundation/materials/nodes/PbrOcclusionPropsShaderNode.js +4 -4
  188. package/dist/esmdev/foundation/materials/nodes/PbrShaderShaderNode.js +21 -21
  189. package/dist/esmdev/foundation/materials/nodes/PbrSheenPropsShaderNode.js +6 -6
  190. package/dist/esmdev/foundation/materials/nodes/PbrSpecularPropsShaderNode.js +6 -6
  191. package/dist/esmdev/foundation/materials/nodes/PbrTransmissionPropsShaderNode.js +4 -4
  192. package/dist/esmdev/foundation/materials/nodes/PbrVolumePropsShaderNode.js +6 -6
  193. package/dist/esmdev/foundation/materials/nodes/PremultipliedAlphaShaderNode.js +4 -4
  194. package/dist/esmdev/foundation/materials/nodes/ProcessGeometryShaderNode.js +22 -22
  195. package/dist/esmdev/foundation/materials/nodes/ProjectionMatrixShaderNode.js +1 -1
  196. package/dist/esmdev/foundation/materials/nodes/Random_HashPRNGShaderNode.js +12 -12
  197. package/dist/esmdev/foundation/materials/nodes/Random_SinHashShaderNode.js +12 -12
  198. package/dist/esmdev/foundation/materials/nodes/RemapShaderNode.js +17 -17
  199. package/dist/esmdev/foundation/materials/nodes/SinShaderNode.js +13 -13
  200. package/dist/esmdev/foundation/materials/nodes/SmoothStepShaderNode.js +15 -15
  201. package/dist/esmdev/foundation/materials/nodes/SplitVectorShaderNode.js +17 -17
  202. package/dist/esmdev/foundation/materials/nodes/StepShaderNode.js +14 -14
  203. package/dist/esmdev/foundation/materials/nodes/TanShaderNode.js +13 -13
  204. package/dist/esmdev/foundation/materials/nodes/Texture2DShaderNode.js +16 -16
  205. package/dist/esmdev/foundation/materials/nodes/TimeShaderNode.js +1 -1
  206. package/dist/esmdev/foundation/materials/nodes/TransformShaderNode.js +10 -10
  207. package/dist/esmdev/foundation/materials/nodes/UniformDataShaderNode.js +5 -5
  208. package/dist/esmdev/foundation/materials/nodes/ViewMatrixShaderNode.js +1 -1
  209. package/dist/esmdev/foundation/materials/nodes/WireframeMaterialNode.js +3 -3
  210. package/dist/esmdev/foundation/materials/nodes/WorldMatrixShaderNode.js +1 -1
  211. package/dist/esmdev/foundation/materials/nodes/raymarching/BendXYShaderNode.js +4 -4
  212. package/dist/esmdev/foundation/materials/nodes/raymarching/BendXZShaderNode.js +4 -4
  213. package/dist/esmdev/foundation/materials/nodes/raymarching/BendYXShaderNode.js +4 -4
  214. package/dist/esmdev/foundation/materials/nodes/raymarching/BendYZShaderNode.js +4 -4
  215. package/dist/esmdev/foundation/materials/nodes/raymarching/BendZXShaderNode.js +4 -4
  216. package/dist/esmdev/foundation/materials/nodes/raymarching/BendZYShaderNode.js +4 -4
  217. package/dist/esmdev/foundation/materials/nodes/raymarching/InitialPositionShaderNode.js +1 -1
  218. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothIntersectionShaderNode.js +5 -5
  219. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothSubtractionShaderNode.js +5 -5
  220. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothUnionShaderNode.js +5 -5
  221. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSubtractionShaderNode.js +6 -6
  222. package/dist/esmdev/foundation/materials/nodes/raymarching/OpUnionShaderNode.js +6 -6
  223. package/dist/esmdev/foundation/materials/nodes/raymarching/OutDistanceShaderNode.js +15 -15
  224. package/dist/esmdev/foundation/materials/nodes/raymarching/OutShadingColorShaderNode.js +2 -2
  225. package/dist/esmdev/foundation/materials/nodes/raymarching/OutUnionShaderNode.js +15 -15
  226. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchCameraPositionShaderNode.js +2 -2
  227. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitDistanceShaderNode.js +2 -2
  228. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitNormalShaderNode.js +2 -2
  229. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitPositionShaderNode.js +2 -2
  230. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchObjectIdShaderNode.js +2 -2
  231. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchObjectIdUniformShaderNode.js +4 -4
  232. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchRayDirectionShaderNode.js +2 -2
  233. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchTBNShaderNode.js +2 -2
  234. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchViewDirectionShaderNode.js +2 -2
  235. package/dist/esmdev/foundation/materials/nodes/raymarching/SdApplyTransformShaderNode.js +9 -9
  236. package/dist/esmdev/foundation/materials/nodes/raymarching/SdApplyWorldMatrixShaderNode.js +5 -5
  237. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarXShaderNode.js +3 -3
  238. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarYShaderNode.js +3 -3
  239. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarZShaderNode.js +3 -3
  240. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBoxShaderNode.js +3 -3
  241. package/dist/esmdev/foundation/materials/nodes/raymarching/SdCapsuleShaderNode.js +5 -5
  242. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatShaderNode.js +4 -4
  243. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatXShaderNode.js +4 -4
  244. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatXYShaderNode.js +4 -4
  245. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatYShaderNode.js +4 -4
  246. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatYZShaderNode.js +4 -4
  247. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatZShaderNode.js +4 -4
  248. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatZXShaderNode.js +4 -4
  249. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRoundBoxShaderNode.js +4 -4
  250. package/dist/esmdev/foundation/materials/nodes/raymarching/SdSphereShaderNode.js +3 -3
  251. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTorusShaderNode.js +4 -4
  252. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeXShaderNode.js +3 -3
  253. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeYShaderNode.js +3 -3
  254. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeZShaderNode.js +3 -3
  255. package/dist/esmdev/foundation/materials/nodes/raymarching/TwistXShaderNode.js +4 -4
  256. package/dist/esmdev/foundation/materials/nodes/raymarching/TwistYShaderNode.js +4 -4
  257. package/dist/esmdev/foundation/materials/nodes/raymarching/TwistZShaderNode.js +4 -4
  258. package/dist/esmdev/foundation/math/AABB.js +120 -120
  259. package/dist/esmdev/foundation/math/AnimatedQuaternion.js +53 -53
  260. package/dist/esmdev/foundation/math/AnimatedScalar.js +54 -54
  261. package/dist/esmdev/foundation/math/AnimatedValueEvaluationState.js +18 -18
  262. package/dist/esmdev/foundation/math/AnimatedVector2.js +54 -54
  263. package/dist/esmdev/foundation/math/AnimatedVector3.js +54 -54
  264. package/dist/esmdev/foundation/math/AnimatedVector4.js +54 -54
  265. package/dist/esmdev/foundation/math/AnimatedVectorN.js +54 -54
  266. package/dist/esmdev/foundation/math/IdentityMatrix33.js +2 -2
  267. package/dist/esmdev/foundation/math/IdentityMatrix44.js +2 -2
  268. package/dist/esmdev/foundation/math/MathClassUtil.js +3 -3
  269. package/dist/esmdev/foundation/math/Quaternion.js +13 -13
  270. package/dist/esmdev/foundation/math/Transform3D.js +72 -72
  271. package/dist/esmdev/foundation/math/shapes/MathSphere.js +7 -7
  272. package/dist/esmdev/foundation/memory/Accessor.js +369 -369
  273. package/dist/esmdev/foundation/memory/Buffer.js +39 -39
  274. package/dist/esmdev/foundation/memory/BufferView.js +29 -29
  275. package/dist/esmdev/foundation/misc/DataUtil.js +2 -2
  276. package/dist/esmdev/foundation/misc/EnumIO.js +8 -8
  277. package/dist/esmdev/foundation/misc/Logger.js +14 -14
  278. package/dist/esmdev/foundation/misc/PngDecoder.d.ts +18 -0
  279. package/dist/esmdev/foundation/misc/PngDecoder.js +113 -0
  280. package/dist/esmdev/foundation/misc/RnPromise.js +14 -14
  281. package/dist/esmdev/foundation/misc/Time.js +23 -23
  282. package/dist/esmdev/foundation/misc/WeakOption.js +14 -14
  283. package/dist/esmdev/foundation/misc/cache/Cache.js +2 -2
  284. package/dist/esmdev/foundation/misc/cache/SymbolWeakMap.js +8 -8
  285. package/dist/esmdev/foundation/physics/PhysicsWorldQuery.js +10 -10
  286. package/dist/esmdev/foundation/physics/Rapier/RapierCharacterControllerStrategy.js +186 -186
  287. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsStrategy.js +221 -221
  288. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.js +3 -3
  289. package/dist/esmdev/foundation/physics/VRMSpring/CapsuleCollider.js +36 -36
  290. package/dist/esmdev/foundation/physics/VRMSpring/SphereCollider.js +26 -26
  291. package/dist/esmdev/foundation/physics/VRMSpring/VRMSpringBone.js +6 -6
  292. package/dist/esmdev/foundation/physics/VRMSpring/VRMSpringBonePhysicsStrategy.js +39 -39
  293. package/dist/esmdev/foundation/renderer/Expression.js +6 -6
  294. package/dist/esmdev/foundation/renderer/Frame.js +6 -6
  295. package/dist/esmdev/foundation/renderer/FrameBuffer.js +25 -25
  296. package/dist/esmdev/foundation/renderer/RenderPass.d.ts +7 -0
  297. package/dist/esmdev/foundation/renderer/RenderPass.js +94 -86
  298. package/dist/esmdev/foundation/renderer/TemporalAA/PreviousFrameDataTracker.js +6 -6
  299. package/dist/esmdev/foundation/renderer/TemporalAA/TemporalAASystem.js +75 -75
  300. package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystem.js +146 -146
  301. package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystemStub.js +3 -3
  302. package/dist/esmdev/foundation/renderer/pipelines/DeferredRenderPipeline.js +4 -4
  303. package/dist/esmdev/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +2 -1
  304. package/dist/esmdev/foundation/renderer/pipelines/ForwardRenderPipeline.js +420 -420
  305. package/dist/esmdev/foundation/system/Engine.js +209 -209
  306. package/dist/esmdev/foundation/system/EventPubSub.js +8 -8
  307. package/dist/esmdev/foundation/system/InputManager.js +56 -56
  308. package/dist/esmdev/foundation/system/ModuleManager.js +3 -3
  309. package/dist/esmdev/foundation/textures/AbstractTexture.js +48 -48
  310. package/dist/esmdev/foundation/textures/CubeTexture.d.ts +11 -2
  311. package/dist/esmdev/foundation/textures/CubeTexture.js +47 -36
  312. package/dist/esmdev/foundation/textures/RenderBuffer.js +11 -11
  313. package/dist/esmdev/foundation/textures/RenderTargetTexture.js +24 -24
  314. package/dist/esmdev/foundation/textures/RenderTargetTexture2DArray.js +35 -35
  315. package/dist/esmdev/foundation/textures/RenderTargetTextureCube.d.ts +6 -0
  316. package/dist/esmdev/foundation/textures/RenderTargetTextureCube.js +25 -19
  317. package/dist/esmdev/foundation/textures/Sampler.js +24 -24
  318. package/dist/esmdev/foundation/textures/Texture.js +83 -83
  319. package/dist/esmdev/foundation/textures/TextureArray.js +8 -8
  320. package/dist/esmdev/foundation/textures/TextureDataFloat.js +26 -26
  321. package/dist/esmdev/foundation/textures/VideoTexture.js +24 -24
  322. package/dist/esmdev/version.js +2 -2
  323. package/dist/esmdev/webgl/InstanceSidTable.js +62 -62
  324. package/dist/esmdev/webgl/MultiDraw.js +2 -2
  325. package/dist/esmdev/webgl/MultiDrawRepository.js +30 -30
  326. package/dist/esmdev/webgl/WebGLContextWrapper.js +146 -146
  327. package/dist/esmdev/webgl/WebGLGpuTimer.js +30 -30
  328. package/dist/esmdev/webgl/WebGLResourceRepository.d.ts +5 -0
  329. package/dist/esmdev/webgl/WebGLResourceRepository.js +368 -307
  330. package/dist/esmdev/webgl/WebGLStereoUtil.js +39 -39
  331. package/dist/esmdev/webgl/WebGLStrategyWebGL2.d.ts +19 -14
  332. package/dist/esmdev/webgl/WebGLStrategyWebGL2.js +294 -280
  333. package/dist/esmdev/webgl/debug/ShaderParameterDebugger.js +4 -4
  334. package/dist/esmdev/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.glsl.js +2 -2
  335. package/dist/esmdev/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.glsl.js +2 -2
  336. package/dist/esmdev/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -2
  337. package/dist/esmdev/webgl/shaderity_shaders/common/iblDefinition.glsl.js +2 -2
  338. package/dist/esmdev/webgl/shaders/RaymarchingShaderPart.js +4 -4
  339. package/dist/esmdev/webgl/shaders/RaymarchingShadowShaderPart.js +14 -14
  340. package/dist/esmdev/webgl/shaders/StandardShaderPart.js +3 -3
  341. package/dist/esmdev/webgl/shaders/nodes/BlockBeginShader.js +10 -10
  342. package/dist/esmdev/webgl/shaders/nodes/BlockEndShader.js +10 -10
  343. package/dist/esmdev/webgl/shaders/nodes/ConstantVariableShader.js +21 -21
  344. package/dist/esmdev/webgl/shaders/nodes/OutDistance.js +12 -12
  345. package/dist/esmdev/webgl/shaders/nodes/OutUnion.js +9 -9
  346. package/dist/esmdev/webgl/shaders/nodes/RaymarchObjectIdUniform.js +8 -8
  347. package/dist/esmdev/webgl/shaders/nodes/SdApplyTransform.js +9 -9
  348. package/dist/esmdev/webgl/shaders/nodes/SdApplyWorldMatrix.js +8 -8
  349. package/dist/esmdev/webgl/shaders/nodes/Texture2DShader.js +23 -23
  350. package/dist/esmdev/webgl/shaders/nodes/UniformDataShader.js +23 -23
  351. package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.js +24 -24
  352. package/dist/esmdev/webgpu/GpuCullingRegistry.js +91 -91
  353. package/dist/esmdev/webgpu/GpuDeformRegistry.js +53 -53
  354. package/dist/esmdev/webgpu/RangeAllocator.js +16 -16
  355. package/dist/esmdev/webgpu/WebGpuBufferArena.js +21 -21
  356. package/dist/esmdev/webgpu/WebGpuDeviceWrapper.js +7 -7
  357. package/dist/esmdev/webgpu/WebGpuGpuCulling.js +198 -198
  358. package/dist/esmdev/webgpu/WebGpuGpuTimer.js +51 -51
  359. package/dist/esmdev/webgpu/WebGpuLightClusterBuilder.js +36 -36
  360. package/dist/esmdev/webgpu/WebGpuResourceRepository.d.ts +6 -0
  361. package/dist/esmdev/webgpu/WebGpuResourceRepository.js +655 -593
  362. package/dist/esmdev/webgpu/WebGpuStrategyBasic.js +123 -123
  363. package/dist/esmdev/webgpu/WebGpuVertexDeformer.js +128 -128
  364. package/dist/esmdev/webgpu/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.wgsl.js +2 -2
  365. package/dist/esmdev/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.wgsl.js +2 -2
  366. package/dist/esmdev/webgpu/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -2
  367. package/dist/esmdev/webgpu/shaderity_shaders/common/iblDefinition.wgsl.js +2 -2
  368. package/dist/esmdev/xr/WebARSystem.js +69 -69
  369. package/dist/esmdev/xr/WebXRSystem.js +151 -151
  370. package/package.json +2 -1
@@ -25,20 +25,20 @@ import { Gizmo } from "./Gizmo.js";
25
25
  var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
26
26
  constructor() {
27
27
  super(...arguments);
28
- this.Un = Vector3.zero();
28
+ this.Vn = Vector3.zero();
29
+ this.Xn = Vector3.one();
29
30
  this.Wn = Vector3.one();
30
- this.Vn = Vector3.one();
31
- this.Qm = false;
32
- this.Xm = false;
33
- this.xn = this.yn.bind(this);
34
- this.zn = this.An.bind(this);
35
- this.hn = this.Bn.bind(this);
31
+ this.Rm = false;
32
+ this.Ym = false;
33
+ this.yn = this.zn.bind(this);
34
+ this.An = this.Bn.bind(this);
35
+ this.jn = this.Cn.bind(this);
36
36
  }
37
37
  /**
38
38
  * Gets the resources for a specific engine, or undefined if not initialized.
39
39
  */
40
- static Pm(engine) {
41
- return _ScaleGizmo._m.get(engine.objectUID);
40
+ static Qm(engine) {
41
+ return _ScaleGizmo.$m.get(engine.objectUID);
42
42
  }
43
43
  ///
44
44
  ///
@@ -50,7 +50,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
50
50
  * @returns True if the gizmo is set up, false otherwise
51
51
  */
52
52
  get isSetup() {
53
- if (this.pm != null) {
53
+ if (this.qm != null) {
54
54
  return true;
55
55
  }
56
56
  return false;
@@ -62,7 +62,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
62
62
  * constant in screen space. This value no longer affects the visual size.
63
63
  */
64
64
  set length(val) {
65
- _ScaleGizmo.Lm = val;
65
+ _ScaleGizmo.Mm = val;
66
66
  }
67
67
  /**
68
68
  * Gets the current length of the gizmo handles
@@ -71,7 +71,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
71
71
  * constant in screen space. This value no longer affects the visual size.
72
72
  */
73
73
  get length() {
74
- return _ScaleGizmo.Lm;
74
+ return _ScaleGizmo.Mm;
75
75
  }
76
76
  /**
77
77
  * Sets the gizmo size as a fraction of the viewport height.
@@ -79,25 +79,25 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
79
79
  * @param val - The ratio of the viewport height (for example, 0.12 for 12%)
80
80
  */
81
81
  set screenSpaceRatio(val) {
82
- _ScaleGizmo.an = val;
82
+ _ScaleGizmo.bn = val;
83
83
  }
84
84
  /**
85
85
  * Gets the gizmo size as a fraction of the viewport height.
86
86
  * @returns The ratio of the viewport height occupied by the gizmo's unit axis length
87
87
  */
88
88
  get screenSpaceRatio() {
89
- return _ScaleGizmo.an;
89
+ return _ScaleGizmo.bn;
90
90
  }
91
91
  /**
92
92
  * Sets the visibility of the gizmo and manages input event registration
93
93
  * @param flg - True to show the gizmo, false to hide it
94
94
  */
95
95
  set isVisible(flg) {
96
- const resources = _ScaleGizmo.Pm(this.c);
96
+ const resources = _ScaleGizmo.Qm(this.c);
97
97
  if (!resources) {
98
98
  return;
99
99
  }
100
- if (this.wm === false && flg === true) {
100
+ if (this.xm === false && flg === true) {
101
101
  let eventTargetDom = window;
102
102
  if (Is.exist(this.c.config.eventTargetDom)) {
103
103
  eventTargetDom = this.c.config.eventTargetDom;
@@ -105,58 +105,58 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
105
105
  InputManager.register(INPUT_HANDLING_STATE_GIZMO_SCALE, [
106
106
  {
107
107
  eventName: getEvent("start"),
108
- handler: this.xn,
108
+ handler: this.yn,
109
109
  options: {},
110
110
  classInstance: this,
111
111
  eventTargetDom
112
112
  },
113
113
  {
114
114
  eventName: getEvent("move"),
115
- handler: this.zn,
115
+ handler: this.An,
116
116
  options: {},
117
117
  classInstance: this,
118
118
  eventTargetDom
119
119
  },
120
120
  {
121
121
  eventName: getEvent("end"),
122
- handler: this.hn,
122
+ handler: this.jn,
123
123
  options: {},
124
124
  classInstance: this,
125
125
  eventTargetDom
126
126
  },
127
127
  {
128
128
  eventName: "pointerleave",
129
- handler: this.hn,
129
+ handler: this.jn,
130
130
  options: {},
131
131
  classInstance: this,
132
132
  eventTargetDom
133
133
  }
134
134
  ]);
135
- this.pm.getSceneGraph().addChild(resources.groupEntity.getSceneGraph());
136
- _ScaleGizmo.cn = this.qm;
137
- if (_ScaleGizmo.$m === "local") {
138
- const quaternion = _ScaleGizmo.gn;
139
- const parent = this.qm.getSceneGraph();
135
+ this.qm.getSceneGraph().addChild(resources.groupEntity.getSceneGraph());
136
+ _ScaleGizmo.dn = this.rm;
137
+ if (_ScaleGizmo.an === "local") {
138
+ const quaternion = _ScaleGizmo.hn;
139
+ const parent = this.rm.getSceneGraph();
140
140
  if (Is.exist(parent)) {
141
141
  parent.getQuaternionRecursivelyTo(quaternion);
142
142
  } else {
143
143
  quaternion.identity();
144
144
  }
145
145
  resources.groupEntity.getTransform().localRotation = quaternion;
146
- } else if (_ScaleGizmo.$m === "world") {
147
- resources.groupEntity.getTransform().localRotation = _ScaleGizmo.gn.identity();
146
+ } else if (_ScaleGizmo.an === "world") {
147
+ resources.groupEntity.getTransform().localRotation = _ScaleGizmo.hn.identity();
148
148
  }
149
149
  }
150
- if (this.wm === true && flg === false) {
150
+ if (this.xm === true && flg === false) {
151
151
  InputManager.unregister(INPUT_HANDLING_STATE_GIZMO_SCALE);
152
- this.Wn = this.qm.getTransform().localScale;
153
- this.Un = Vector3.zero();
154
- this.Qm = false;
155
- this.Vn = this.qm.getTransform().localScale;
156
- _ScaleGizmo.Nm = "none";
152
+ this.Xn = this.rm.getTransform().localScale;
153
+ this.Vn = Vector3.zero();
154
+ this.Rm = false;
155
+ this.Wn = this.rm.getTransform().localScale;
156
+ _ScaleGizmo.Om = "none";
157
157
  }
158
158
  InputManager.setActive(INPUT_HANDLING_STATE_GIZMO_SCALE, flg);
159
- this.xm(flg);
159
+ this.ym(flg);
160
160
  resources.xyPlaneEntity.getSceneGraph().isVisible = false;
161
161
  resources.yzPlaneEntity.getSceneGraph().isVisible = false;
162
162
  resources.zxPlaneEntity.getSceneGraph().isVisible = false;
@@ -166,8 +166,8 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
166
166
  * @param space - The coordinate space to use ('local' or 'world')
167
167
  */
168
168
  setSpace(space) {
169
- _ScaleGizmo.$m = space;
170
- if (this.wm) {
169
+ _ScaleGizmo.an = space;
170
+ if (this.xm) {
171
171
  this.isVisible = false;
172
172
  this.isVisible = true;
173
173
  }
@@ -177,7 +177,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
177
177
  * @returns True if the gizmo is visible, false otherwise
178
178
  */
179
179
  get isVisible() {
180
- return this.wm;
180
+ return this.xm;
181
181
  }
182
182
  ///
183
183
  ///
@@ -190,33 +190,33 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
190
190
  * Creates all necessary meshes, materials, and entity hierarchies for the scale gizmo
191
191
  */
192
192
  _setup() {
193
- if (this.rm()) {
193
+ if (this.sm()) {
194
194
  return;
195
195
  }
196
- this.pm = createGroupEntity(this.c);
197
- this.pm.tryToSetUniqueName(`ScaleGizmo_of_${this.qm.uniqueName}`, true);
198
- this.pm.getSceneGraph().toMakeWorldMatrixTheSameAsLocalMatrix = true;
199
- this.qm.getSceneGraph()._addGizmoChild(this.pm.getSceneGraph());
200
- let resources = _ScaleGizmo.Pm(this.c);
196
+ this.qm = createGroupEntity(this.c);
197
+ this.qm.tryToSetUniqueName(`ScaleGizmo_of_${this.rm.uniqueName}`, true);
198
+ this.qm.getSceneGraph().toMakeWorldMatrixTheSameAsLocalMatrix = true;
199
+ this.rm.getSceneGraph()._addGizmoChild(this.qm.getSceneGraph());
200
+ let resources = _ScaleGizmo.Qm(this.c);
201
201
  if (!resources) {
202
- resources = this.Cn();
203
- _ScaleGizmo._m.set(this.c.objectUID, resources);
202
+ resources = this.Dn();
203
+ _ScaleGizmo.$m.set(this.c.objectUID, resources);
204
204
  }
205
- this.pm.getSceneGraph().addChild(resources.groupEntity.getSceneGraph());
205
+ this.qm.getSceneGraph().addChild(resources.groupEntity.getSceneGraph());
206
206
  resources.groupEntity.getSceneGraph().addChild(resources.xCubeEntity.getSceneGraph());
207
207
  resources.groupEntity.getSceneGraph().addChild(resources.yCubeEntity.getSceneGraph());
208
208
  resources.groupEntity.getSceneGraph().addChild(resources.zCubeEntity.getSceneGraph());
209
209
  resources.groupEntity.getSceneGraph().addChild(resources.xyPlaneEntity.getSceneGraph());
210
210
  resources.groupEntity.getSceneGraph().addChild(resources.yzPlaneEntity.getSceneGraph());
211
211
  resources.groupEntity.getSceneGraph().addChild(resources.zxPlaneEntity.getSceneGraph());
212
- _ScaleGizmo.cn = this.qm;
212
+ _ScaleGizmo.dn = this.rm;
213
213
  this.setGizmoTag();
214
- this.pm.tryToSetTag({ tag: "Gizmo", value: "Scale" });
214
+ this.qm.tryToSetTag({ tag: "Gizmo", value: "Scale" });
215
215
  }
216
216
  /**
217
217
  * Creates all resources needed for the gizmo.
218
218
  */
219
- Cn() {
219
+ Dn() {
220
220
  const xCubeEntity = createMeshEntity(this.c);
221
221
  xCubeEntity.tryToSetUniqueName("ScaleGizmo_xCube", true);
222
222
  xCubeEntity.getTransform().localPosition = Vector3.fromCopy3(0.5, 0, 0);
@@ -395,20 +395,20 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
395
395
  * Called each frame to maintain proper gizmo positioning and scaling behavior
396
396
  */
397
397
  _update() {
398
- if (this.pm == null) {
398
+ if (this.qm == null) {
399
399
  return;
400
400
  }
401
- const sg = this.qm.getSceneGraph();
401
+ const sg = this.rm.getSceneGraph();
402
402
  const aabb = sg.worldMergedAABBWithSkeletal;
403
403
  const worldPosition = aabb.isVanilla() ? sg.position : aabb.centerPoint;
404
- const transform = this.pm.getTransform();
404
+ const transform = this.qm.getTransform();
405
405
  transform.localPosition = worldPosition;
406
- const scale = Gizmo.zm(this.c, worldPosition, _ScaleGizmo.an);
406
+ const scale = Gizmo.Am(this.c, worldPosition, _ScaleGizmo.bn);
407
407
  transform.localScale = Vector3.fromCopy3(scale, scale, scale);
408
- this.ym();
409
- if (this.Qm) {
410
- if (_ScaleGizmo.cn === this.qm) {
411
- this.qm.getTransform().localScale = this.Wn;
408
+ this.zm();
409
+ if (this.Rm) {
410
+ if (_ScaleGizmo.dn === this.rm) {
411
+ this.rm.getTransform().localScale = this.Xn;
412
412
  }
413
413
  }
414
414
  }
@@ -422,13 +422,13 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
422
422
  * @returns A primitive containing position and color data for axis lines
423
423
  * @private
424
424
  */
425
- static Mm(engine) {
425
+ static Nm(engine) {
426
426
  const positions = new Float32Array([
427
427
  // X axis
428
428
  0,
429
429
  0,
430
430
  0,
431
- this.Lm,
431
+ this.Mm,
432
432
  0,
433
433
  0,
434
434
  // Y axis
@@ -436,7 +436,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
436
436
  0,
437
437
  0,
438
438
  0,
439
- this.Lm,
439
+ this.Mm,
440
440
  0,
441
441
  // Z axis
442
442
  0,
@@ -444,7 +444,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
444
444
  0,
445
445
  0,
446
446
  0,
447
- this.Lm
447
+ this.Mm
448
448
  ]);
449
449
  const color = new Float32Array([
450
450
  // X axis as Red
@@ -481,12 +481,12 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
481
481
  * @param evt - The pointer event containing input information
482
482
  * @private
483
483
  */
484
- yn(evt) {
485
- this.Qm = true;
486
- _ScaleGizmo.Nm = "none";
484
+ zn(evt) {
485
+ this.Rm = true;
486
+ _ScaleGizmo.Om = "none";
487
487
  _ScaleGizmo.S = evt.clientX;
488
488
  _ScaleGizmo.T = evt.clientY;
489
- const worldMatrix = this.qm.getSceneGraph().matrix.getRotate();
489
+ const worldMatrix = this.rm.getSceneGraph().matrix.getRotate();
490
490
  const scaleVec = Vector3.one();
491
491
  let rotMat = Matrix33.fromCopy9RowMajor(
492
492
  scaleVec.x * worldMatrix.m00,
@@ -499,42 +499,42 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
499
499
  scaleVec.z * worldMatrix.m21,
500
500
  scaleVec.z * worldMatrix.m22
501
501
  );
502
- if (_ScaleGizmo.$m === "local") {
502
+ if (_ScaleGizmo.an === "local") {
503
503
  rotMat = Matrix33.transpose(rotMat);
504
- } else if (_ScaleGizmo.$m === "world") {
504
+ } else if (_ScaleGizmo.an === "world") {
505
505
  rotMat = MutableMatrix33.identity();
506
506
  }
507
507
  const { xResult, yResult, zResult } = _ScaleGizmo.castRay(this.c, evt);
508
508
  let axisPicked = false;
509
509
  if (xResult.result) {
510
510
  assertExist(xResult.data);
511
- this.Un = rotMat.multiplyVector(xResult.data.position.clone());
512
- Logger.default.debug(`Down:${this.Un.toStringApproximately()}`);
513
- _ScaleGizmo.Nm = "x";
511
+ this.Vn = rotMat.multiplyVector(xResult.data.position.clone());
512
+ Logger.default.debug(`Down:${this.Vn.toStringApproximately()}`);
513
+ _ScaleGizmo.Om = "x";
514
514
  axisPicked = true;
515
515
  }
516
516
  if (yResult.result) {
517
517
  assertExist(yResult.data);
518
- this.Un = rotMat.multiplyVector(yResult.data.position.clone());
519
- Logger.default.debug(`Down:${this.Un.toStringApproximately()}`);
520
- _ScaleGizmo.Nm = "y";
518
+ this.Vn = rotMat.multiplyVector(yResult.data.position.clone());
519
+ Logger.default.debug(`Down:${this.Vn.toStringApproximately()}`);
520
+ _ScaleGizmo.Om = "y";
521
521
  axisPicked = true;
522
522
  }
523
523
  if (zResult.result) {
524
524
  assertExist(zResult.data);
525
- this.Un = rotMat.multiplyVector(zResult.data.position.clone());
526
- Logger.default.debug(`Down:${this.Un.toStringApproximately()}`);
527
- _ScaleGizmo.Nm = "z";
525
+ this.Vn = rotMat.multiplyVector(zResult.data.position.clone());
526
+ Logger.default.debug(`Down:${this.Vn.toStringApproximately()}`);
527
+ _ScaleGizmo.Om = "z";
528
528
  axisPicked = true;
529
529
  }
530
- if (_ScaleGizmo.Nm === "none" || axisPicked === false) {
531
- this.Qm = false;
530
+ if (_ScaleGizmo.Om === "none" || axisPicked === false) {
531
+ this.Rm = false;
532
532
  return;
533
533
  }
534
534
  evt.preventDefault();
535
- this.Gn();
536
- if (_ScaleGizmo.cn === this.qm) {
537
- this.Vn = this.qm.getTransform().localScale;
535
+ this.Hn();
536
+ if (_ScaleGizmo.dn === this.rm) {
537
+ this.Wn = this.rm.getTransform().localScale;
538
538
  }
539
539
  }
540
540
  /**
@@ -542,12 +542,12 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
542
542
  * @param evt - The pointer event containing current pointer position
543
543
  * @private
544
544
  */
545
- An(evt) {
545
+ Bn(evt) {
546
546
  evt.preventDefault();
547
- if (Is.false(this.Qm)) {
547
+ if (Is.false(this.Rm)) {
548
548
  return;
549
549
  }
550
- const resources = _ScaleGizmo.Pm(this.c);
550
+ const resources = _ScaleGizmo.Qm(this.c);
551
551
  if (!resources) {
552
552
  return;
553
553
  }
@@ -561,7 +561,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
561
561
  CameraComponent,
562
562
  CameraComponent.getCurrent(this.c)
563
563
  );
564
- const worldMatrix = this.qm.getSceneGraph().matrix.getRotate();
564
+ const worldMatrix = this.rm.getSceneGraph().matrix.getRotate();
565
565
  const scaleVec = Vector3.one();
566
566
  let rotMat = Matrix33.fromCopy9RowMajor(
567
567
  scaleVec.x * worldMatrix.m00,
@@ -574,13 +574,13 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
574
574
  scaleVec.z * worldMatrix.m21,
575
575
  scaleVec.z * worldMatrix.m22
576
576
  );
577
- if (_ScaleGizmo.$m === "local") {
577
+ if (_ScaleGizmo.an === "local") {
578
578
  rotMat = Matrix33.transpose(rotMat);
579
- } else if (_ScaleGizmo.$m === "world") {
579
+ } else if (_ScaleGizmo.an === "world") {
580
580
  rotMat = MutableMatrix33.identity();
581
581
  }
582
- let pickInMovingPoint = this.Un.clone();
583
- if (_ScaleGizmo.Nm === "x") {
582
+ let pickInMovingPoint = this.Vn.clone();
583
+ if (_ScaleGizmo.Om === "x") {
584
584
  const xResult = resources.xyPlaneEntity.getMesh().castRayFromScreenInWorld(x, y, activeCamera, viewport, 0);
585
585
  if (xResult.result) {
586
586
  assertExist(xResult.data);
@@ -589,7 +589,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
589
589
  Logger.default.debug(`Move:${xResult.data.position.toStringApproximately()}`);
590
590
  }
591
591
  }
592
- if (_ScaleGizmo.Nm === "y") {
592
+ if (_ScaleGizmo.Om === "y") {
593
593
  const yResult = resources.xyPlaneEntity.getMesh().castRayFromScreenInWorld(x, y, activeCamera, viewport, 0);
594
594
  if (yResult.result) {
595
595
  assertExist(yResult.data);
@@ -598,7 +598,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
598
598
  Logger.default.debug(`Move:${yResult.data.position.toStringApproximately()}`);
599
599
  }
600
600
  }
601
- if (_ScaleGizmo.Nm === "z") {
601
+ if (_ScaleGizmo.Om === "z") {
602
602
  const zResult = resources.yzPlaneEntity.getMesh().castRayFromScreenInWorld(x, y, activeCamera, viewport, 0);
603
603
  if (zResult.result) {
604
604
  assertExist(zResult.data);
@@ -607,29 +607,29 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
607
607
  Logger.default.debug(`Move:${zResult.data.position.toStringApproximately()}`);
608
608
  }
609
609
  }
610
- const sg = this.qm.getSceneGraph();
610
+ const sg = this.rm.getSceneGraph();
611
611
  const aabb = sg.worldMergedAABBWithSkeletal;
612
612
  const deltaVector3 = Vector3.multiplyTo(
613
- Vector3.subtractTo(pickInMovingPoint, this.Un, _ScaleGizmo.Hc),
613
+ Vector3.subtractTo(pickInMovingPoint, this.Vn, _ScaleGizmo.Hc),
614
614
  1 / aabb.lengthCenterToCorner,
615
615
  _ScaleGizmo.Dc
616
616
  );
617
- Logger.default.debug(`${this.qm.uniqueName}: ${deltaVector3.toStringApproximately()}`);
618
- if (_ScaleGizmo.$m === "local") {
619
- this.Wn = _ScaleGizmo.Ec.setComponents(
620
- Math.max(this.Vn.x + deltaVector3.x, 0.01),
621
- Math.max(this.Vn.y + deltaVector3.y, 0.01),
622
- Math.max(this.Vn.z + deltaVector3.z, 0.01)
617
+ Logger.default.debug(`${this.rm.uniqueName}: ${deltaVector3.toStringApproximately()}`);
618
+ if (_ScaleGizmo.an === "local") {
619
+ this.Xn = _ScaleGizmo.Ec.setComponents(
620
+ Math.max(this.Wn.x + deltaVector3.x, 0.01),
621
+ Math.max(this.Wn.y + deltaVector3.y, 0.01),
622
+ Math.max(this.Wn.z + deltaVector3.z, 0.01)
623
623
  );
624
- } else if (_ScaleGizmo.$m === "world") {
625
- const worldQuaternion = this.qm.getSceneGraph().getQuaternionRecursivelyTo(_ScaleGizmo.gn);
624
+ } else if (_ScaleGizmo.an === "world") {
625
+ const worldQuaternion = this.rm.getSceneGraph().getQuaternionRecursivelyTo(_ScaleGizmo.hn);
626
626
  const worldRotation = Matrix33.fromCopyQuaternion(worldQuaternion);
627
627
  const inverseWorldRotation = Matrix33.transpose(worldRotation);
628
628
  const deltaLocal = inverseWorldRotation.multiplyVectorTo(deltaVector3, _ScaleGizmo.Ec);
629
- this.Wn = _ScaleGizmo.Rn.setComponents(
630
- Math.max(this.Vn.x + deltaLocal.x, 0.01),
631
- Math.max(this.Vn.y + deltaLocal.y, 0.01),
632
- Math.max(this.Vn.z + deltaLocal.z, 0.01)
629
+ this.Xn = _ScaleGizmo.Sn.setComponents(
630
+ Math.max(this.Wn.x + deltaLocal.x, 0.01),
631
+ Math.max(this.Wn.y + deltaLocal.y, 0.01),
632
+ Math.max(this.Wn.z + deltaLocal.z, 0.01)
633
633
  );
634
634
  }
635
635
  this._update();
@@ -639,28 +639,28 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
639
639
  * @param evt - The pointer event indicating the end of interaction
640
640
  * @private
641
641
  */
642
- Bn(evt) {
642
+ Cn(evt) {
643
643
  evt.preventDefault();
644
- this.Qm = false;
645
- _ScaleGizmo.Nm = "none";
646
- this.Jn();
647
- if (_ScaleGizmo.cn === this.qm) {
648
- this.Vn = this.qm.getTransform().localScale;
644
+ this.Rm = false;
645
+ _ScaleGizmo.Om = "none";
646
+ this.Kn();
647
+ if (_ScaleGizmo.dn === this.rm) {
648
+ this.Wn = this.rm.getTransform().localScale;
649
649
  }
650
650
  }
651
- Gn() {
652
- if (this.Xm) {
651
+ Hn() {
652
+ if (this.Ym) {
653
653
  return;
654
654
  }
655
655
  InputManager.disableCameraController();
656
- this.Xm = true;
656
+ this.Ym = true;
657
657
  }
658
- Jn() {
659
- if (!this.Xm) {
658
+ Kn() {
659
+ if (!this.Ym) {
660
660
  return;
661
661
  }
662
662
  InputManager.enableCameraController();
663
- this.Xm = false;
663
+ this.Ym = false;
664
664
  }
665
665
  /**
666
666
  * Performs ray casting against the entire gizmo group entity
@@ -669,7 +669,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
669
669
  * @private
670
670
  */
671
671
  static castRay2(engine, evt) {
672
- const resources = _ScaleGizmo.Pm(engine);
672
+ const resources = _ScaleGizmo.Qm(engine);
673
673
  if (!resources) {
674
674
  return { result: false };
675
675
  }
@@ -690,7 +690,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
690
690
  * @private
691
691
  */
692
692
  static castRay(engine, evt) {
693
- const resources = _ScaleGizmo.Pm(engine);
693
+ const resources = _ScaleGizmo.Qm(engine);
694
694
  const emptyResult = { result: false };
695
695
  if (!resources) {
696
696
  return { xResult: emptyResult, yResult: emptyResult, zResult: emptyResult };
@@ -712,7 +712,7 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
712
712
  * @internal
713
713
  */
714
714
  _destroy() {
715
- this.sm();
715
+ this.tm();
716
716
  }
717
717
  /**
718
718
  * Cleans up all static resources for a specific Engine.
@@ -720,26 +720,26 @@ var _ScaleGizmo = class _ScaleGizmo extends Gizmo {
720
720
  * @internal Called from Engine.destroy()
721
721
  */
722
722
  static _cleanupForEngine(engine) {
723
- _ScaleGizmo._m.delete(engine.objectUID);
724
- _ScaleGizmo.Nm = "none";
723
+ _ScaleGizmo.$m.delete(engine.objectUID);
724
+ _ScaleGizmo.Om = "none";
725
725
  }
726
726
  };
727
727
  /** Resources managed per-Engine instance */
728
- _ScaleGizmo._m = /* @__PURE__ */ new Map();
728
+ _ScaleGizmo.$m = /* @__PURE__ */ new Map();
729
729
  _ScaleGizmo.S = 0;
730
730
  _ScaleGizmo.T = 0;
731
- _ScaleGizmo.Nm = "none";
732
- _ScaleGizmo.$m = "world";
733
- _ScaleGizmo.Lm = 1;
731
+ _ScaleGizmo.Om = "none";
732
+ _ScaleGizmo.an = "world";
733
+ _ScaleGizmo.Mm = 1;
734
734
  /** Gizmo size as a fraction of the viewport height (unit axis length). */
735
- _ScaleGizmo.an = 0.12;
735
+ _ScaleGizmo.bn = 0.12;
736
736
  /** Reusable quaternion for world-rotation calculations (avoids per-frame allocations) */
737
- _ScaleGizmo.gn = MutableQuaternion.identity();
737
+ _ScaleGizmo.hn = MutableQuaternion.identity();
738
738
  /** Reusable vectors for drag calculations (avoids per-frame allocations) */
739
739
  _ScaleGizmo.Hc = MutableVector3.zero();
740
740
  _ScaleGizmo.Dc = MutableVector3.zero();
741
741
  _ScaleGizmo.Ec = MutableVector3.zero();
742
- _ScaleGizmo.Rn = MutableVector3.zero();
742
+ _ScaleGizmo.Sn = MutableVector3.zero();
743
743
  var ScaleGizmo = _ScaleGizmo;
744
744
  export {
745
745
  ScaleGizmo