rhodonite 0.27.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (730) hide show
  1. package/VERSION-FILE +1 -1
  2. package/dist/esm/foundation/components/Light/LightComponent.d.ts +14 -0
  3. package/dist/esm/foundation/components/Light/LightComponent.js +1 -1
  4. package/dist/esm/foundation/components/Mesh/MeshComponent.js +1 -1
  5. package/dist/esm/foundation/components/MeshRenderer/MeshRendererComponent.d.ts +28 -0
  6. package/dist/esm/foundation/components/MeshRenderer/MeshRendererComponent.js +1 -1
  7. package/dist/esm/foundation/components/Physics/PhysicsComponent.js +1 -1
  8. package/dist/esm/foundation/components/Raymarching/RaymarchingSdfEvaluator.js +1 -1
  9. package/dist/esm/foundation/components/SceneGraph/SceneGraphComponent.js +1 -1
  10. package/dist/esm/foundation/components/Shape/ShapeComponent.js +1 -1
  11. package/dist/esm/foundation/components/Skeletal/AnimationRetarget/GlobalRetargetReverse.js +1 -1
  12. package/dist/esm/foundation/components/Skeletal/SkeletalComponent.js +1 -1
  13. package/dist/esm/foundation/components/Transform/TransformComponent.js +1 -1
  14. package/dist/esm/foundation/constraints/VrmRollConstraint.js +1 -1
  15. package/dist/esm/foundation/core/Component.js +1 -1
  16. package/dist/esm/foundation/core/Config.d.ts +15 -0
  17. package/dist/esm/foundation/core/Config.js +1 -1
  18. package/dist/esm/foundation/core/GlobalDataRepository.js +1 -1
  19. package/dist/esm/foundation/definitions/ShaderSemantics.js +1 -1
  20. package/dist/esm/foundation/definitions/ShaderSemanticsInfo.d.ts +1 -0
  21. package/dist/esm/foundation/definitions/ShaderSemanticsInfo.js +1 -1
  22. package/dist/esm/foundation/definitions/VertexAttribute.js +1 -1
  23. package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +6 -0
  24. package/dist/esm/foundation/exporter/Gltf2Exporter.js +1 -1
  25. package/dist/esm/foundation/geometry/Frustum.js +1 -1
  26. package/dist/esm/foundation/geometry/Mesh.d.ts +15 -0
  27. package/dist/esm/foundation/geometry/Mesh.js +1 -1
  28. package/dist/esm/foundation/geometry/Primitive.js +1 -1
  29. package/dist/esm/foundation/geometry/shapes/Cylinder.js +1 -1
  30. package/dist/esm/foundation/geometry/shapes/Joint.js +1 -1
  31. package/dist/esm/foundation/gizmos/AABBGizmo.js +1 -1
  32. package/dist/esm/foundation/gizmos/CapsuleColliderGizmo.js +1 -1
  33. package/dist/esm/foundation/gizmos/Gizmo.js +1 -1
  34. package/dist/esm/foundation/gizmos/JointGizmo.js +1 -1
  35. package/dist/esm/foundation/gizmos/LightGizmo.d.ts +108 -10
  36. package/dist/esm/foundation/gizmos/LightGizmo.js +1 -1
  37. package/dist/esm/foundation/gizmos/LocatorGizmo.js +1 -1
  38. package/dist/esm/foundation/gizmos/RotationGizmo.js +1 -1
  39. package/dist/esm/foundation/gizmos/ScaleGizmo.js +1 -1
  40. package/dist/esm/foundation/gizmos/ShapeGizmo.js +1 -1
  41. package/dist/esm/foundation/gizmos/SphereColliderGizmo.js +1 -1
  42. package/dist/esm/foundation/gizmos/TranslationGizmo.js +1 -1
  43. package/dist/esm/foundation/helpers/BloomHelper.js +1 -1
  44. package/dist/esm/foundation/helpers/GaussianBlurHelper.js +1 -1
  45. package/dist/esm/foundation/helpers/MaterialHelper.d.ts +2 -0
  46. package/dist/esm/foundation/helpers/MaterialHelper.js +1 -1
  47. package/dist/esm/foundation/helpers/Shadow/PointShadowMap.js +1 -1
  48. package/dist/esm/foundation/helpers/Shadow/ShadowMap.js +1 -1
  49. package/dist/esm/foundation/helpers/Shadow/ShadowSystem.js +1 -1
  50. package/dist/esm/foundation/helpers/materials/createClassicUberMaterial.js +1 -1
  51. package/dist/esm/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.d.ts +21 -0
  52. package/dist/esm/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.js +1 -0
  53. package/dist/esm/foundation/helpers/materials/createGaussianBlurForEncodedDepthMaterial.js +1 -1
  54. package/dist/esm/foundation/helpers/materials/createGaussianBlurMaterial.js +1 -1
  55. package/dist/esm/foundation/helpers/materials/createMotionVectorMaterial.js +1 -1
  56. package/dist/esm/foundation/helpers/materials/createNodeBasedRaymarchingMaterials.js +1 -1
  57. package/dist/esm/foundation/helpers/materials/createPbrUberMaterial.js +1 -1
  58. package/dist/esm/foundation/helpers/materials/createTemporalAAResolveMaterial.js +1 -1
  59. package/dist/esm/foundation/helpers/materials/index.d.ts +1 -0
  60. package/dist/esm/foundation/helpers/materials/index.js +1 -1
  61. package/dist/esm/foundation/helpers/materials/nodeBasedMaterialCommon.js +1 -1
  62. package/dist/esm/foundation/importer/DrcPointCloudImporter.js +1 -1
  63. package/dist/esm/foundation/importer/Gltf2Importer.js +1 -1
  64. package/dist/esm/foundation/importer/GltfImporter.js +1 -1
  65. package/dist/esm/foundation/importer/ModelConverter.d.ts +19 -0
  66. package/dist/esm/foundation/importer/ModelConverter.js +1 -1
  67. package/dist/esm/foundation/importer/RhodoniteImportExtension.js +1 -1
  68. package/dist/esm/foundation/importer/Vrm0xImporter.js +1 -1
  69. package/dist/esm/foundation/importer/VrmImporter.js +1 -1
  70. package/dist/esm/foundation/materials/contents/CustomMaterialContent.js +1 -1
  71. package/dist/esm/foundation/materials/contents/DepthEncodeMaterialContent.js +1 -1
  72. package/dist/esm/foundation/materials/contents/DetectHighLuminanceMaterialContent.js +1 -1
  73. package/dist/esm/foundation/materials/contents/EntityUIDOutputMaterialContent.js +1 -1
  74. package/dist/esm/foundation/materials/contents/FurnaceTestMaterialContent.js +1 -1
  75. package/dist/esm/foundation/materials/contents/MToon0xMaterialContent.js +18 -18
  76. package/dist/esm/foundation/materials/contents/MToon1MaterialContent.js +6 -6
  77. package/dist/esm/foundation/materials/contents/MatCapMaterialContent.js +1 -1
  78. package/dist/esm/foundation/materials/contents/ShadowMapDecodeClassicMaterialContent.js +1 -1
  79. package/dist/esm/foundation/materials/contents/SynthesizeHdrMaterialContent.js +1 -1
  80. package/dist/esm/foundation/materials/contents/VarianceShadowMapDecodeClassicMaterialContent.js +1 -1
  81. package/dist/esm/foundation/materials/core/AbstractMaterialContent.js +1 -1
  82. package/dist/esm/foundation/materials/core/AbstractShaderNode.js +2 -2
  83. package/dist/esm/foundation/materials/core/Material.js +1 -1
  84. package/dist/esm/foundation/materials/core/MaterialRepository.js +1 -1
  85. package/dist/esm/foundation/materials/core/ShaderGraphResolver.js +4 -4
  86. package/dist/esm/foundation/materials/core/ShaderHandler.js +3 -3
  87. package/dist/esm/foundation/materials/core/ShaderityUtilityWebGL.js +2 -2
  88. package/dist/esm/foundation/materials/core/ShaderityUtilityWebGPU.js +2 -2
  89. package/dist/esm/foundation/materials/nodes/AbsShaderNode.js +1 -1
  90. package/dist/esm/foundation/materials/nodes/AcosShaderNode.js +1 -1
  91. package/dist/esm/foundation/materials/nodes/AddShaderNode.js +1 -1
  92. package/dist/esm/foundation/materials/nodes/AlphaTestShaderNode.js +1 -1
  93. package/dist/esm/foundation/materials/nodes/AndShaderNode.js +1 -1
  94. package/dist/esm/foundation/materials/nodes/Atan2ShaderNode.js +1 -1
  95. package/dist/esm/foundation/materials/nodes/AttributeColorShaderNode.js +1 -1
  96. package/dist/esm/foundation/materials/nodes/AttributeInstanceIdsShaderNode.js +1 -1
  97. package/dist/esm/foundation/materials/nodes/AttributeJointShaderNode.js +1 -1
  98. package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.js +1 -1
  99. package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.js +1 -1
  100. package/dist/esm/foundation/materials/nodes/AttributeTangentShaderNode.js +1 -1
  101. package/dist/esm/foundation/materials/nodes/AttributeTexcoordShaderNode.js +1 -1
  102. package/dist/esm/foundation/materials/nodes/AttributeWeightShaderNode.js +1 -1
  103. package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.js +1 -1
  104. package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.js +1 -1
  105. package/dist/esm/foundation/materials/nodes/BranchShaderNode.js +1 -1
  106. package/dist/esm/foundation/materials/nodes/CalcBitangentShaderNode.js +1 -1
  107. package/dist/esm/foundation/materials/nodes/CastToFloatShaderNode.js +1 -1
  108. package/dist/esm/foundation/materials/nodes/ClampShaderNode.js +1 -1
  109. package/dist/esm/foundation/materials/nodes/ClassicShaderNode.js +1 -1
  110. package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.js +1 -1
  111. package/dist/esm/foundation/materials/nodes/CosShaderNode.js +1 -1
  112. package/dist/esm/foundation/materials/nodes/DotProductShaderNode.js +1 -1
  113. package/dist/esm/foundation/materials/nodes/EqualShaderNode.js +1 -1
  114. package/dist/esm/foundation/materials/nodes/FlatShaderNode.js +1 -1
  115. package/dist/esm/foundation/materials/nodes/GreaterOrEqualShaderNode.js +1 -1
  116. package/dist/esm/foundation/materials/nodes/GreaterShaderNode.js +1 -1
  117. package/dist/esm/foundation/materials/nodes/GreaterThanShaderNode.js +1 -1
  118. package/dist/esm/foundation/materials/nodes/LengthShaderNode.js +1 -1
  119. package/dist/esm/foundation/materials/nodes/LessOrEqualShaderNode.js +1 -1
  120. package/dist/esm/foundation/materials/nodes/LessThanShaderNode.js +1 -1
  121. package/dist/esm/foundation/materials/nodes/MergeVectorShaderNode.js +1 -1
  122. package/dist/esm/foundation/materials/nodes/MinShaderNode.js +1 -1
  123. package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.js +1 -1
  124. package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.js +1 -1
  125. package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.js +1 -1
  126. package/dist/esm/foundation/materials/nodes/NotEqualShaderNode.js +1 -1
  127. package/dist/esm/foundation/materials/nodes/OrShaderNode.js +1 -1
  128. package/dist/esm/foundation/materials/nodes/PbrAnisotropyPropsShaderNode.js +1 -1
  129. package/dist/esm/foundation/materials/nodes/PbrAnisotropyRotationShaderNode.js +1 -1
  130. package/dist/esm/foundation/materials/nodes/PbrBaseColorPropsShaderNode.js +1 -1
  131. package/dist/esm/foundation/materials/nodes/PbrClearcoatPropsShaderNode.js +1 -1
  132. package/dist/esm/foundation/materials/nodes/PbrDiffuseTransmissionPropsShaderNode.js +1 -1
  133. package/dist/esm/foundation/materials/nodes/PbrEmissivePropsShaderNode.js +1 -1
  134. package/dist/esm/foundation/materials/nodes/PbrIridescencePropsShaderNode.js +1 -1
  135. package/dist/esm/foundation/materials/nodes/PbrMetallicRoughnessPropsShaderNode.js +1 -1
  136. package/dist/esm/foundation/materials/nodes/PbrNormalPropsShaderNode.js +1 -1
  137. package/dist/esm/foundation/materials/nodes/PbrOcclusionPropsShaderNode.js +1 -1
  138. package/dist/esm/foundation/materials/nodes/PbrShaderShaderNode.js +1 -1
  139. package/dist/esm/foundation/materials/nodes/PbrSheenPropsShaderNode.js +1 -1
  140. package/dist/esm/foundation/materials/nodes/PbrSpecularPropsShaderNode.js +1 -1
  141. package/dist/esm/foundation/materials/nodes/PbrTransmissionPropsShaderNode.js +1 -1
  142. package/dist/esm/foundation/materials/nodes/PbrVolumePropsShaderNode.js +1 -1
  143. package/dist/esm/foundation/materials/nodes/PremultipliedAlphaShaderNode.js +1 -1
  144. package/dist/esm/foundation/materials/nodes/ProcessGeometryShaderNode.js +1 -1
  145. package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.js +1 -1
  146. package/dist/esm/foundation/materials/nodes/Random_HashPRNGShaderNode.js +1 -1
  147. package/dist/esm/foundation/materials/nodes/Random_SinHashShaderNode.js +1 -1
  148. package/dist/esm/foundation/materials/nodes/RemapShaderNode.js +1 -1
  149. package/dist/esm/foundation/materials/nodes/SinShaderNode.js +1 -1
  150. package/dist/esm/foundation/materials/nodes/SmoothStepShaderNode.js +1 -1
  151. package/dist/esm/foundation/materials/nodes/SplitVectorShaderNode.js +1 -1
  152. package/dist/esm/foundation/materials/nodes/StepShaderNode.js +1 -1
  153. package/dist/esm/foundation/materials/nodes/TanShaderNode.js +1 -1
  154. package/dist/esm/foundation/materials/nodes/Texture2DShaderNode.js +1 -1
  155. package/dist/esm/foundation/materials/nodes/TimeShaderNode.js +1 -1
  156. package/dist/esm/foundation/materials/nodes/TransformShaderNode.js +1 -1
  157. package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.js +1 -1
  158. package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.js +1 -1
  159. package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.js +1 -1
  160. package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.js +1 -1
  161. package/dist/esm/foundation/materials/nodes/raymarching/BendXYShaderNode.js +1 -1
  162. package/dist/esm/foundation/materials/nodes/raymarching/BendXZShaderNode.js +1 -1
  163. package/dist/esm/foundation/materials/nodes/raymarching/BendYXShaderNode.js +1 -1
  164. package/dist/esm/foundation/materials/nodes/raymarching/BendYZShaderNode.js +1 -1
  165. package/dist/esm/foundation/materials/nodes/raymarching/BendZXShaderNode.js +1 -1
  166. package/dist/esm/foundation/materials/nodes/raymarching/BendZYShaderNode.js +1 -1
  167. package/dist/esm/foundation/materials/nodes/raymarching/InitialPositionShaderNode.js +1 -1
  168. package/dist/esm/foundation/materials/nodes/raymarching/OpSmoothIntersectionShaderNode.js +1 -1
  169. package/dist/esm/foundation/materials/nodes/raymarching/OpSmoothSubtractionShaderNode.js +1 -1
  170. package/dist/esm/foundation/materials/nodes/raymarching/OpSmoothUnionShaderNode.js +1 -1
  171. package/dist/esm/foundation/materials/nodes/raymarching/OpSubtractionShaderNode.js +1 -1
  172. package/dist/esm/foundation/materials/nodes/raymarching/OpUnionShaderNode.js +1 -1
  173. package/dist/esm/foundation/materials/nodes/raymarching/OutDistanceShaderNode.js +1 -1
  174. package/dist/esm/foundation/materials/nodes/raymarching/OutUnionShaderNode.js +1 -1
  175. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchCameraPositionShaderNode.js +1 -1
  176. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchHitDistanceShaderNode.js +1 -1
  177. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchHitNormalShaderNode.js +1 -1
  178. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchHitPositionShaderNode.js +1 -1
  179. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchObjectIdShaderNode.js +1 -1
  180. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchObjectIdUniformShaderNode.js +1 -1
  181. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchRayDirectionShaderNode.js +1 -1
  182. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchTBNShaderNode.js +1 -1
  183. package/dist/esm/foundation/materials/nodes/raymarching/RaymarchViewDirectionShaderNode.js +1 -1
  184. package/dist/esm/foundation/materials/nodes/raymarching/SdApplyTransformShaderNode.js +1 -1
  185. package/dist/esm/foundation/materials/nodes/raymarching/SdApplyWorldMatrixShaderNode.js +1 -1
  186. package/dist/esm/foundation/materials/nodes/raymarching/SdBarXShaderNode.js +1 -1
  187. package/dist/esm/foundation/materials/nodes/raymarching/SdBarYShaderNode.js +1 -1
  188. package/dist/esm/foundation/materials/nodes/raymarching/SdBarZShaderNode.js +1 -1
  189. package/dist/esm/foundation/materials/nodes/raymarching/SdBoxShaderNode.js +1 -1
  190. package/dist/esm/foundation/materials/nodes/raymarching/SdCapsuleShaderNode.js +1 -1
  191. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatShaderNode.js +1 -1
  192. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatXShaderNode.js +1 -1
  193. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatXYShaderNode.js +1 -1
  194. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatYShaderNode.js +1 -1
  195. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatYZShaderNode.js +1 -1
  196. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatZShaderNode.js +1 -1
  197. package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatZXShaderNode.js +1 -1
  198. package/dist/esm/foundation/materials/nodes/raymarching/SdRoundBoxShaderNode.js +1 -1
  199. package/dist/esm/foundation/materials/nodes/raymarching/SdSphereShaderNode.js +1 -1
  200. package/dist/esm/foundation/materials/nodes/raymarching/SdTorusShaderNode.js +1 -1
  201. package/dist/esm/foundation/materials/nodes/raymarching/SdTubeXShaderNode.js +1 -1
  202. package/dist/esm/foundation/materials/nodes/raymarching/SdTubeYShaderNode.js +1 -1
  203. package/dist/esm/foundation/materials/nodes/raymarching/SdTubeZShaderNode.js +1 -1
  204. package/dist/esm/foundation/materials/nodes/raymarching/TwistXShaderNode.js +1 -1
  205. package/dist/esm/foundation/materials/nodes/raymarching/TwistYShaderNode.js +1 -1
  206. package/dist/esm/foundation/materials/nodes/raymarching/TwistZShaderNode.js +1 -1
  207. package/dist/esm/foundation/math/IdentityMatrix33.js +2 -2
  208. package/dist/esm/foundation/math/IdentityMatrix44.js +2 -2
  209. package/dist/esm/foundation/math/MathClassUtil.js +1 -1
  210. package/dist/esm/foundation/math/Quaternion.js +1 -1
  211. package/dist/esm/foundation/math/Transform3D.js +1 -1
  212. package/dist/esm/foundation/memory/Accessor.js +6 -6
  213. package/dist/esm/foundation/memory/Buffer.js +3 -3
  214. package/dist/esm/foundation/memory/BufferView.js +1 -1
  215. package/dist/esm/foundation/misc/Logger.js +1 -1
  216. package/dist/esm/foundation/misc/Time.js +1 -1
  217. package/dist/esm/foundation/physics/Rapier/RapierCharacterControllerStrategy.js +1 -1
  218. package/dist/esm/foundation/physics/Rapier/RapierPhysicsStrategy.js +1 -1
  219. package/dist/esm/foundation/physics/VRMSpring/CapsuleCollider.js +1 -1
  220. package/dist/esm/foundation/physics/VRMSpring/SphereCollider.js +1 -1
  221. package/dist/esm/foundation/physics/VRMSpring/VRMSpringBone.js +1 -1
  222. package/dist/esm/foundation/renderer/Frame.js +1 -1
  223. package/dist/esm/foundation/renderer/FrameBuffer.js +1 -1
  224. package/dist/esm/foundation/renderer/RenderPass.js +1 -1
  225. package/dist/esm/foundation/renderer/TemporalAA/PreviousFrameDataTracker.js +1 -1
  226. package/dist/esm/foundation/renderer/TemporalAA/TemporalAASystem.js +1 -1
  227. package/dist/esm/foundation/renderer/lightCluster/LightClusterSystem.d.ts +12 -0
  228. package/dist/esm/foundation/renderer/lightCluster/LightClusterSystem.js +1 -1
  229. package/dist/esm/foundation/renderer/lightCluster/LightClusterSystemStub.js +1 -1
  230. package/dist/esm/foundation/renderer/pipelines/DeferredRenderPipeline.js +1 -1
  231. package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +82 -9
  232. package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.js +1 -1
  233. package/dist/esm/foundation/system/Engine.d.ts +2 -16
  234. package/dist/esm/foundation/system/Engine.js +1 -1
  235. package/dist/esm/foundation/system/EngineState.d.ts +6 -0
  236. package/dist/esm/foundation/system/GpuDriverWorkarounds.d.ts +50 -0
  237. package/dist/esm/foundation/system/GpuDriverWorkarounds.js +1 -0
  238. package/dist/esm/foundation/system/ModuleManager.js +1 -1
  239. package/dist/esm/foundation/system/index.d.ts +1 -0
  240. package/dist/esm/foundation/system/index.js +1 -1
  241. package/dist/esm/foundation/textures/AbstractTexture.js +1 -1
  242. package/dist/esm/foundation/textures/CubeTexture.js +1 -1
  243. package/dist/esm/foundation/textures/RenderTargetTexture.js +1 -1
  244. package/dist/esm/foundation/textures/RenderTargetTexture2DArray.js +1 -1
  245. package/dist/esm/foundation/textures/RenderTargetTextureCube.js +1 -1
  246. package/dist/esm/foundation/textures/Texture.js +1 -1
  247. package/dist/esm/foundation/textures/TextureDataFloat.js +1 -1
  248. package/dist/esm/foundation/textures/VideoTexture.js +1 -1
  249. package/dist/esm/types/glTF2.d.ts +9 -0
  250. package/dist/esm/version.js +1 -1
  251. package/dist/esm/webgl/InstanceSidTable.js +1 -1
  252. package/dist/esm/webgl/MultiDraw.js +1 -1
  253. package/dist/esm/webgl/MultiDrawRepository.js +1 -1
  254. package/dist/esm/webgl/WebGLResourceRepository.js +4 -4
  255. package/dist/esm/webgl/WebGLStereoUtil.js +1 -1
  256. package/dist/esm/webgl/WebGLStrategyWebGL2.js +48 -48
  257. package/dist/esm/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +17 -8
  258. package/dist/esm/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.vert.js +5 -5
  259. package/dist/esm/webgl/shaderity_shaders/ColorGradingUsingLUTsShader/ColorGradingUsingLUTsShader.vert.js +1 -1
  260. package/dist/esm/webgl/shaderity_shaders/DepthEncodeSingleShader/DepthEncodeSingleShader.vert.js +2 -2
  261. package/dist/esm/webgl/shaderity_shaders/DepthMomentEncodeShader/DepthMomentEncodeShader.vert.js +3 -3
  262. package/dist/esm/webgl/shaderity_shaders/DetectHighLuminanceAndCorrectShader/DetectHighLuminanceAndCorrectShader.vert.js +2 -2
  263. package/dist/esm/webgl/shaderity_shaders/EntityUIDOutputSingleShader/EntityUIDOutputSingleShader.vert.js +2 -2
  264. package/dist/esm/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.js +84 -0
  265. package/dist/esm/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.js +34 -0
  266. package/dist/esm/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +5 -5
  267. package/dist/esm/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +2 -2
  268. package/dist/esm/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +7 -7
  269. package/dist/esm/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.vert.js +4 -4
  270. package/dist/esm/webgl/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +1 -1
  271. package/dist/esm/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.glsl.js +8 -5
  272. package/dist/esm/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.vert.glsl.js +1 -1
  273. package/dist/esm/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.glsl.js +43 -40
  274. package/dist/esm/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.glsl.js +4 -4
  275. package/dist/esm/webgl/shaderity_shaders/MatCapShader/MatCapShader.vert.js +1 -1
  276. package/dist/esm/webgl/shaderity_shaders/MotionVectorShader/MotionVectorShader.vert.js +3 -3
  277. package/dist/esm/webgl/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.js +1 -1
  278. package/dist/esm/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.glsl.js +1 -1
  279. package/dist/esm/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.glsl.js +4 -4
  280. package/dist/esm/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +124 -112
  281. package/dist/esm/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.vert.js +6 -6
  282. package/dist/esm/webgl/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.js +5 -5
  283. package/dist/esm/webgl/shaderity_shaders/ShadowMapDecodeClassicSingleShader/ShadowMapDecodeClassicSingleShader.vert.js +2 -2
  284. package/dist/esm/webgl/shaderity_shaders/SummedAreaTableShader/SummedAreaTableShader.frag.js +3 -3
  285. package/dist/esm/webgl/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.js +1 -1
  286. package/dist/esm/webgl/shaderity_shaders/VarianceShadowMapDecodeClassicShader/VarianceShadowMapDecodeClassicShader.vert.js +2 -2
  287. package/dist/esm/webgl/shaderity_shaders/common/iblDefinition.glsl.js +54 -1
  288. package/dist/esm/webgl/shaderity_shaders/common/morphVariables.glsl.js +2 -2
  289. package/dist/esm/webgl/shaderity_shaders/common/opticalDefinition.glsl.js +4 -1
  290. package/dist/esm/webgl/shaderity_shaders/common/prerequisites.glsl.js +3 -3
  291. package/dist/esm/webgl/shaderity_shaders/nodes/ClassicShader.glsl.js +10 -1
  292. package/dist/esm/webgl/shaderity_shaders/nodes/PbrShader.glsl.js +12 -0
  293. package/dist/esm/webgl/shaders/RaymarchingShaderPart.js +23 -11
  294. package/dist/esm/webgl/shaders/nodes/DiscardShader.js +1 -1
  295. package/dist/esm/webgl/shaders/nodes/EndShader.js +1 -1
  296. package/dist/esm/webgl/shaders/nodes/SdApplyTransform.js +5 -5
  297. package/dist/esm/webgl/textureLoader/KTX2TextureLoader.js +1 -1
  298. package/dist/esm/webgpu/GpuCullingRegistry.js +1 -1
  299. package/dist/esm/webgpu/GpuDeformRegistry.js +1 -1
  300. package/dist/esm/webgpu/RangeAllocator.js +1 -1
  301. package/dist/esm/webgpu/WebGpuBufferArena.js +1 -1
  302. package/dist/esm/webgpu/WebGpuGpuTimer.js +1 -1
  303. package/dist/esm/webgpu/WebGpuLightClusterBuilder.js +1 -1
  304. package/dist/esm/webgpu/WebGpuResourceRepository.js +3 -3
  305. package/dist/esm/webgpu/WebGpuStrategyBasic.d.ts +1 -0
  306. package/dist/esm/webgpu/WebGpuStrategyBasic.js +54 -54
  307. package/dist/esm/webgpu/WebGpuVertexDeformer.js +1 -1
  308. package/dist/esm/webgpu/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +15 -8
  309. package/dist/esm/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.wgsl.js +84 -0
  310. package/dist/esm/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.wgsl.js +19 -0
  311. package/dist/esm/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +6 -6
  312. package/dist/esm/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +3 -3
  313. package/dist/esm/webgpu/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +5 -5
  314. package/dist/esm/webgpu/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +3 -3
  315. package/dist/esm/webgpu/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.wgsl.js +9 -6
  316. package/dist/esm/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.wgsl.js +44 -41
  317. package/dist/esm/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.wgsl.js +2 -2
  318. package/dist/esm/webgpu/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.wgsl.js +1 -1
  319. package/dist/esm/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.wgsl.js +2 -2
  320. package/dist/esm/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.wgsl.js +3 -3
  321. package/dist/esm/webgpu/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +125 -114
  322. package/dist/esm/webgpu/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.wgsl.js +5 -5
  323. package/dist/esm/webgpu/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.wgsl.js +1 -1
  324. package/dist/esm/webgpu/shaderity_shaders/common/iblDefinition.wgsl.js +55 -1
  325. package/dist/esm/webgpu/shaderity_shaders/common/opticalDefinition.wgsl.js +4 -1
  326. package/dist/esm/webgpu/shaderity_shaders/nodes/ClassicShader.wgsl.js +7 -0
  327. package/dist/esm/webgpu/shaderity_shaders/nodes/PbrShader.wgsl.js +13 -2
  328. package/dist/esmdev/foundation/components/Light/LightComponent.d.ts +14 -0
  329. package/dist/esmdev/foundation/components/Light/LightComponent.js +38 -11
  330. package/dist/esmdev/foundation/components/Mesh/MeshComponent.js +47 -44
  331. package/dist/esmdev/foundation/components/MeshRenderer/MeshRendererComponent.d.ts +28 -0
  332. package/dist/esmdev/foundation/components/MeshRenderer/MeshRendererComponent.js +142 -92
  333. package/dist/esmdev/foundation/components/Physics/PhysicsComponent.js +65 -65
  334. package/dist/esmdev/foundation/components/Raymarching/RaymarchingComponent.js +54 -54
  335. package/dist/esmdev/foundation/components/Raymarching/RaymarchingSdfEvaluator.js +250 -250
  336. package/dist/esmdev/foundation/components/SceneGraph/SceneGraphComponent.js +335 -335
  337. package/dist/esmdev/foundation/components/Shape/ShapeComponent.js +31 -31
  338. package/dist/esmdev/foundation/components/Skeletal/AnimationRetarget/AbsoluteAnimation.js +5 -5
  339. package/dist/esmdev/foundation/components/Skeletal/AnimationRetarget/GlobalRetarget.js +5 -5
  340. package/dist/esmdev/foundation/components/Skeletal/AnimationRetarget/GlobalRetargetReverse.js +9 -9
  341. package/dist/esmdev/foundation/components/Skeletal/SkeletalComponent.js +222 -222
  342. package/dist/esmdev/foundation/components/Transform/TransformComponent.js +66 -66
  343. package/dist/esmdev/foundation/components/Trigger/TriggerComponent.js +61 -61
  344. package/dist/esmdev/foundation/components/Vrm/VrmComponent.js +44 -44
  345. package/dist/esmdev/foundation/constraints/VrmAimConstraint.js +11 -11
  346. package/dist/esmdev/foundation/constraints/VrmRollConstraint.js +16 -16
  347. package/dist/esmdev/foundation/constraints/VrmRotationConstraint.js +10 -10
  348. package/dist/esmdev/foundation/core/Component.js +32 -32
  349. package/dist/esmdev/foundation/core/ComponentMemoryRegistry.js +41 -41
  350. package/dist/esmdev/foundation/core/ComponentRepository.js +37 -37
  351. package/dist/esmdev/foundation/core/Config.d.ts +15 -0
  352. package/dist/esmdev/foundation/core/Config.js +27 -10
  353. package/dist/esmdev/foundation/core/Entity.js +9 -9
  354. package/dist/esmdev/foundation/core/EntityRepository.js +19 -19
  355. package/dist/esmdev/foundation/core/GlobalDataRepository.js +31 -18
  356. package/dist/esmdev/foundation/core/MemoryManager.js +27 -27
  357. package/dist/esmdev/foundation/core/RnObject.js +36 -36
  358. package/dist/esmdev/foundation/definitions/Blend.js +3 -3
  359. package/dist/esmdev/foundation/definitions/ComponentType.js +7 -7
  360. package/dist/esmdev/foundation/definitions/CompositionType.js +50 -50
  361. package/dist/esmdev/foundation/definitions/CompressionTextureType.js +6 -6
  362. package/dist/esmdev/foundation/definitions/ShaderSemantics.js +6 -6
  363. package/dist/esmdev/foundation/definitions/ShaderSemanticsInfo.d.ts +1 -0
  364. package/dist/esmdev/foundation/definitions/ShaderSemanticsInfo.js +1 -1
  365. package/dist/esmdev/foundation/definitions/TextureFormat.js +3 -3
  366. package/dist/esmdev/foundation/definitions/TextureParameter.js +3 -3
  367. package/dist/esmdev/foundation/definitions/VertexAttribute.js +30 -30
  368. package/dist/esmdev/foundation/enhanced_js_objects/Array.js +2 -2
  369. package/dist/esmdev/foundation/exporter/Gltf2Exporter.d.ts +6 -0
  370. package/dist/esmdev/foundation/exporter/Gltf2Exporter.js +140 -110
  371. package/dist/esmdev/foundation/geometry/ComplexVertexAttribute.js +24 -24
  372. package/dist/esmdev/foundation/geometry/Frustum.js +40 -40
  373. package/dist/esmdev/foundation/geometry/Mesh.d.ts +15 -0
  374. package/dist/esmdev/foundation/geometry/Mesh.js +249 -219
  375. package/dist/esmdev/foundation/geometry/Primitive.js +141 -135
  376. package/dist/esmdev/foundation/geometry/SimpleVertexAttribute.js +7 -7
  377. package/dist/esmdev/foundation/geometry/shapes/Cylinder.js +3 -3
  378. package/dist/esmdev/foundation/geometry/shapes/Joint.js +33 -33
  379. package/dist/esmdev/foundation/gizmos/AABBGizmo.js +16 -16
  380. package/dist/esmdev/foundation/gizmos/CapsuleColliderGizmo.js +23 -23
  381. package/dist/esmdev/foundation/gizmos/Gizmo.js +23 -23
  382. package/dist/esmdev/foundation/gizmos/JointGizmo.js +37 -37
  383. package/dist/esmdev/foundation/gizmos/LightGizmo.d.ts +108 -10
  384. package/dist/esmdev/foundation/gizmos/LightGizmo.js +248 -49
  385. package/dist/esmdev/foundation/gizmos/LocatorGizmo.js +25 -25
  386. package/dist/esmdev/foundation/gizmos/RotationGizmo.js +210 -210
  387. package/dist/esmdev/foundation/gizmos/ScaleGizmo.js +130 -130
  388. package/dist/esmdev/foundation/gizmos/ShapeGizmo.js +43 -43
  389. package/dist/esmdev/foundation/gizmos/SphereColliderGizmo.js +24 -24
  390. package/dist/esmdev/foundation/gizmos/TranslationGizmo.js +129 -129
  391. package/dist/esmdev/foundation/helpers/BloomHelper.js +42 -38
  392. package/dist/esmdev/foundation/helpers/GaussianBlurHelper.js +18 -18
  393. package/dist/esmdev/foundation/helpers/MaterialHelper.d.ts +2 -0
  394. package/dist/esmdev/foundation/helpers/MaterialHelper.js +3 -1
  395. package/dist/esmdev/foundation/helpers/Shadow/PointShadowMap.js +12 -12
  396. package/dist/esmdev/foundation/helpers/Shadow/ShadowMap.js +5 -5
  397. package/dist/esmdev/foundation/helpers/Shadow/ShadowSystem.js +119 -119
  398. package/dist/esmdev/foundation/helpers/materials/createClassicUberMaterial.js +13 -5
  399. package/dist/esmdev/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.d.ts +21 -0
  400. package/dist/esmdev/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.js +32 -0
  401. package/dist/esmdev/foundation/helpers/materials/createGaussianBlurForEncodedDepthMaterial.js +12 -4
  402. package/dist/esmdev/foundation/helpers/materials/createGaussianBlurMaterial.js +13 -5
  403. package/dist/esmdev/foundation/helpers/materials/createMotionVectorMaterial.js +7 -3
  404. package/dist/esmdev/foundation/helpers/materials/createNodeBasedRaymarchingMaterials.js +41 -18
  405. package/dist/esmdev/foundation/helpers/materials/createPbrUberMaterial.js +13 -5
  406. package/dist/esmdev/foundation/helpers/materials/createTemporalAAResolveMaterial.js +22 -8
  407. package/dist/esmdev/foundation/helpers/materials/index.d.ts +1 -0
  408. package/dist/esmdev/foundation/helpers/materials/index.js +3 -1
  409. package/dist/esmdev/foundation/helpers/materials/nodeBasedMaterialCommon.js +24 -12
  410. package/dist/esmdev/foundation/importer/AnimationAssigner.js +44 -44
  411. package/dist/esmdev/foundation/importer/DrcPointCloudImporter.js +33 -33
  412. package/dist/esmdev/foundation/importer/Gltf2Importer.js +14 -14
  413. package/dist/esmdev/foundation/importer/GltfImporter.js +22 -22
  414. package/dist/esmdev/foundation/importer/ModelConverter.d.ts +19 -0
  415. package/dist/esmdev/foundation/importer/ModelConverter.js +183 -132
  416. package/dist/esmdev/foundation/importer/RhodoniteImportExtension.js +6 -6
  417. package/dist/esmdev/foundation/importer/Vrm0xImporter.js +48 -48
  418. package/dist/esmdev/foundation/importer/VrmImporter.js +10 -10
  419. package/dist/esmdev/foundation/materials/contents/CustomMaterialContent.js +27 -27
  420. package/dist/esmdev/foundation/materials/contents/DepthEncodeMaterialContent.js +15 -9
  421. package/dist/esmdev/foundation/materials/contents/DetectHighLuminanceMaterialContent.js +3 -2
  422. package/dist/esmdev/foundation/materials/contents/EntityUIDOutputMaterialContent.js +5 -3
  423. package/dist/esmdev/foundation/materials/contents/FurnaceTestMaterialContent.js +16 -8
  424. package/dist/esmdev/foundation/materials/contents/MToon0xMaterialContent.js +197 -170
  425. package/dist/esmdev/foundation/materials/contents/MToon1MaterialContent.js +19 -19
  426. package/dist/esmdev/foundation/materials/contents/MatCapMaterialContent.js +7 -4
  427. package/dist/esmdev/foundation/materials/contents/ShadowMapDecodeClassicMaterialContent.js +33 -19
  428. package/dist/esmdev/foundation/materials/contents/SynthesizeHdrMaterialContent.js +3 -1
  429. package/dist/esmdev/foundation/materials/contents/VarianceShadowMapDecodeClassicMaterialContent.js +41 -24
  430. package/dist/esmdev/foundation/materials/core/AbstractMaterialContent.js +51 -51
  431. package/dist/esmdev/foundation/materials/core/AbstractShaderNode.js +26 -26
  432. package/dist/esmdev/foundation/materials/core/DummyTextures.js +3 -3
  433. package/dist/esmdev/foundation/materials/core/Material.js +116 -116
  434. package/dist/esmdev/foundation/materials/core/MaterialRepository.js +65 -65
  435. package/dist/esmdev/foundation/materials/core/ShaderGraphResolver.js +38 -38
  436. package/dist/esmdev/foundation/materials/core/ShaderHandler.js +4 -4
  437. package/dist/esmdev/foundation/materials/core/ShaderityUtilityWebGL.js +26 -20
  438. package/dist/esmdev/foundation/materials/core/ShaderityUtilityWebGPU.js +29 -23
  439. package/dist/esmdev/foundation/materials/nodes/AbsShaderNode.js +13 -13
  440. package/dist/esmdev/foundation/materials/nodes/AcosShaderNode.js +13 -13
  441. package/dist/esmdev/foundation/materials/nodes/AddShaderNode.js +18 -18
  442. package/dist/esmdev/foundation/materials/nodes/AlphaTestShaderNode.js +5 -5
  443. package/dist/esmdev/foundation/materials/nodes/AndShaderNode.js +6 -6
  444. package/dist/esmdev/foundation/materials/nodes/Atan2ShaderNode.js +15 -15
  445. package/dist/esmdev/foundation/materials/nodes/AttributeColorShaderNode.js +1 -1
  446. package/dist/esmdev/foundation/materials/nodes/AttributeInstanceIdsShaderNode.js +1 -1
  447. package/dist/esmdev/foundation/materials/nodes/AttributeJointShaderNode.js +1 -1
  448. package/dist/esmdev/foundation/materials/nodes/AttributeNormalShaderNode.js +1 -1
  449. package/dist/esmdev/foundation/materials/nodes/AttributePositionShaderNode.js +2 -2
  450. package/dist/esmdev/foundation/materials/nodes/AttributeTangentShaderNode.js +1 -1
  451. package/dist/esmdev/foundation/materials/nodes/AttributeTexcoordShaderNode.js +2 -2
  452. package/dist/esmdev/foundation/materials/nodes/AttributeWeightShaderNode.js +1 -1
  453. package/dist/esmdev/foundation/materials/nodes/BlockBeginShaderNode.js +11 -11
  454. package/dist/esmdev/foundation/materials/nodes/BlockEndShaderNode.js +6 -6
  455. package/dist/esmdev/foundation/materials/nodes/BranchShaderNode.js +15 -15
  456. package/dist/esmdev/foundation/materials/nodes/CalcBitangentShaderNode.js +7 -7
  457. package/dist/esmdev/foundation/materials/nodes/CastToFloatShaderNode.js +13 -13
  458. package/dist/esmdev/foundation/materials/nodes/ClampShaderNode.js +15 -15
  459. package/dist/esmdev/foundation/materials/nodes/ClassicShaderNode.js +11 -11
  460. package/dist/esmdev/foundation/materials/nodes/ConstantScalarVariableShaderNode.js +1 -1
  461. package/dist/esmdev/foundation/materials/nodes/ConstantVariableShaderNode.js +5 -5
  462. package/dist/esmdev/foundation/materials/nodes/ConstantVector2VariableShaderNode.js +1 -1
  463. package/dist/esmdev/foundation/materials/nodes/ConstantVector3VariableShaderNode.js +1 -1
  464. package/dist/esmdev/foundation/materials/nodes/ConstantVector4VariableShaderNode.js +1 -1
  465. package/dist/esmdev/foundation/materials/nodes/CosShaderNode.js +13 -13
  466. package/dist/esmdev/foundation/materials/nodes/DiscardShaderNode.js +2 -2
  467. package/dist/esmdev/foundation/materials/nodes/DotProductShaderNode.js +10 -10
  468. package/dist/esmdev/foundation/materials/nodes/EqualShaderNode.js +10 -10
  469. package/dist/esmdev/foundation/materials/nodes/FlatShaderNode.js +5 -5
  470. package/dist/esmdev/foundation/materials/nodes/GreaterOrEqualShaderNode.js +10 -10
  471. package/dist/esmdev/foundation/materials/nodes/GreaterShaderNode.js +3 -3
  472. package/dist/esmdev/foundation/materials/nodes/GreaterThanShaderNode.js +10 -10
  473. package/dist/esmdev/foundation/materials/nodes/LengthShaderNode.js +13 -13
  474. package/dist/esmdev/foundation/materials/nodes/LessOrEqualShaderNode.js +10 -10
  475. package/dist/esmdev/foundation/materials/nodes/LessThanShaderNode.js +10 -10
  476. package/dist/esmdev/foundation/materials/nodes/MergeVectorShaderNode.js +19 -19
  477. package/dist/esmdev/foundation/materials/nodes/MinShaderNode.js +18 -18
  478. package/dist/esmdev/foundation/materials/nodes/MultiplyShaderNode.js +21 -21
  479. package/dist/esmdev/foundation/materials/nodes/NormalMatrixShaderNode.js +1 -1
  480. package/dist/esmdev/foundation/materials/nodes/NormalizeShaderNode.js +9 -9
  481. package/dist/esmdev/foundation/materials/nodes/NotEqualShaderNode.js +10 -10
  482. package/dist/esmdev/foundation/materials/nodes/OrShaderNode.js +6 -6
  483. package/dist/esmdev/foundation/materials/nodes/OutColorShaderNode.js +2 -2
  484. package/dist/esmdev/foundation/materials/nodes/OutPositionShaderNode.js +2 -2
  485. package/dist/esmdev/foundation/materials/nodes/PbrAnisotropyPropsShaderNode.js +5 -5
  486. package/dist/esmdev/foundation/materials/nodes/PbrAnisotropyRotationShaderNode.js +3 -3
  487. package/dist/esmdev/foundation/materials/nodes/PbrBaseColorPropsShaderNode.js +5 -5
  488. package/dist/esmdev/foundation/materials/nodes/PbrClearcoatPropsShaderNode.js +7 -7
  489. package/dist/esmdev/foundation/materials/nodes/PbrDiffuseTransmissionPropsShaderNode.js +6 -6
  490. package/dist/esmdev/foundation/materials/nodes/PbrEmissivePropsShaderNode.js +5 -5
  491. package/dist/esmdev/foundation/materials/nodes/PbrIridescencePropsShaderNode.js +8 -8
  492. package/dist/esmdev/foundation/materials/nodes/PbrMetallicRoughnessPropsShaderNode.js +6 -6
  493. package/dist/esmdev/foundation/materials/nodes/PbrNormalPropsShaderNode.js +11 -11
  494. package/dist/esmdev/foundation/materials/nodes/PbrOcclusionPropsShaderNode.js +4 -4
  495. package/dist/esmdev/foundation/materials/nodes/PbrShaderShaderNode.js +21 -21
  496. package/dist/esmdev/foundation/materials/nodes/PbrSheenPropsShaderNode.js +6 -6
  497. package/dist/esmdev/foundation/materials/nodes/PbrSpecularPropsShaderNode.js +6 -6
  498. package/dist/esmdev/foundation/materials/nodes/PbrTransmissionPropsShaderNode.js +4 -4
  499. package/dist/esmdev/foundation/materials/nodes/PbrVolumePropsShaderNode.js +6 -6
  500. package/dist/esmdev/foundation/materials/nodes/PremultipliedAlphaShaderNode.js +4 -4
  501. package/dist/esmdev/foundation/materials/nodes/ProcessGeometryShaderNode.js +22 -22
  502. package/dist/esmdev/foundation/materials/nodes/ProjectionMatrixShaderNode.js +1 -1
  503. package/dist/esmdev/foundation/materials/nodes/Random_HashPRNGShaderNode.js +12 -12
  504. package/dist/esmdev/foundation/materials/nodes/Random_SinHashShaderNode.js +12 -12
  505. package/dist/esmdev/foundation/materials/nodes/RemapShaderNode.js +17 -17
  506. package/dist/esmdev/foundation/materials/nodes/SinShaderNode.js +13 -13
  507. package/dist/esmdev/foundation/materials/nodes/SmoothStepShaderNode.js +15 -15
  508. package/dist/esmdev/foundation/materials/nodes/SplitVectorShaderNode.js +17 -17
  509. package/dist/esmdev/foundation/materials/nodes/StepShaderNode.js +14 -14
  510. package/dist/esmdev/foundation/materials/nodes/TanShaderNode.js +13 -13
  511. package/dist/esmdev/foundation/materials/nodes/Texture2DShaderNode.js +16 -16
  512. package/dist/esmdev/foundation/materials/nodes/TimeShaderNode.js +1 -1
  513. package/dist/esmdev/foundation/materials/nodes/TransformShaderNode.js +10 -10
  514. package/dist/esmdev/foundation/materials/nodes/UniformDataShaderNode.js +5 -5
  515. package/dist/esmdev/foundation/materials/nodes/ViewMatrixShaderNode.js +1 -1
  516. package/dist/esmdev/foundation/materials/nodes/WireframeMaterialNode.js +3 -3
  517. package/dist/esmdev/foundation/materials/nodes/WorldMatrixShaderNode.js +1 -1
  518. package/dist/esmdev/foundation/materials/nodes/raymarching/BendXYShaderNode.js +4 -4
  519. package/dist/esmdev/foundation/materials/nodes/raymarching/BendXZShaderNode.js +4 -4
  520. package/dist/esmdev/foundation/materials/nodes/raymarching/BendYXShaderNode.js +4 -4
  521. package/dist/esmdev/foundation/materials/nodes/raymarching/BendYZShaderNode.js +4 -4
  522. package/dist/esmdev/foundation/materials/nodes/raymarching/BendZXShaderNode.js +4 -4
  523. package/dist/esmdev/foundation/materials/nodes/raymarching/BendZYShaderNode.js +4 -4
  524. package/dist/esmdev/foundation/materials/nodes/raymarching/InitialPositionShaderNode.js +1 -1
  525. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothIntersectionShaderNode.js +5 -5
  526. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothSubtractionShaderNode.js +5 -5
  527. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothUnionShaderNode.js +5 -5
  528. package/dist/esmdev/foundation/materials/nodes/raymarching/OpSubtractionShaderNode.js +6 -6
  529. package/dist/esmdev/foundation/materials/nodes/raymarching/OpUnionShaderNode.js +6 -6
  530. package/dist/esmdev/foundation/materials/nodes/raymarching/OutDistanceShaderNode.js +16 -16
  531. package/dist/esmdev/foundation/materials/nodes/raymarching/OutShadingColorShaderNode.js +2 -2
  532. package/dist/esmdev/foundation/materials/nodes/raymarching/OutUnionShaderNode.js +16 -16
  533. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchCameraPositionShaderNode.js +2 -2
  534. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitDistanceShaderNode.js +2 -2
  535. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitNormalShaderNode.js +2 -2
  536. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitPositionShaderNode.js +2 -2
  537. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchObjectIdShaderNode.js +2 -2
  538. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchObjectIdUniformShaderNode.js +4 -4
  539. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchRayDirectionShaderNode.js +2 -2
  540. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchTBNShaderNode.js +2 -2
  541. package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchViewDirectionShaderNode.js +2 -2
  542. package/dist/esmdev/foundation/materials/nodes/raymarching/SdApplyTransformShaderNode.js +9 -9
  543. package/dist/esmdev/foundation/materials/nodes/raymarching/SdApplyWorldMatrixShaderNode.js +5 -5
  544. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarXShaderNode.js +3 -3
  545. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarYShaderNode.js +3 -3
  546. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarZShaderNode.js +3 -3
  547. package/dist/esmdev/foundation/materials/nodes/raymarching/SdBoxShaderNode.js +3 -3
  548. package/dist/esmdev/foundation/materials/nodes/raymarching/SdCapsuleShaderNode.js +5 -5
  549. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatShaderNode.js +4 -4
  550. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatXShaderNode.js +4 -4
  551. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatXYShaderNode.js +4 -4
  552. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatYShaderNode.js +4 -4
  553. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatYZShaderNode.js +4 -4
  554. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatZShaderNode.js +4 -4
  555. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatZXShaderNode.js +4 -4
  556. package/dist/esmdev/foundation/materials/nodes/raymarching/SdRoundBoxShaderNode.js +4 -4
  557. package/dist/esmdev/foundation/materials/nodes/raymarching/SdSphereShaderNode.js +3 -3
  558. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTorusShaderNode.js +4 -4
  559. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeXShaderNode.js +3 -3
  560. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeYShaderNode.js +3 -3
  561. package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeZShaderNode.js +3 -3
  562. package/dist/esmdev/foundation/materials/nodes/raymarching/TwistXShaderNode.js +4 -4
  563. package/dist/esmdev/foundation/materials/nodes/raymarching/TwistYShaderNode.js +4 -4
  564. package/dist/esmdev/foundation/materials/nodes/raymarching/TwistZShaderNode.js +4 -4
  565. package/dist/esmdev/foundation/math/AABB.js +132 -132
  566. package/dist/esmdev/foundation/math/AnimatedQuaternion.js +54 -54
  567. package/dist/esmdev/foundation/math/AnimatedScalar.js +55 -55
  568. package/dist/esmdev/foundation/math/AnimatedValueEvaluationState.js +20 -20
  569. package/dist/esmdev/foundation/math/AnimatedVector2.js +55 -55
  570. package/dist/esmdev/foundation/math/AnimatedVector3.js +55 -55
  571. package/dist/esmdev/foundation/math/AnimatedVector4.js +55 -55
  572. package/dist/esmdev/foundation/math/AnimatedVectorN.js +55 -55
  573. package/dist/esmdev/foundation/math/IdentityMatrix33.js +2 -2
  574. package/dist/esmdev/foundation/math/IdentityMatrix44.js +2 -2
  575. package/dist/esmdev/foundation/math/MathClassUtil.js +4 -4
  576. package/dist/esmdev/foundation/math/Quaternion.js +20 -20
  577. package/dist/esmdev/foundation/math/Transform3D.js +74 -74
  578. package/dist/esmdev/foundation/math/shapes/MathSphere.js +7 -7
  579. package/dist/esmdev/foundation/memory/Accessor.js +369 -369
  580. package/dist/esmdev/foundation/memory/Buffer.js +40 -40
  581. package/dist/esmdev/foundation/memory/BufferView.js +33 -33
  582. package/dist/esmdev/foundation/misc/DataUtil.js +2 -2
  583. package/dist/esmdev/foundation/misc/EnumIO.js +10 -10
  584. package/dist/esmdev/foundation/misc/Logger.js +14 -14
  585. package/dist/esmdev/foundation/misc/RnPromise.js +14 -14
  586. package/dist/esmdev/foundation/misc/Time.js +27 -27
  587. package/dist/esmdev/foundation/misc/WeakOption.js +14 -14
  588. package/dist/esmdev/foundation/misc/cache/Cache.js +2 -2
  589. package/dist/esmdev/foundation/misc/cache/SymbolWeakMap.js +8 -8
  590. package/dist/esmdev/foundation/physics/PhysicsWorldQuery.js +10 -10
  591. package/dist/esmdev/foundation/physics/Rapier/RapierCharacterControllerStrategy.js +193 -193
  592. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsStrategy.js +241 -241
  593. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.js +3 -3
  594. package/dist/esmdev/foundation/physics/VRMSpring/CapsuleCollider.js +42 -42
  595. package/dist/esmdev/foundation/physics/VRMSpring/SphereCollider.js +27 -27
  596. package/dist/esmdev/foundation/physics/VRMSpring/VRMSpringBone.js +10 -10
  597. package/dist/esmdev/foundation/physics/VRMSpring/VRMSpringBonePhysicsStrategy.js +55 -55
  598. package/dist/esmdev/foundation/renderer/Expression.js +6 -6
  599. package/dist/esmdev/foundation/renderer/Frame.js +12 -12
  600. package/dist/esmdev/foundation/renderer/FrameBuffer.js +25 -25
  601. package/dist/esmdev/foundation/renderer/RenderPass.js +101 -101
  602. package/dist/esmdev/foundation/renderer/TemporalAA/PreviousFrameDataTracker.js +10 -10
  603. package/dist/esmdev/foundation/renderer/TemporalAA/TemporalAASystem.js +78 -78
  604. package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystem.d.ts +12 -0
  605. package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystem.js +193 -155
  606. package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystemStub.js +3 -3
  607. package/dist/esmdev/foundation/renderer/pipelines/DeferredRenderPipeline.js +6 -6
  608. package/dist/esmdev/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +82 -9
  609. package/dist/esmdev/foundation/renderer/pipelines/ForwardRenderPipeline.js +582 -458
  610. package/dist/esmdev/foundation/system/Engine.d.ts +2 -16
  611. package/dist/esmdev/foundation/system/Engine.js +239 -238
  612. package/dist/esmdev/foundation/system/EngineState.d.ts +6 -0
  613. package/dist/esmdev/foundation/system/EngineState.js +1 -1
  614. package/dist/esmdev/foundation/system/EventPubSub.js +8 -8
  615. package/dist/esmdev/foundation/system/GpuDriverWorkarounds.d.ts +50 -0
  616. package/dist/esmdev/foundation/system/GpuDriverWorkarounds.js +93 -0
  617. package/dist/esmdev/foundation/system/InputManager.js +56 -56
  618. package/dist/esmdev/foundation/system/ModuleManager.js +6 -6
  619. package/dist/esmdev/foundation/system/index.d.ts +1 -0
  620. package/dist/esmdev/foundation/system/index.js +2 -1
  621. package/dist/esmdev/foundation/textures/AbstractTexture.js +49 -49
  622. package/dist/esmdev/foundation/textures/CubeTexture.js +32 -32
  623. package/dist/esmdev/foundation/textures/RenderBuffer.js +11 -11
  624. package/dist/esmdev/foundation/textures/RenderTargetTexture.js +24 -24
  625. package/dist/esmdev/foundation/textures/RenderTargetTexture2DArray.js +35 -35
  626. package/dist/esmdev/foundation/textures/RenderTargetTextureCube.js +18 -18
  627. package/dist/esmdev/foundation/textures/Sampler.js +24 -24
  628. package/dist/esmdev/foundation/textures/Texture.js +83 -83
  629. package/dist/esmdev/foundation/textures/TextureArray.js +8 -8
  630. package/dist/esmdev/foundation/textures/TextureDataFloat.js +26 -26
  631. package/dist/esmdev/foundation/textures/VideoTexture.js +24 -24
  632. package/dist/esmdev/types/glTF2.d.ts +9 -0
  633. package/dist/esmdev/types/glTF2.js +1 -1
  634. package/dist/esmdev/version.js +2 -2
  635. package/dist/esmdev/webgl/InstanceSidTable.js +62 -62
  636. package/dist/esmdev/webgl/MultiDraw.js +2 -2
  637. package/dist/esmdev/webgl/MultiDrawRepository.js +30 -30
  638. package/dist/esmdev/webgl/WebGLContextWrapper.js +164 -164
  639. package/dist/esmdev/webgl/WebGLGpuTimer.js +32 -32
  640. package/dist/esmdev/webgl/WebGLResourceRepository.js +315 -311
  641. package/dist/esmdev/webgl/WebGLStereoUtil.js +42 -42
  642. package/dist/esmdev/webgl/WebGLStrategyWebGL2.js +270 -263
  643. package/dist/esmdev/webgl/debug/ShaderParameterDebugger.js +4 -4
  644. package/dist/esmdev/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +2 -2
  645. package/dist/esmdev/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.vert.js +2 -2
  646. package/dist/esmdev/webgl/shaderity_shaders/ColorGradingUsingLUTsShader/ColorGradingUsingLUTsShader.vert.js +2 -2
  647. package/dist/esmdev/webgl/shaderity_shaders/DepthEncodeSingleShader/DepthEncodeSingleShader.vert.js +2 -2
  648. package/dist/esmdev/webgl/shaderity_shaders/DepthMomentEncodeShader/DepthMomentEncodeShader.vert.js +2 -2
  649. package/dist/esmdev/webgl/shaderity_shaders/DetectHighLuminanceAndCorrectShader/DetectHighLuminanceAndCorrectShader.vert.js +2 -2
  650. package/dist/esmdev/webgl/shaderity_shaders/EntityUIDOutputSingleShader/EntityUIDOutputSingleShader.vert.js +2 -2
  651. package/dist/esmdev/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.js +12 -0
  652. package/dist/esmdev/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.js +12 -0
  653. package/dist/esmdev/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +2 -2
  654. package/dist/esmdev/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +2 -2
  655. package/dist/esmdev/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +2 -2
  656. package/dist/esmdev/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.vert.js +2 -2
  657. package/dist/esmdev/webgl/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +2 -2
  658. package/dist/esmdev/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.glsl.js +2 -2
  659. package/dist/esmdev/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.vert.glsl.js +2 -2
  660. package/dist/esmdev/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.glsl.js +2 -2
  661. package/dist/esmdev/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.glsl.js +2 -2
  662. package/dist/esmdev/webgl/shaderity_shaders/MatCapShader/MatCapShader.vert.js +2 -2
  663. package/dist/esmdev/webgl/shaderity_shaders/MotionVectorShader/MotionVectorShader.vert.js +2 -2
  664. package/dist/esmdev/webgl/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.js +2 -2
  665. package/dist/esmdev/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.glsl.js +2 -2
  666. package/dist/esmdev/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.glsl.js +2 -2
  667. package/dist/esmdev/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -2
  668. package/dist/esmdev/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.vert.js +2 -2
  669. package/dist/esmdev/webgl/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.js +2 -2
  670. package/dist/esmdev/webgl/shaderity_shaders/ShadowMapDecodeClassicSingleShader/ShadowMapDecodeClassicSingleShader.vert.js +2 -2
  671. package/dist/esmdev/webgl/shaderity_shaders/SummedAreaTableShader/SummedAreaTableShader.frag.js +2 -2
  672. package/dist/esmdev/webgl/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.js +2 -2
  673. package/dist/esmdev/webgl/shaderity_shaders/VarianceShadowMapDecodeClassicShader/VarianceShadowMapDecodeClassicShader.vert.js +2 -2
  674. package/dist/esmdev/webgl/shaderity_shaders/common/iblDefinition.glsl.js +2 -2
  675. package/dist/esmdev/webgl/shaderity_shaders/common/morphVariables.glsl.js +2 -2
  676. package/dist/esmdev/webgl/shaderity_shaders/common/opticalDefinition.glsl.js +5 -2
  677. package/dist/esmdev/webgl/shaderity_shaders/common/prerequisites.glsl.js +2 -2
  678. package/dist/esmdev/webgl/shaderity_shaders/nodes/ClassicShader.glsl.js +2 -2
  679. package/dist/esmdev/webgl/shaderity_shaders/nodes/PbrShader.glsl.js +2 -2
  680. package/dist/esmdev/webgl/shaders/RaymarchingShaderPart.js +25 -13
  681. package/dist/esmdev/webgl/shaders/RaymarchingShadowShaderPart.js +14 -14
  682. package/dist/esmdev/webgl/shaders/StandardShaderPart.js +3 -3
  683. package/dist/esmdev/webgl/shaders/nodes/BlockBeginShader.js +10 -10
  684. package/dist/esmdev/webgl/shaders/nodes/BlockEndShader.js +10 -10
  685. package/dist/esmdev/webgl/shaders/nodes/ConstantVariableShader.js +21 -21
  686. package/dist/esmdev/webgl/shaders/nodes/DiscardShader.js +3 -3
  687. package/dist/esmdev/webgl/shaders/nodes/EndShader.js +3 -3
  688. package/dist/esmdev/webgl/shaders/nodes/OutDistance.js +12 -12
  689. package/dist/esmdev/webgl/shaders/nodes/OutUnion.js +9 -9
  690. package/dist/esmdev/webgl/shaders/nodes/RaymarchObjectIdUniform.js +8 -8
  691. package/dist/esmdev/webgl/shaders/nodes/SdApplyTransform.js +9 -9
  692. package/dist/esmdev/webgl/shaders/nodes/SdApplyWorldMatrix.js +8 -8
  693. package/dist/esmdev/webgl/shaders/nodes/Texture2DShader.js +23 -23
  694. package/dist/esmdev/webgl/shaders/nodes/UniformDataShader.js +23 -23
  695. package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.js +27 -27
  696. package/dist/esmdev/webgpu/GpuCullingRegistry.js +94 -94
  697. package/dist/esmdev/webgpu/GpuDeformRegistry.js +53 -53
  698. package/dist/esmdev/webgpu/RangeAllocator.js +16 -16
  699. package/dist/esmdev/webgpu/WebGpuBufferArena.js +21 -21
  700. package/dist/esmdev/webgpu/WebGpuDeviceWrapper.js +7 -7
  701. package/dist/esmdev/webgpu/WebGpuGpuCulling.js +198 -198
  702. package/dist/esmdev/webgpu/WebGpuGpuTimer.js +52 -52
  703. package/dist/esmdev/webgpu/WebGpuLightClusterBuilder.js +37 -37
  704. package/dist/esmdev/webgpu/WebGpuResourceRepository.js +604 -604
  705. package/dist/esmdev/webgpu/WebGpuStrategyBasic.d.ts +1 -0
  706. package/dist/esmdev/webgpu/WebGpuStrategyBasic.js +129 -125
  707. package/dist/esmdev/webgpu/WebGpuVertexDeformer.js +128 -128
  708. package/dist/esmdev/webgpu/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +2 -2
  709. package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.wgsl.js +12 -0
  710. package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.wgsl.js +12 -0
  711. package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +2 -2
  712. package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +2 -2
  713. package/dist/esmdev/webgpu/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +2 -2
  714. package/dist/esmdev/webgpu/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +2 -2
  715. package/dist/esmdev/webgpu/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.wgsl.js +2 -2
  716. package/dist/esmdev/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.wgsl.js +2 -2
  717. package/dist/esmdev/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.wgsl.js +2 -2
  718. package/dist/esmdev/webgpu/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.wgsl.js +2 -2
  719. package/dist/esmdev/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.wgsl.js +2 -2
  720. package/dist/esmdev/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.wgsl.js +2 -2
  721. package/dist/esmdev/webgpu/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -2
  722. package/dist/esmdev/webgpu/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.wgsl.js +2 -2
  723. package/dist/esmdev/webgpu/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.wgsl.js +2 -2
  724. package/dist/esmdev/webgpu/shaderity_shaders/common/iblDefinition.wgsl.js +2 -2
  725. package/dist/esmdev/webgpu/shaderity_shaders/common/opticalDefinition.wgsl.js +5 -2
  726. package/dist/esmdev/webgpu/shaderity_shaders/nodes/ClassicShader.wgsl.js +2 -2
  727. package/dist/esmdev/webgpu/shaderity_shaders/nodes/PbrShader.wgsl.js +2 -2
  728. package/dist/esmdev/xr/WebARSystem.js +69 -69
  729. package/dist/esmdev/xr/WebXRSystem.js +153 -153
  730. package/package.json +1 -1
@@ -13,23 +13,23 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
13
13
  */
14
14
  constructor(engine) {
15
15
  super();
16
- this.lm = 0;
17
- this.jy = 0;
18
- this.ZB = 0;
19
- this._B = 1;
20
- this.$B = TextureFormat.RGBA8;
21
- this.aC = PixelFormat.RGBA;
16
+ this.qm = 0;
17
+ this.Ly = 0;
18
+ this.KC = 0;
19
+ this.LC = 1;
20
+ this.MC = TextureFormat.RGBA8;
21
+ this.NC = PixelFormat.RGBA;
22
22
  this.Gc = ComponentType.UnsignedByte;
23
- this.VB = false;
24
- this.SB = false;
25
- this.UB = false;
26
- this.XB = false;
27
- this.vu = "untitled";
23
+ this.GC = false;
24
+ this.DC = false;
25
+ this.FC = false;
26
+ this.IC = false;
27
+ this.Xu = "untitled";
28
28
  this._textureResourceUid = -1;
29
29
  this._samplerResourceUid = -1;
30
30
  this._textureViewResourceUid = -1;
31
31
  this._textureViewAsRenderTargetResourceUid = -1;
32
- this.TB = ++_AbstractTexture.WB;
32
+ this.EC = ++_AbstractTexture.HC;
33
33
  this.c = engine;
34
34
  }
35
35
  /**
@@ -38,7 +38,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
38
38
  * @returns The unique texture UID
39
39
  */
40
40
  get textureUID() {
41
- return this.TB;
41
+ return this.EC;
42
42
  }
43
43
  /**
44
44
  * Gets the width of the texture in pixels.
@@ -46,7 +46,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
46
46
  * @returns The texture width
47
47
  */
48
48
  get width() {
49
- return this.lm;
49
+ return this.qm;
50
50
  }
51
51
  /**
52
52
  * Calculates the width of the texture at a specific mip level.
@@ -55,7 +55,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
55
55
  * @returns The width at the specified mip level (minimum 1 pixel)
56
56
  */
57
57
  getWidthAtMipLevel(mipLevel) {
58
- return Math.max(1, Math.floor(this.lm / 2 ** mipLevel));
58
+ return Math.max(1, Math.floor(this.qm / 2 ** mipLevel));
59
59
  }
60
60
  /**
61
61
  * Calculates the height of the texture at a specific mip level.
@@ -64,7 +64,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
64
64
  * @returns The height at the specified mip level (minimum 1 pixel)
65
65
  */
66
66
  getHeightAtMipLevel(mipLevel) {
67
- return Math.max(1, Math.floor(this.jy / 2 ** mipLevel));
67
+ return Math.max(1, Math.floor(this.Ly / 2 ** mipLevel));
68
68
  }
69
69
  /**
70
70
  * Sets the width of the texture in pixels.
@@ -72,7 +72,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
72
72
  * @param val - The new width value
73
73
  */
74
74
  set width(val) {
75
- this.lm = val;
75
+ this.qm = val;
76
76
  }
77
77
  /**
78
78
  * Gets the height of the texture in pixels.
@@ -80,7 +80,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
80
80
  * @returns The texture height
81
81
  */
82
82
  get height() {
83
- return this.jy;
83
+ return this.Ly;
84
84
  }
85
85
  /**
86
86
  * Sets the height of the texture in pixels.
@@ -88,7 +88,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
88
88
  * @param val - The new height value
89
89
  */
90
90
  set height(val) {
91
- this.jy = val;
91
+ this.Ly = val;
92
92
  }
93
93
  /**
94
94
  * Checks if the texture is ready for use.
@@ -96,7 +96,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
96
96
  * @returns True if the texture is ready, false otherwise
97
97
  */
98
98
  get isTextureReady() {
99
- return this.UB;
99
+ return this.FC;
100
100
  }
101
101
  /**
102
102
  * Checks if the texture has started loading.
@@ -104,7 +104,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
104
104
  * @returns True if loading has started, false otherwise
105
105
  */
106
106
  get startedToLoad() {
107
- return this.XB;
107
+ return this.IC;
108
108
  }
109
109
  /**
110
110
  * Checks whether this texture is marked as a dummy (placeholder) texture.
@@ -112,7 +112,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
112
112
  * @returns True if the texture is marked as dummy, false otherwise
113
113
  */
114
114
  get isDummyTexture() {
115
- return this.SB;
115
+ return this.DC;
116
116
  }
117
117
  /**
118
118
  * Marks this texture as a dummy (placeholder) texture.
@@ -120,7 +120,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
120
120
  * @param isDummy - Whether to mark the texture as dummy (default: true)
121
121
  */
122
122
  markAsDummyTexture(isDummy = true) {
123
- this.SB = isDummy;
123
+ this.DC = isDummy;
124
124
  }
125
125
  /**
126
126
  * Gets the HTML image element associated with this texture.
@@ -128,7 +128,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
128
128
  * @returns The HTML image element or undefined if not available
129
129
  */
130
130
  get htmlImageElement() {
131
- return this.PB;
131
+ return this.AC;
132
132
  }
133
133
  /**
134
134
  * Gets or creates an HTML canvas element with the texture content.
@@ -139,13 +139,13 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
139
139
  get htmlCanvasElement() {
140
140
  const canvas = document.createElement("canvas");
141
141
  const ctx = canvas == null ? void 0 : canvas.getContext("2d");
142
- this.QB = canvas;
143
- if (Is.exist(ctx) && Is.exist(this.PB)) {
144
- canvas.width = this.PB.width;
145
- canvas.height = this.PB.height;
146
- ctx.drawImage(this.PB, 0, 0, this.PB.width, this.PB.height);
142
+ this.BC = canvas;
143
+ if (Is.exist(ctx) && Is.exist(this.AC)) {
144
+ canvas.width = this.AC.width;
145
+ canvas.height = this.AC.height;
146
+ ctx.drawImage(this.AC, 0, 0, this.AC.width, this.AC.height);
147
147
  }
148
- return this.QB;
148
+ return this.BC;
149
149
  }
150
150
  /**
151
151
  * Gets the URI/URL of the texture source.
@@ -153,7 +153,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
153
153
  * @returns The texture URI or undefined if not set
154
154
  */
155
155
  get uri() {
156
- return this.YB;
156
+ return this.JC;
157
157
  }
158
158
  /**
159
159
  * Sets the name of the texture.
@@ -161,7 +161,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
161
161
  * @param name - The new texture name
162
162
  */
163
163
  set name(name) {
164
- this.vu = name;
164
+ this.Xu = name;
165
165
  }
166
166
  /**
167
167
  * Gets the name of the texture.
@@ -169,7 +169,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
169
169
  * @returns The texture name
170
170
  */
171
171
  get name() {
172
- return this.vu;
172
+ return this.Xu;
173
173
  }
174
174
  /**
175
175
  * Retrieves image data from a rectangular region of the texture.
@@ -182,10 +182,10 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
182
182
  * @returns ImageData object containing the pixel data
183
183
  */
184
184
  getImageData(x, y, width, height) {
185
- if (this.RB === void 0) {
185
+ if (this.CC === void 0) {
186
186
  this.createInternalCanvasContext();
187
187
  }
188
- return this.RB.getImageData(x, y, width, height);
188
+ return this.CC.getImageData(x, y, width, height);
189
189
  }
190
190
  /**
191
191
  * Gets a single pixel value at the specified coordinates as a specific type.
@@ -232,7 +232,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
232
232
  for (let i = 0; i < numberOfComponents; i++) {
233
233
  data[i] = value.at(i);
234
234
  }
235
- this.RB.putImageData(pixel, x, y);
235
+ this.CC.putImageData(pixel, x, y);
236
236
  }
237
237
  /**
238
238
  * Sets a specific channel value for a pixel at the given coordinates.
@@ -247,7 +247,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
247
247
  const pixel = this.getImageData(x, y, 1, 1);
248
248
  const data = pixel.data;
249
249
  data[channelIdx] = value;
250
- this.RB.putImageData(pixel, x, y);
250
+ this.CC.putImageData(pixel, x, y);
251
251
  }
252
252
  /**
253
253
  * Checks if the texture contains transparent pixels.
@@ -255,7 +255,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
255
255
  * @returns True if the texture has transparency, false otherwise
256
256
  */
257
257
  get isTransparent() {
258
- return this.VB;
258
+ return this.GC;
259
259
  }
260
260
  /**
261
261
  * Creates an internal canvas context for pixel manipulation operations.
@@ -263,15 +263,15 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
263
263
  */
264
264
  createInternalCanvasContext() {
265
265
  let canvas;
266
- if (this.QB != null) {
267
- canvas = this.QB;
266
+ if (this.BC != null) {
267
+ canvas = this.BC;
268
268
  } else {
269
269
  canvas = document.createElement("canvas");
270
270
  canvas.width = this.width;
271
271
  canvas.height = this.height;
272
272
  }
273
- this.QB = canvas;
274
- this.RB = canvas.getContext("2d");
273
+ this.BC = canvas;
274
+ this.CC = canvas.getContext("2d");
275
275
  }
276
276
  /**
277
277
  * Converts the texture data to a TextureDataFloat object with the specified number of channels.
@@ -302,7 +302,7 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
302
302
  * or undefined if the texture is not ready or reading fails
303
303
  */
304
304
  async getTexturePixelDataFromGPU() {
305
- if (!this.UB || this._textureResourceUid < 0 || this.lm <= 0 || this.jy <= 0) {
305
+ if (!this.FC || this._textureResourceUid < 0 || this.qm <= 0 || this.Ly <= 0) {
306
306
  return void 0;
307
307
  }
308
308
  try {
@@ -311,8 +311,8 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
311
311
  this._textureResourceUid,
312
312
  0,
313
313
  0,
314
- this.lm,
315
- this.jy
314
+ this.qm,
315
+ this.Ly
316
316
  );
317
317
  return pixels;
318
318
  } catch (e) {
@@ -334,19 +334,19 @@ var _AbstractTexture = class _AbstractTexture extends RnObject {
334
334
  return void 0;
335
335
  }
336
336
  const canvas = document.createElement("canvas");
337
- canvas.width = this.lm;
338
- canvas.height = this.jy;
337
+ canvas.width = this.qm;
338
+ canvas.height = this.Ly;
339
339
  const ctx = canvas.getContext("2d");
340
340
  if (!ctx) {
341
341
  return void 0;
342
342
  }
343
- const imageData = new ImageData(new Uint8ClampedArray(pixels), this.lm, this.jy);
343
+ const imageData = new ImageData(new Uint8ClampedArray(pixels), this.qm, this.Ly);
344
344
  ctx.putImageData(imageData, 0, 0);
345
345
  return canvas;
346
346
  }
347
347
  };
348
348
  _AbstractTexture.InvalidTextureUid = -1;
349
- _AbstractTexture.WB = _AbstractTexture.InvalidTextureUid;
349
+ _AbstractTexture.HC = _AbstractTexture.InvalidTextureUid;
350
350
  var AbstractTexture = _AbstractTexture;
351
351
  export {
352
352
  AbstractTexture
@@ -27,7 +27,7 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
27
27
  * @param uniqueName - A unique name for the texture used in logging
28
28
  * @private
29
29
  */
30
- cC(textureResourceUid, uniqueName) {
30
+ PC(textureResourceUid, uniqueName) {
31
31
  this._textureResourceUid = textureResourceUid;
32
32
  _CubeTexture.managedRegistry.register(this, { textureResourceUid, engine: this.c, uniqueName }, this);
33
33
  }
@@ -59,7 +59,7 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
59
59
  hdriFormat,
60
60
  iblMipLevelSkip = 0
61
61
  }) {
62
- this.XB = true;
62
+ this.IC = true;
63
63
  this.mipmapLevelNumber = mipmapLevelNumber;
64
64
  this.hdriFormat = hdriFormat;
65
65
  this.iblMipLevelSkip = iblMipLevelSkip;
@@ -71,17 +71,17 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
71
71
  isNamePosNeg,
72
72
  hdriFormat
73
73
  );
74
- this.cC(cubeTextureUid, this.uniqueName);
74
+ this.PC(cubeTextureUid, this.uniqueName);
75
75
  this._recommendedTextureSampler = sampler;
76
76
  this._samplerResourceUid = sampler._samplerResourceUid;
77
- this.lm = width;
78
- this.jy = height;
77
+ this.qm = width;
78
+ this.Ly = height;
79
79
  if (this.c.engineState.currentProcessApproach === ProcessApproach.WebGPU) {
80
80
  this._textureViewResourceUid = cgApiResourceRepository.createTextureViewCube(
81
81
  this._textureResourceUid
82
82
  );
83
83
  }
84
- this.UB = true;
84
+ this.FC = true;
85
85
  }
86
86
  /**
87
87
  * Loads cube texture from Basis compressed texture data.
@@ -112,7 +112,7 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
112
112
  wrapS = TextureParameter.Repeat,
113
113
  wrapT = TextureParameter.Repeat
114
114
  } = {}) {
115
- this.XB = true;
115
+ this.IC = true;
116
116
  if (typeof BASIS === "undefined") {
117
117
  Logger.default.error("Failed to call BASIS() function. Please check to import basis_transcoder.js.");
118
118
  }
@@ -134,10 +134,10 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
134
134
  wrapS,
135
135
  wrapT
136
136
  });
137
- this.cC(resourceHandle, this.uniqueName);
138
- this.lm = width;
139
- this.jy = height;
140
- this.UB = true;
137
+ this.PC(resourceHandle, this.uniqueName);
138
+ this.qm = width;
139
+ this.Ly = height;
140
+ this.FC = true;
141
141
  basisFile.close();
142
142
  basisFile.delete();
143
143
  });
@@ -183,15 +183,15 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
183
183
  1,
184
184
  1
185
185
  );
186
- this.cC(resourceUid, this.uniqueName);
186
+ this.PC(resourceUid, this.uniqueName);
187
187
  this._recommendedTextureSampler = sampler;
188
188
  this._samplerResourceUid = sampler._samplerResourceUid;
189
- this.lm = 1;
190
- this.jy = 1;
189
+ this.qm = 1;
190
+ this.Ly = 1;
191
191
  if (this.c.engineState.currentProcessApproach === ProcessApproach.WebGPU) {
192
192
  this._textureViewResourceUid = cgApiResourceRepository.createTextureViewCube(this._textureResourceUid);
193
193
  }
194
- this.UB = true;
194
+ this.FC = true;
195
195
  }
196
196
  /**
197
197
  * Generates a cube texture from typed arrays containing raw image data.
@@ -227,11 +227,11 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
227
227
  baseLevelHeight
228
228
  );
229
229
  this._recommendedTextureSampler = sampler;
230
- this.cC(resourceId, this.uniqueName);
231
- this.lm = baseLevelWidth;
232
- this.jy = baseLevelHeight;
233
- this.UB = true;
234
- this.XB = true;
230
+ this.PC(resourceId, this.uniqueName);
231
+ this.qm = baseLevelWidth;
232
+ this.Ly = baseLevelHeight;
233
+ this.FC = true;
234
+ this.IC = true;
235
235
  }
236
236
  /**
237
237
  * Imports an existing WebGL texture directly into this CubeTexture instance.
@@ -249,13 +249,13 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
249
249
  * ```
250
250
  */
251
251
  importWebGLTextureDirectly(webGLTexture, width = 0, height = 0) {
252
- this.lm = width;
253
- this.jy = height;
252
+ this.qm = width;
253
+ this.Ly = height;
254
254
  const webGLResourceRepository = this.c.webglResourceRepository;
255
255
  const texture = webGLResourceRepository.setWebGLTextureDirectly(webGLTexture);
256
- this.cC(texture, this.uniqueName);
257
- this.XB = true;
258
- this.UB = true;
256
+ this.PC(texture, this.uniqueName);
257
+ this.IC = true;
258
+ this.FC = true;
259
259
  }
260
260
  /**
261
261
  * Deletes the internal texture resource from the graphics API.
@@ -265,7 +265,7 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
265
265
  * @param textureResourceUid - The unique identifier of the texture resource to delete
266
266
  * @private
267
267
  */
268
- static dC(engine, textureResourceUid) {
268
+ static QC(engine, textureResourceUid) {
269
269
  const cgApiResourceRepository = engine.cgApiResourceRepository;
270
270
  cgApiResourceRepository.deleteTexture(textureResourceUid);
271
271
  }
@@ -275,14 +275,14 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
275
275
  * After calling this method, the texture cannot be used for rendering until reloaded.
276
276
  */
277
277
  destroy3DAPIResources() {
278
- _CubeTexture.dC(this.c, this._textureResourceUid);
278
+ _CubeTexture.QC(this.c, this._textureResourceUid);
279
279
  this._textureResourceUid = CGAPIResourceRepository.InvalidCGAPIResourceUid;
280
280
  this._samplerResourceUid = CGAPIResourceRepository.InvalidCGAPIResourceUid;
281
281
  if (this._recommendedTextureSampler) {
282
282
  this._recommendedTextureSampler.destroy();
283
283
  }
284
- this.UB = false;
285
- this.XB = false;
284
+ this.FC = false;
285
+ this.IC = false;
286
286
  }
287
287
  /**
288
288
  * Implements the Disposable interface for automatic resource cleanup.
@@ -320,8 +320,8 @@ var _CubeTexture = class _CubeTexture extends AbstractTexture {
320
320
  const cgApiResourceRepository = this.c.cgApiResourceRepository;
321
321
  const data = await cgApiResourceRepository.getCubeTexturePixelData(
322
322
  this._textureResourceUid,
323
- this.lm,
324
- this.jy,
323
+ this.qm,
324
+ this.Ly,
325
325
  faceIndex
326
326
  );
327
327
  return data;
@@ -410,7 +410,7 @@ _CubeTexture.managedRegistry = new FinalizationRegistry((texObj) => {
410
410
  Logger.default.info(
411
411
  `WebGL/WebGPU cube texture "${texObj.uniqueName}" was automatically released along with GC. But explicit release is recommended.`
412
412
  );
413
- _CubeTexture.dC(texObj.engine, texObj.textureResourceUid);
413
+ _CubeTexture.QC(texObj.engine, texObj.textureResourceUid);
414
414
  });
415
415
  var CubeTexture = _CubeTexture;
416
416
  export {
@@ -11,7 +11,7 @@ var RenderBuffer = class extends RnObject {
11
11
  /** The height of the render buffer in pixels */
12
12
  this.height = 0;
13
13
  /** The internal texture format of the render buffer */
14
- this.$B = TextureFormat.Depth24;
14
+ this.MC = TextureFormat.Depth24;
15
15
  /** The unique identifier for the texture resource in the graphics API */
16
16
  this._textureResourceUid = -1;
17
17
  /** The unique identifier for the texture view resource */
@@ -19,9 +19,9 @@ var RenderBuffer = class extends RnObject {
19
19
  /** The unique identifier for the texture view used as a render target */
20
20
  this._textureViewAsRenderTargetResourceUid = -1;
21
21
  /** Flag indicating whether MSAA (Multi-Sample Anti-Aliasing) is enabled */
22
- this.gC = false;
22
+ this.TC = false;
23
23
  /** The number of samples used for MSAA */
24
- this.eC = 4;
24
+ this.RC = 4;
25
25
  this.c = engine;
26
26
  }
27
27
  /**
@@ -29,21 +29,21 @@ var RenderBuffer = class extends RnObject {
29
29
  * @param fbo - The frame buffer object to associate with this render buffer
30
30
  */
31
31
  set _fbo(fbo) {
32
- this.fC = fbo;
32
+ this.SC = fbo;
33
33
  }
34
34
  /**
35
35
  * Gets the associated frame buffer object.
36
36
  * @returns The frame buffer object or undefined if not set
37
37
  */
38
38
  get fbo() {
39
- return this.fC;
39
+ return this.SC;
40
40
  }
41
41
  /**
42
42
  * Gets the MSAA sample count for this render buffer.
43
43
  * @returns The number of samples used for multi-sample anti-aliasing
44
44
  */
45
45
  get sampleCount() {
46
- return this.eC;
46
+ return this.RC;
47
47
  }
48
48
  /**
49
49
  * Creates and initializes the render buffer with the specified parameters.
@@ -56,12 +56,12 @@ var RenderBuffer = class extends RnObject {
56
56
  * @param options.isMSAA - Whether to enable multi-sample anti-aliasing (default: false)
57
57
  * @param options.sampleCountMSAA - The number of MSAA samples (default: current sample count)
58
58
  */
59
- create(width, height, internalFormat, { isMSAA = false, sampleCountMSAA = this.eC } = {}) {
59
+ create(width, height, internalFormat, { isMSAA = false, sampleCountMSAA = this.RC } = {}) {
60
60
  this.width = width;
61
61
  this.height = height;
62
- this.gC = isMSAA;
63
- this.eC = sampleCountMSAA;
64
- this.$B = internalFormat;
62
+ this.TC = isMSAA;
63
+ this.RC = sampleCountMSAA;
64
+ this.MC = internalFormat;
65
65
  const cgApiResourceRepository = this.c.cgApiResourceRepository;
66
66
  this._textureResourceUid = cgApiResourceRepository.createRenderBuffer(
67
67
  width,
@@ -94,7 +94,7 @@ var RenderBuffer = class extends RnObject {
94
94
  */
95
95
  resize(width, height) {
96
96
  this.destroy3DAPIResources();
97
- this.create(width, height, this.$B, { isMSAA: this.gC });
97
+ this.create(width, height, this.MC, { isMSAA: this.TC });
98
98
  }
99
99
  /**
100
100
  * Destroys all GPU resources associated with this render buffer.
@@ -20,14 +20,14 @@ var RenderTargetTexture = class extends AbstractTexture {
20
20
  mipLevelCount,
21
21
  format: internalFormat
22
22
  }) {
23
- this.lm = width;
24
- this.jy = height;
25
- this._B = mipLevelCount != null ? mipLevelCount : Math.floor(Math.log2(Math.max(width, height))) + 1;
23
+ this.qm = width;
24
+ this.Ly = height;
25
+ this.LC = mipLevelCount != null ? mipLevelCount : Math.floor(Math.log2(Math.max(width, height))) + 1;
26
26
  const { format, type } = TextureFormat.getPixelFormatAndComponentTypeFromTextureFormat(internalFormat);
27
- this.$B = internalFormat;
28
- this.aC = format;
27
+ this.MC = internalFormat;
28
+ this.NC = format;
29
29
  this.Gc = type;
30
- this.hC();
30
+ this.UC();
31
31
  }
32
32
  /**
33
33
  * Sets the framebuffer object associated with this render target texture.
@@ -35,7 +35,7 @@ var RenderTargetTexture = class extends AbstractTexture {
35
35
  * @param fbo - The FrameBuffer object to associate with this texture
36
36
  */
37
37
  set _fbo(fbo) {
38
- this.fC = fbo;
38
+ this.SC = fbo;
39
39
  }
40
40
  /**
41
41
  * Gets the framebuffer object associated with this render target texture.
@@ -43,7 +43,7 @@ var RenderTargetTexture = class extends AbstractTexture {
43
43
  * @returns The associated FrameBuffer object, or undefined if not set
44
44
  */
45
45
  get fbo() {
46
- return this.fC;
46
+ return this.SC;
47
47
  }
48
48
  /**
49
49
  * Creates the underlying 3D API resources for the render target texture.
@@ -51,13 +51,13 @@ var RenderTargetTexture = class extends AbstractTexture {
51
51
  *
52
52
  * @private
53
53
  */
54
- hC() {
54
+ UC() {
55
55
  const cgApiResourceRepository = this.c.cgApiResourceRepository;
56
56
  const texture = cgApiResourceRepository.createRenderTargetTexture({
57
- width: this.lm,
58
- height: this.jy,
59
- mipLevelCount: this._B,
60
- format: this.$B
57
+ width: this.qm,
58
+ height: this.Ly,
59
+ mipLevelCount: this.LC,
60
+ format: this.MC
61
61
  });
62
62
  this._textureResourceUid = texture;
63
63
  if (this.c.engineState.currentProcessApproach === ProcessApproach.WebGPU) {
@@ -76,9 +76,9 @@ var RenderTargetTexture = class extends AbstractTexture {
76
76
  */
77
77
  resize(width, height) {
78
78
  this.destroy3DAPIResources();
79
- this.lm = width;
80
- this.jy = height;
81
- this.hC();
79
+ this.qm = width;
80
+ this.Ly = height;
81
+ this.UC();
82
82
  }
83
83
  /**
84
84
  * Destroys all 3D API resources associated with this render target texture.
@@ -102,10 +102,10 @@ var RenderTargetTexture = class extends AbstractTexture {
102
102
  const cgApiResourceRepository = this.c.cgApiResourceRepository;
103
103
  const data = cgApiResourceRepository.getTexturePixelData(
104
104
  this._textureResourceUid,
105
- this.lm,
106
- this.jy,
107
- this.fC.framebufferUID,
108
- this.fC.whichColorAttachment(this)
105
+ this.qm,
106
+ this.Ly,
107
+ this.SC.framebufferUID,
108
+ this.SC.whichColorAttachment(this)
109
109
  );
110
110
  return data;
111
111
  }
@@ -117,8 +117,8 @@ var RenderTargetTexture = class extends AbstractTexture {
117
117
  async downloadTexturePixelData() {
118
118
  const data = await this.getTexturePixelData();
119
119
  const canvas = document.createElement("canvas");
120
- canvas.width = this.lm;
121
- canvas.height = this.jy;
120
+ canvas.width = this.qm;
121
+ canvas.height = this.Ly;
122
122
  const ctx = canvas.getContext("2d");
123
123
  if (!(data.buffer instanceof ArrayBuffer)) {
124
124
  throw new Error("SharedArrayBuffer is not supported when downloading texture pixel data.");
@@ -128,8 +128,8 @@ var RenderTargetTexture = class extends AbstractTexture {
128
128
  data.byteOffset,
129
129
  data.byteLength / Uint8ClampedArray.BYTES_PER_ELEMENT
130
130
  );
131
- const imageData = new ImageData(pixelData, this.lm, this.jy);
132
- ctx.putImageData(imageData, this.lm, this.jy);
131
+ const imageData = new ImageData(pixelData, this.qm, this.Ly);
132
+ ctx.putImageData(imageData, this.qm, this.Ly);
133
133
  const dataUri = canvas.toDataURL("image/png");
134
134
  const a = document.createElement("a");
135
135
  const e = document.createEvent("MouseEvent");