rhodonite 0.4.2 → 0.5.2

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 (284) hide show
  1. package/VERSION-FILE +2 -2
  2. package/dist/esm/effekseer/EffekseerComponent.d.ts +52 -45
  3. package/dist/esm/effekseer/main.d.ts +6 -6
  4. package/dist/esm/foundation/cameras/AbstractCameraController.d.ts +14 -14
  5. package/dist/esm/foundation/cameras/ICameraController.d.ts +9 -9
  6. package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +128 -123
  7. package/dist/esm/foundation/cameras/WalkThroughCameraController.d.ts +75 -75
  8. package/dist/esm/foundation/components/AnimationComponent.d.ts +81 -94
  9. package/dist/esm/foundation/components/BlendShapeComponent.d.ts +14 -14
  10. package/dist/esm/foundation/components/CameraComponent.d.ts +116 -116
  11. package/dist/esm/foundation/components/CameraControllerComponent.d.ts +16 -16
  12. package/dist/esm/foundation/components/LightComponent.d.ts +28 -28
  13. package/dist/esm/foundation/components/MeshComponent.d.ts +50 -50
  14. package/dist/esm/foundation/components/MeshRendererComponent.d.ts +57 -57
  15. package/dist/esm/foundation/components/PhysicsComponent.d.ts +12 -12
  16. package/dist/esm/foundation/components/SceneGraphComponent.d.ts +114 -81
  17. package/dist/esm/foundation/components/SkeletalComponent.d.ts +50 -50
  18. package/dist/esm/foundation/components/TransformComponent.d.ts +91 -91
  19. package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +16 -16
  20. package/dist/esm/foundation/core/Component.d.ts +216 -216
  21. package/dist/esm/foundation/core/ComponentRepository.d.ts +59 -59
  22. package/dist/esm/foundation/core/Config.d.ts +20 -19
  23. package/dist/esm/foundation/core/Entity.d.ts +84 -84
  24. package/dist/esm/foundation/core/EntityRepository.d.ts +62 -62
  25. package/dist/esm/foundation/core/GlobalDataRepository.d.ts +32 -31
  26. package/dist/esm/foundation/core/MemoryManager.d.ts +29 -29
  27. package/dist/esm/foundation/core/RnObject.d.ts +96 -96
  28. package/dist/esm/foundation/definitions/AlphaMode.d.ts +15 -15
  29. package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +13 -13
  30. package/dist/esm/foundation/definitions/AnimationInterpolation.d.ts +12 -12
  31. package/dist/esm/foundation/definitions/BasisCompressionType.d.ts +26 -26
  32. package/dist/esm/foundation/definitions/BoneDataType.d.ts +13 -13
  33. package/dist/esm/foundation/definitions/BufferUse.d.ts +13 -13
  34. package/dist/esm/foundation/definitions/CameraControllerType.d.ts +11 -11
  35. package/dist/esm/foundation/definitions/CameraType.d.ts +12 -12
  36. package/dist/esm/foundation/definitions/ComponentType.d.ts +32 -32
  37. package/dist/esm/foundation/definitions/CompositionType.d.ts +39 -38
  38. package/dist/esm/foundation/definitions/CompressionTextureType.d.ts +48 -48
  39. package/dist/esm/foundation/definitions/FileType.d.ts +17 -17
  40. package/dist/esm/foundation/definitions/GpuState.d.ts +10 -10
  41. package/dist/esm/foundation/definitions/HdriFormat.d.ts +10 -10
  42. package/dist/esm/foundation/definitions/LightType.d.ts +13 -13
  43. package/dist/esm/foundation/definitions/PixelFormat.d.ts +10 -10
  44. package/dist/esm/foundation/definitions/PrimitiveMode.d.ts +15 -15
  45. package/dist/esm/foundation/definitions/ProcessApproach.d.ts +19 -19
  46. package/dist/esm/foundation/definitions/ProcessStage.d.ts +18 -18
  47. package/dist/esm/foundation/definitions/RenderBufferTarget.d.ts +27 -27
  48. package/dist/esm/foundation/definitions/ShaderNode.d.ts +11 -11
  49. package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +119 -119
  50. package/dist/esm/foundation/definitions/ShaderType.d.ts +13 -13
  51. package/dist/esm/foundation/definitions/ShaderVariableType.d.ts +11 -11
  52. package/dist/esm/foundation/definitions/ShaderVariableUpdateInterval.d.ts +12 -12
  53. package/dist/esm/foundation/definitions/ShadingModel.d.ts +12 -12
  54. package/dist/esm/foundation/definitions/ShadowMap.d.ts +11 -11
  55. package/dist/esm/foundation/definitions/TextureParameter.d.ts +37 -37
  56. package/dist/esm/foundation/definitions/VertexAttribute.d.ts +38 -38
  57. package/dist/esm/foundation/definitions/visibility.d.ts +12 -12
  58. package/dist/esm/foundation/enhanced_js_objects/Array.d.ts +15 -15
  59. package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +27 -22
  60. package/dist/esm/foundation/geometry/Frustum.d.ts +37 -37
  61. package/dist/esm/foundation/geometry/Mesh.d.ts +148 -124
  62. package/dist/esm/foundation/geometry/Plane.d.ts +30 -26
  63. package/dist/esm/foundation/geometry/Primitive.d.ts +78 -78
  64. package/dist/esm/foundation/geometry/Sphere.d.ts +12 -12
  65. package/dist/esm/foundation/gizmos/AABBGizmo.d.ts +29 -10
  66. package/dist/esm/foundation/gizmos/Gizmo.d.ts +39 -16
  67. package/dist/esm/foundation/gizmos/LocatorGizmo.d.ts +28 -0
  68. package/dist/esm/foundation/helpers/EntityHelper.d.ts +11 -11
  69. package/dist/esm/foundation/helpers/MaterialHelper.d.ts +173 -167
  70. package/dist/esm/foundation/helpers/MeshHelper.d.ts +4 -4
  71. package/dist/esm/foundation/helpers/RenderableHelper.d.ts +18 -18
  72. package/dist/esm/foundation/importer/AnimationAssigner.d.ts +16 -16
  73. package/dist/esm/foundation/importer/DrcPointCloudImporter.d.ts +69 -69
  74. package/dist/esm/foundation/importer/FormatDetector.d.ts +5 -5
  75. package/dist/esm/foundation/importer/Gltf1Importer.d.ts +45 -45
  76. package/dist/esm/foundation/importer/Gltf2Importer.d.ts +46 -46
  77. package/dist/esm/foundation/importer/GltfImporter.d.ts +57 -57
  78. package/dist/esm/foundation/importer/ILoaderExtension.d.ts +11 -11
  79. package/dist/esm/foundation/importer/ModelConverter.d.ts +78 -78
  80. package/dist/esm/foundation/importer/RhodoniteImportExtension.d.ts +9 -9
  81. package/dist/esm/foundation/importer/VRMImporter.d.ts +15 -15
  82. package/dist/esm/foundation/materials/core/AbstractMaterialNode.d.ts +124 -124
  83. package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +33 -33
  84. package/dist/esm/foundation/materials/core/Material.d.ts +181 -149
  85. package/dist/esm/foundation/materials/core/ShaderGraphResolver.d.ts +16 -16
  86. package/dist/esm/foundation/materials/core/ShaderityUtility.d.ts +30 -32
  87. package/dist/esm/foundation/materials/nodes/AddShaderNode.d.ts +6 -6
  88. package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.d.ts +4 -4
  89. package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.d.ts +4 -4
  90. package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.d.ts +9 -9
  91. package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.d.ts +7 -7
  92. package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.d.ts +7 -7
  93. package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +6 -6
  94. package/dist/esm/foundation/materials/nodes/GreaterShaderNode.d.ts +6 -6
  95. package/dist/esm/foundation/materials/nodes/IfStatementShaderNode.d.ts +4 -4
  96. package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +6 -6
  97. package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.d.ts +4 -4
  98. package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +6 -6
  99. package/dist/esm/foundation/materials/nodes/OutColorShaderNode.d.ts +4 -4
  100. package/dist/esm/foundation/materials/nodes/OutPositionShaderNode.d.ts +4 -4
  101. package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.d.ts +4 -4
  102. package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.d.ts +4 -4
  103. package/dist/esm/foundation/materials/nodes/TextureFetchMaterialNode.d.ts +6 -6
  104. package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.d.ts +8 -8
  105. package/dist/esm/foundation/materials/nodes/VaryingInVariableShaderNode.d.ts +7 -7
  106. package/dist/esm/foundation/materials/nodes/VaryingOutVariableShaderNode.d.ts +7 -7
  107. package/dist/esm/foundation/materials/nodes/Vector3AndScalarToVector4ShaderNode.d.ts +4 -4
  108. package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.d.ts +4 -4
  109. package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.d.ts +4 -4
  110. package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.d.ts +4 -4
  111. package/dist/esm/foundation/materials/singles/ClassicShadingSingleMaterialNode.d.ts +16 -16
  112. package/dist/esm/foundation/materials/singles/ColorGradingUsingLUTsSingleMaterialNode.d.ts +16 -16
  113. package/dist/esm/foundation/materials/singles/CustomSingleMaterialNode.d.ts +30 -31
  114. package/dist/esm/foundation/materials/singles/DepthEncodeSingleMaterialNode.d.ts +20 -20
  115. package/dist/esm/foundation/materials/singles/DetectHighLuminanceSingleMaterialNode.d.ts +16 -16
  116. package/dist/esm/foundation/materials/singles/EntityUIDOutputSingleMaterialNode.d.ts +11 -11
  117. package/dist/esm/foundation/materials/singles/EnvConstantSingleMaterialNode.d.ts +14 -14
  118. package/dist/esm/foundation/materials/singles/FXAA3QualitySingleMaterialNode.d.ts +11 -11
  119. package/dist/esm/foundation/materials/singles/FurnaceTestSingleMaterialNode.d.ts +17 -17
  120. package/dist/esm/foundation/materials/singles/GammaCorrectionSingleMaterialNode.d.ts +11 -11
  121. package/dist/esm/foundation/materials/singles/GaussianBlurForEncodedDepthSingleMaterialNode.d.ts +27 -27
  122. package/dist/esm/foundation/materials/singles/GaussianBlurSingleMaterialNode.d.ts +27 -27
  123. package/dist/esm/foundation/materials/singles/MToonSingleMaterialNode.d.ts +52 -52
  124. package/dist/esm/foundation/materials/singles/MatCapSingleMaterialNode.d.ts +14 -14
  125. package/dist/esm/foundation/materials/singles/PbrExtendedShadingSingleMaterialNode.d.ts +29 -29
  126. package/dist/esm/foundation/materials/singles/PbrShadingSingleMaterialNode.d.ts +36 -36
  127. package/dist/esm/foundation/materials/singles/ShaderitySingleMaterialNode.d.ts +17 -0
  128. package/dist/esm/foundation/materials/singles/ShadowMapDecodeClassicSingleMaterialNode.d.ts +41 -41
  129. package/dist/esm/foundation/materials/singles/SkinPbrShadingSingleMaterialNode.d.ts +26 -26
  130. package/dist/esm/foundation/materials/singles/SynthesizeHDRSingleMaterialNode.d.ts +39 -39
  131. package/dist/esm/foundation/materials/singles/VarianceShadowMapDecodeClassicSingleMaterialNode.d.ts +52 -52
  132. package/dist/esm/foundation/math/AABB.d.ts +34 -34
  133. package/dist/esm/foundation/math/AbstractMathNumber.d.ts +6 -6
  134. package/dist/esm/foundation/math/AbstractMatrix.d.ts +14 -14
  135. package/dist/esm/foundation/math/AbstractQuaternion.d.ts +25 -25
  136. package/dist/esm/foundation/math/AbstractVector.d.ts +21 -21
  137. package/dist/esm/foundation/math/ColorRgb.d.ts +26 -27
  138. package/dist/esm/foundation/math/ColorRgba.d.ts +25 -25
  139. package/dist/esm/foundation/math/IColor.d.ts +64 -64
  140. package/dist/esm/foundation/math/IMathNumber.d.ts +3 -3
  141. package/dist/esm/foundation/math/IMatrix.d.ts +226 -226
  142. package/dist/esm/foundation/math/IQuaternion.d.ts +64 -64
  143. package/dist/esm/foundation/math/IVector.d.ts +209 -209
  144. package/dist/esm/foundation/math/IdentityMatrix33.d.ts +40 -40
  145. package/dist/esm/foundation/math/IdentityMatrix44.d.ts +45 -45
  146. package/dist/esm/foundation/math/ImageUtil.d.ts +19 -19
  147. package/dist/esm/foundation/math/LogQuaternion.d.ts +12 -12
  148. package/dist/esm/foundation/math/MathClassUtil.d.ts +37 -37
  149. package/dist/esm/foundation/math/MathUtil.d.ts +55 -55
  150. package/dist/esm/foundation/math/Matrix22.d.ts +69 -69
  151. package/dist/esm/foundation/math/Matrix33.d.ts +86 -86
  152. package/dist/esm/foundation/math/Matrix44.d.ts +122 -122
  153. package/dist/esm/foundation/math/MutableColorRgb.d.ts +32 -33
  154. package/dist/esm/foundation/math/MutableColorRgba.d.ts +33 -33
  155. package/dist/esm/foundation/math/MutableMatrix22.d.ts +80 -80
  156. package/dist/esm/foundation/math/MutableMatrix33.d.ts +110 -110
  157. package/dist/esm/foundation/math/MutableMatrix44.d.ts +149 -149
  158. package/dist/esm/foundation/math/MutableQuaternion.d.ts +48 -48
  159. package/dist/esm/foundation/math/MutableScalar.d.ts +34 -34
  160. package/dist/esm/foundation/math/MutableVector2.d.ts +80 -75
  161. package/dist/esm/foundation/math/MutableVector3.d.ts +98 -94
  162. package/dist/esm/foundation/math/MutableVector4.d.ts +87 -85
  163. package/dist/esm/foundation/math/Quaternion.d.ts +53 -51
  164. package/dist/esm/foundation/math/Scalar.d.ts +40 -36
  165. package/dist/esm/foundation/math/Vector2.d.ts +140 -126
  166. package/dist/esm/foundation/math/Vector3.d.ts +166 -150
  167. package/dist/esm/foundation/math/Vector4.d.ts +146 -146
  168. package/dist/esm/foundation/math/VectorN.d.ts +5 -5
  169. package/dist/esm/foundation/math/raw/raw_extension.d.ts +59 -23
  170. package/dist/esm/foundation/memory/Accessor.d.ts +182 -182
  171. package/dist/esm/foundation/memory/Buffer.d.ts +37 -37
  172. package/dist/esm/foundation/memory/BufferView.d.ts +60 -60
  173. package/dist/esm/foundation/misc/Cache.d.ts +19 -0
  174. package/dist/esm/foundation/misc/DataUtil.d.ts +42 -38
  175. package/dist/esm/foundation/misc/EnumIO.d.ts +33 -33
  176. package/dist/esm/foundation/misc/Is.d.ts +26 -26
  177. package/dist/esm/foundation/misc/ManualCache.d.ts +30 -0
  178. package/dist/esm/foundation/misc/MiscUtil.d.ts +37 -30
  179. package/dist/esm/foundation/misc/Option.d.ts +72 -72
  180. package/dist/esm/foundation/misc/Result.d.ts +40 -40
  181. package/dist/esm/foundation/misc/RnPromise.d.ts +27 -27
  182. package/dist/esm/foundation/misc/Time.d.ts +16 -16
  183. package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +2 -2
  184. package/dist/esm/foundation/physics/SphereCollider.d.ts +5 -5
  185. package/dist/esm/foundation/physics/VRMColliderGroup.d.ts +6 -6
  186. package/dist/esm/foundation/physics/VRMSpringBoneGroup.d.ts +14 -14
  187. package/dist/esm/foundation/physics/VRMSpringBonePhysicsStrategy.d.ts +39 -39
  188. package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +5 -5
  189. package/dist/esm/foundation/renderer/Expression.d.ts +21 -21
  190. package/dist/esm/foundation/renderer/FrameBuffer.d.ts +32 -32
  191. package/dist/esm/foundation/renderer/RenderPass.d.ts +113 -115
  192. package/dist/esm/foundation/system/EventPubSub.d.ts +19 -19
  193. package/dist/esm/foundation/system/ModuleManager.d.ts +10 -10
  194. package/dist/esm/foundation/system/System.d.ts +23 -23
  195. package/dist/esm/foundation/system/SystemState.d.ts +4 -4
  196. package/dist/esm/foundation/textures/AbstractTexture.d.ts +60 -60
  197. package/dist/esm/foundation/textures/CubeTexture.d.ts +33 -33
  198. package/dist/esm/foundation/textures/IRenderable.d.ts +10 -10
  199. package/dist/esm/foundation/textures/RenderBuffer.d.ts +23 -23
  200. package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +39 -39
  201. package/dist/esm/foundation/textures/Texture.d.ts +90 -90
  202. package/dist/esm/foundation/textures/TextureDataFloat.d.ts +20 -18
  203. package/dist/esm/foundation/textures/VideoTexture.d.ts +63 -63
  204. package/dist/esm/index.d.ts +927 -917
  205. package/dist/esm/index.js +44596 -41597
  206. package/dist/esm/pbr/main.d.ts +5 -5
  207. package/dist/esm/sparkgear/SparkGearComponent.d.ts +54 -54
  208. package/dist/esm/sparkgear/main.d.ts +6 -6
  209. package/dist/esm/types/BasisTexture.d.ts +23 -23
  210. package/dist/esm/types/CommonTypes.d.ts +33 -29
  211. package/dist/esm/types/KTX2Texture.d.ts +67 -67
  212. package/dist/esm/types/RnM2.d.ts +329 -329
  213. package/dist/esm/types/TypeConverter.d.ts +1 -1
  214. package/dist/esm/types/TypeGenerators.d.ts +4 -4
  215. package/dist/esm/types/VRM.d.ts +160 -160
  216. package/dist/esm/types/glTF.d.ts +387 -385
  217. package/dist/esm/types/glTF1.d.ts +88 -88
  218. package/dist/esm/types/glTF2.d.ts +391 -338
  219. package/dist/esm/webgl/WebGLContextWrapper.d.ts +99 -99
  220. package/dist/esm/webgl/WebGLExtendedTypes.d.ts +14 -9
  221. package/dist/esm/webgl/WebGLExtension.d.ts +24 -24
  222. package/dist/esm/webgl/WebGLResourceRepository.d.ts +351 -221
  223. package/dist/esm/webgl/WebGLStrategy.d.ts +27 -22
  224. package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +54 -30
  225. package/dist/esm/webgl/WebGLStrategyFastest.d.ts +54 -51
  226. package/dist/esm/webgl/WebGLStrategyUniform.d.ts +44 -40
  227. package/dist/esm/webgl/getRenderingStrategy.d.ts +4 -4
  228. package/dist/esm/webgl/main.d.ts +17 -17
  229. package/dist/esm/webgl/shaders/GLSLShader.d.ts +48 -48
  230. package/dist/esm/webgl/shaders/nodes/BlockBeginShader.d.ts +16 -16
  231. package/dist/esm/webgl/shaders/nodes/BlockEndShader.d.ts +16 -16
  232. package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +17 -17
  233. package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +18 -18
  234. package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +17 -17
  235. package/dist/esm/webgl/shaders/nodes/IfStatementShader.d.ts +12 -12
  236. package/dist/esm/webgl/shaders/nodes/TextureFetchShader.d.ts +18 -18
  237. package/dist/esm/webgl/shaders/nodes/UniformDataShader.d.ts +20 -20
  238. package/dist/esm/webgl/shaders/nodes/VaryingVariableShader.d.ts +18 -18
  239. package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +21 -21
  240. package/dist/esm/xr/WebVRSystem.d.ts +55 -55
  241. package/dist/esm/xr/WebXRInput.d.ts +18 -18
  242. package/dist/esm/xr/WebXRSystem.d.ts +136 -136
  243. package/dist/esm/xr/main.d.ts +8 -8
  244. package/package.json +5 -7
  245. package/dist/VERSION-FILE +0 -2
  246. package/dist/esm/foundation/components/MeshComponent.test.d.ts +0 -1
  247. package/dist/esm/foundation/components/SceneGraphComponent.test.d.ts +0 -1
  248. package/dist/esm/foundation/components/TransformComponent.test.d.ts +0 -1
  249. package/dist/esm/foundation/core/Entity.test.d.ts +0 -1
  250. package/dist/esm/foundation/core/EntityRepository.test.d.ts +0 -1
  251. package/dist/esm/foundation/core/RnObject.test.d.ts +0 -1
  252. package/dist/esm/foundation/definitions/ShaderVariableTyoe.d.ts +0 -11
  253. package/dist/esm/foundation/enhanced_js_objects/Array.test.d.ts +0 -5
  254. package/dist/esm/foundation/geometry/Mesh.test.d.ts +0 -1
  255. package/dist/esm/foundation/importer/VRizeGltfLoaderExtension.d.ts +0 -21
  256. package/dist/esm/foundation/materials/core/Material.test.d.ts +0 -1
  257. package/dist/esm/foundation/materials/core/ShaderityUtility.test.d.ts +0 -1
  258. package/dist/esm/foundation/materials/nodes/AddShaderNode.test.d.ts +0 -1
  259. package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.test.d.ts +0 -1
  260. package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.test.d.ts +0 -1
  261. package/dist/esm/foundation/materials/nodes/VaryingVariableShaderNode.test.d.ts +0 -1
  262. package/dist/esm/foundation/materials/singles/VRizeClassicShadingSingleMaterialNode.d.ts +0 -24
  263. package/dist/esm/foundation/materials/singles/VRizePbrShadingSingleMaterialNode.d.ts +0 -28
  264. package/dist/esm/foundation/math/AABB.test.d.ts +0 -1
  265. package/dist/esm/foundation/math/IdentityMatrix33.test.d.ts +0 -1
  266. package/dist/esm/foundation/math/IdentityMatrix44.test.d.ts +0 -1
  267. package/dist/esm/foundation/math/Matrix44.test.d.ts +0 -1
  268. package/dist/esm/foundation/math/MutableMatrix44..test.d.ts +0 -1
  269. package/dist/esm/foundation/math/MutableVector4.test.d.ts +0 -1
  270. package/dist/esm/foundation/math/Vector4.test.d.ts +0 -1
  271. package/dist/esm/foundation/memory/Accessor.test.d.ts +0 -1
  272. package/dist/esm/foundation/memory/Buffer.test.d.ts +0 -1
  273. package/dist/esm/foundation/memory/BufferView.test.d.ts +0 -1
  274. package/dist/esm/foundation/misc/Is.test.d.ts +0 -1
  275. package/dist/esm/foundation/misc/Option.test.d.ts +0 -1
  276. package/dist/esm/foundation/misc/Result.test.d.ts +0 -1
  277. package/dist/esm/foundation/misc/RnPromise.test.d.ts +0 -1
  278. package/dist/esm/foundation/renderer/RenderPass.test.d.ts +0 -1
  279. package/dist/esm/foundation/system/EventPubSub.test.d.ts +0 -1
  280. package/dist/esm/rhodonite-xr.d.ts +0 -8
  281. package/dist/esm/types/Option.d.ts +0 -68
  282. package/dist/esm/types/Option.test.d.ts +0 -1
  283. package/dist/esm/types/Result.d.ts +0 -32
  284. package/dist/esm/webgl/WebGLResourceRepository.test.d.ts +0 -1
@@ -1,30 +1,54 @@
1
- import Material from '../foundation/materials/core/Material';
2
- import RenderPass from '../foundation/renderer/RenderPass';
3
- import MeshComponent from '../foundation/components/MeshComponent';
4
- import { Index } from '../types/CommonTypes';
5
- import Mesh from '../foundation/geometry/Mesh';
6
- declare function setWebGLParameters(material: Material, gl: WebGLRenderingContext): void;
7
- declare function startDepthMasking(idx: number, gl: WebGLRenderingContext): void;
8
- declare function endDepthMasking(idx: number, gl: WebGLRenderingContext): void;
9
- declare function updateVBOAndVAO(mesh: Mesh): void;
10
- declare function isMeshSetup(mesh: Mesh): boolean;
11
- declare function isMaterialsSetup(meshComponent: MeshComponent): boolean;
12
- declare function isSkipDrawing(material: Material, idx: Index): boolean;
13
- declare function setVRViewport(renderPass: RenderPass, displayIdx: Index): void;
14
- declare function getDisplayNumber(isVRMainPass: boolean): 1 | 2;
15
- declare function isVrMainPass(renderPass: RenderPass): boolean;
16
- declare function getLocationOffsetOfProperty(propertyIndex: Index, materialTypeName?: string): number;
17
- declare const _default: Readonly<{
18
- setWebGLParameters: typeof setWebGLParameters;
19
- startDepthMasking: typeof startDepthMasking;
20
- endDepthMasking: typeof endDepthMasking;
21
- updateVBOAndVAO: typeof updateVBOAndVAO;
22
- isMeshSetup: typeof isMeshSetup;
23
- isMaterialsSetup: typeof isMaterialsSetup;
24
- isSkipDrawing: typeof isSkipDrawing;
25
- setVRViewport: typeof setVRViewport;
26
- getDisplayNumber: typeof getDisplayNumber;
27
- isVrMainPass: typeof isVrMainPass;
28
- getLocationOffsetOfProperty: typeof getLocationOffsetOfProperty;
29
- }>;
30
- export default _default;
1
+ import Material from '../foundation/materials/core/Material';
2
+ import RenderPass from '../foundation/renderer/RenderPass';
3
+ import MeshComponent from '../foundation/components/MeshComponent';
4
+ import { Index } from '../types/CommonTypes';
5
+ import Mesh from '../foundation/geometry/Mesh';
6
+ import Scalar from '../foundation/math/Scalar';
7
+ import Vector3 from '../foundation/math/Vector3';
8
+ declare function setWebGLParameters(material: Material, gl: WebGLRenderingContext): void;
9
+ declare function startDepthMasking(idx: number, gl: WebGLRenderingContext): void;
10
+ declare function endDepthMasking(idx: number, gl: WebGLRenderingContext): void;
11
+ declare function updateVBOAndVAO(mesh: Mesh): void;
12
+ declare function isMeshSetup(mesh: Mesh): boolean;
13
+ declare function isMaterialsSetup(meshComponent: MeshComponent): boolean;
14
+ declare function isSkipDrawing(material: Material, idx: Index): boolean;
15
+ declare function setVRViewport(renderPass: RenderPass, displayIdx: Index): void;
16
+ declare function getDisplayNumber(isVRMainPass: boolean): 1 | 2;
17
+ declare function isVrMainPass(renderPass: RenderPass): boolean;
18
+ declare function getLocationOffsetOfProperty(propertyIndex: Index, materialTypeName?: string): number;
19
+ declare function getPointSpriteShaderSemanticsInfoArray(): ({
20
+ semantic: import("../foundation/definitions/ShaderSemantics").ShaderSemanticsEnum;
21
+ compositionType: import("../foundation/definitions/CompositionType").CompositionTypeEnum;
22
+ componentType: import("../foundation/definitions/ComponentType").ComponentTypeEnum;
23
+ stage: import("../foundation/misc/EnumIO").EnumIO;
24
+ initialValue: Scalar;
25
+ min: number;
26
+ max: number;
27
+ isSystem: boolean;
28
+ updateInterval: import("../foundation/misc/EnumIO").EnumIO;
29
+ } | {
30
+ semantic: import("../foundation/definitions/ShaderSemantics").ShaderSemanticsEnum;
31
+ compositionType: import("../foundation/definitions/CompositionType").CompositionTypeEnum;
32
+ componentType: import("../foundation/definitions/ComponentType").ComponentTypeEnum;
33
+ stage: import("../foundation/misc/EnumIO").EnumIO;
34
+ initialValue: Vector3;
35
+ min: number;
36
+ max: number;
37
+ isSystem: boolean;
38
+ updateInterval: import("../foundation/misc/EnumIO").EnumIO;
39
+ })[];
40
+ declare const _default: Readonly<{
41
+ setWebGLParameters: typeof setWebGLParameters;
42
+ startDepthMasking: typeof startDepthMasking;
43
+ endDepthMasking: typeof endDepthMasking;
44
+ updateVBOAndVAO: typeof updateVBOAndVAO;
45
+ isMeshSetup: typeof isMeshSetup;
46
+ isMaterialsSetup: typeof isMaterialsSetup;
47
+ isSkipDrawing: typeof isSkipDrawing;
48
+ setVRViewport: typeof setVRViewport;
49
+ getDisplayNumber: typeof getDisplayNumber;
50
+ isVrMainPass: typeof isVrMainPass;
51
+ getLocationOffsetOfProperty: typeof getLocationOffsetOfProperty;
52
+ getPointSpriteShaderSemanticsInfoArray: typeof getPointSpriteShaderSemanticsInfoArray;
53
+ }>;
54
+ export default _default;
@@ -1,51 +1,54 @@
1
- import WebGLStrategy from './WebGLStrategy';
2
- import MeshComponent from '../foundation/components/MeshComponent';
3
- import Primitive from '../foundation/geometry/Primitive';
4
- import WebGLContextWrapper from './WebGLContextWrapper';
5
- import Matrix44 from '../foundation/math/Matrix44';
6
- import Material from '../foundation/materials/core/Material';
7
- import Mesh from '../foundation/geometry/Mesh';
8
- import MeshRendererComponent from '../foundation/components/MeshRendererComponent';
9
- import RenderPass from '../foundation/renderer/RenderPass';
10
- import { WebGLResourceHandle, Index, Count } from '../types/CommonTypes';
11
- import Entity from '../foundation/core/Entity';
12
- import Matrix33 from '../foundation/math/Matrix33';
13
- import CubeTexture from '../foundation/textures/CubeTexture';
14
- export default class WebGLStrategyFastest implements WebGLStrategy {
15
- private static __instance;
16
- private __webglResourceRepository;
17
- private __dataTextureUid;
18
- private __dataUBOUid;
19
- private __lastShader;
20
- private __lastMaterial?;
21
- private static __shaderProgram;
22
- private __lastRenderPassTickCount;
23
- private __lightComponents?;
24
- private static __globalDataRepository;
25
- private static __currentComponentSIDs?;
26
- _totalSizeOfGPUShaderDataStorageExceptMorphData: number;
27
- private constructor();
28
- get vertexShaderMethodDefinitions_dataTexture(): string;
29
- setupShaderProgram(meshComponent: MeshComponent): void;
30
- setupDefaultShaderSemantics(material: Material, isPointSprite: boolean): void;
31
- private static __getVec4SizeOfShaderSemanticsInfo16BytesAligned;
32
- private static __getScalarSizeOfShaderSemanticsInfo4BytesAligned;
33
- private __getShaderProperty;
34
- $load(meshComponent: MeshComponent): void;
35
- $prerender(meshComponent: MeshComponent, meshRendererComponent: MeshRendererComponent, instanceIDBufferUid: WebGLResourceHandle): void;
36
- private __createAndUpdateDataTexture;
37
- common_$prerender(): void;
38
- private __isUboUse;
39
- private __createAndUpdateUBO;
40
- attachGPUData(primitive: Primitive): void;
41
- attachGPUDataInner(gl: WebGLRenderingContext, shaderProgram: WebGLProgram): void;
42
- attachShaderProgram(material: Material): void;
43
- attachVertexData(i: number, primitive: Primitive, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
44
- attachVertexDataInner(mesh: Mesh, primitive: Primitive, primitiveIndex: Index, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
45
- static getInstance(): WebGLStrategyFastest;
46
- private __setCurrentComponentSIDsForEachRenderPass;
47
- private __setCurrentComponentSIDsForEachEntity;
48
- private __setCurrentComponentSIDsForEachPrimitive;
49
- common_$render(meshComponentSids: Int32Array, meshComponents: MeshComponent[], viewMatrix: Matrix44, projectionMatrix: Matrix44, renderPass: RenderPass, renderPassTickCount: Count): boolean;
50
- $render(idx: Index, meshComponent: MeshComponent, worldMatrix: Matrix44, normalMatrix: Matrix33, entity: Entity, renderPass: RenderPass, renderPassTickCount: Count, diffuseCube?: CubeTexture, specularCube?: CubeTexture): void;
51
- }
1
+ import WebGLStrategy, { ShaderSources } from './WebGLStrategy';
2
+ import MeshComponent from '../foundation/components/MeshComponent';
3
+ import Primitive from '../foundation/geometry/Primitive';
4
+ import WebGLContextWrapper from './WebGLContextWrapper';
5
+ import Matrix44 from '../foundation/math/Matrix44';
6
+ import Material from '../foundation/materials/core/Material';
7
+ import Mesh from '../foundation/geometry/Mesh';
8
+ import MeshRendererComponent from '../foundation/components/MeshRendererComponent';
9
+ import RenderPass from '../foundation/renderer/RenderPass';
10
+ import { WebGLResourceHandle, Index, CGAPIResourceHandle, Count } from '../types/CommonTypes';
11
+ import Entity from '../foundation/core/Entity';
12
+ import Matrix33 from '../foundation/math/Matrix33';
13
+ import CubeTexture from '../foundation/textures/CubeTexture';
14
+ export default class WebGLStrategyFastest implements WebGLStrategy {
15
+ private static __instance;
16
+ private __webglResourceRepository;
17
+ private __dataTextureUid;
18
+ private __dataUBOUid;
19
+ private __lastShader;
20
+ private __lastMaterial?;
21
+ private static __shaderProgram;
22
+ private __lastRenderPassTickCount;
23
+ private __lightComponents?;
24
+ private static __globalDataRepository;
25
+ private static __currentComponentSIDs?;
26
+ _totalSizeOfGPUShaderDataStorageExceptMorphData: number;
27
+ private constructor();
28
+ get vertexShaderMethodDefinitions_dataTexture(): string;
29
+ setupShaderProgramForMeshComponent(meshComponent: MeshComponent): void;
30
+ /**
31
+ * setup shader program for the material in this WebGL strategy
32
+ * @param material
33
+ * @param isPointSprite
34
+ */
35
+ setupShaderForMaterial(material: Material, updatedShaderSources?: ShaderSources): CGAPIResourceHandle;
36
+ private __getShaderProperty;
37
+ $load(meshComponent: MeshComponent): void;
38
+ $prerender(meshComponent: MeshComponent, meshRendererComponent: MeshRendererComponent, instanceIDBufferUid: WebGLResourceHandle): void;
39
+ private __createAndUpdateDataTexture;
40
+ common_$prerender(): void;
41
+ private __isUboUse;
42
+ private __createAndUpdateUBO;
43
+ attachGPUData(primitive: Primitive): void;
44
+ attachGPUDataInner(gl: WebGLRenderingContext, shaderProgram: WebGLProgram): void;
45
+ attachShaderProgram(material: Material): void;
46
+ attachVertexData(i: number, primitive: Primitive, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
47
+ attachVertexDataInner(mesh: Mesh, primitive: Primitive, primitiveIndex: Index, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
48
+ static getInstance(): WebGLStrategyFastest;
49
+ private __setCurrentComponentSIDsForEachRenderPass;
50
+ private __setCurrentComponentSIDsForEachEntity;
51
+ private __setCurrentComponentSIDsForEachPrimitive;
52
+ common_$render(meshComponentSids: Int32Array, meshComponents: MeshComponent[], viewMatrix: Matrix44, projectionMatrix: Matrix44, renderPass: RenderPass, renderPassTickCount: Count): boolean;
53
+ $render(idx: Index, meshComponent: MeshComponent, worldMatrix: Matrix44, normalMatrix: Matrix33, entity: Entity, renderPass: RenderPass, renderPassTickCount: Count, diffuseCube?: CubeTexture, specularCube?: CubeTexture): void;
54
+ }
@@ -1,40 +1,44 @@
1
- import WebGLStrategy from './WebGLStrategy';
2
- import MeshComponent from '../foundation/components/MeshComponent';
3
- import WebGLContextWrapper from './WebGLContextWrapper';
4
- import Primitive from '../foundation/geometry/Primitive';
5
- import Matrix44 from '../foundation/math/Matrix44';
6
- import Matrix33 from '../foundation/math/Matrix33';
7
- import Entity from '../foundation/core/Entity';
8
- import { ShaderSemanticsInfo } from '../foundation/definitions/ShaderSemantics';
9
- import CubeTexture from '../foundation/textures/CubeTexture';
10
- import MeshRendererComponent from '../foundation/components/MeshRendererComponent';
11
- import Material from '../foundation/materials/core/Material';
12
- import RenderPass from '../foundation/renderer/RenderPass';
13
- import Mesh from '../foundation/geometry/Mesh';
14
- import { WebGLResourceHandle, Index, Count } from '../types/CommonTypes';
15
- export default class WebGLStrategyUniform implements WebGLStrategy {
16
- private static __instance;
17
- private __webglResourceRepository;
18
- private __dataTextureUid;
19
- private __lastShader;
20
- private __lastMaterial?;
21
- private __lastRenderPassTickCount;
22
- private __lightComponents?;
23
- private static __globalDataRepository;
24
- private static __vertexShaderMethodDefinitions_uniform;
25
- private constructor();
26
- setupShaderProgram(meshComponent: MeshComponent): void;
27
- setupDefaultShaderSemantics(material: Material, isPointSprite: boolean): void;
28
- static setupMaterial(material: Material, args?: ShaderSemanticsInfo[]): void;
29
- $load(meshComponent: MeshComponent): void;
30
- $prerender(meshComponent: MeshComponent, meshRendererComponent: MeshRendererComponent, instanceIDBufferUid: WebGLResourceHandle): void;
31
- common_$prerender(): void;
32
- attachGPUData(primitive: Primitive): void;
33
- attachShaderProgram(material: Material): void;
34
- attachVertexData(i: number, primitive: Primitive, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
35
- attachVertexDataInner(mesh: Mesh, primitive: Primitive, primitiveIndex: Index, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
36
- dettachVertexData(glw: WebGLContextWrapper): void;
37
- static getInstance(): WebGLStrategyUniform;
38
- common_$render(meshComponentSids: Int32Array, meshComponents: MeshComponent[], viewMatrix: Matrix44, projectionMatrix: Matrix44, renderPass: RenderPass): boolean;
39
- $render(idx: Index, meshComponent: MeshComponent, worldMatrix: Matrix44, normalMatrix: Matrix33, entity: Entity, renderPass: RenderPass, renderPassTickCount: Count, diffuseCube?: CubeTexture, specularCube?: CubeTexture): void;
40
- }
1
+ import WebGLStrategy, { ShaderSources } from './WebGLStrategy';
2
+ import MeshComponent from '../foundation/components/MeshComponent';
3
+ import WebGLContextWrapper from './WebGLContextWrapper';
4
+ import Primitive from '../foundation/geometry/Primitive';
5
+ import Matrix44 from '../foundation/math/Matrix44';
6
+ import Matrix33 from '../foundation/math/Matrix33';
7
+ import Entity from '../foundation/core/Entity';
8
+ import CubeTexture from '../foundation/textures/CubeTexture';
9
+ import MeshRendererComponent from '../foundation/components/MeshRendererComponent';
10
+ import Material from '../foundation/materials/core/Material';
11
+ import RenderPass from '../foundation/renderer/RenderPass';
12
+ import Mesh from '../foundation/geometry/Mesh';
13
+ import { CGAPIResourceHandle, WebGLResourceHandle, Index, Count } from '../types/CommonTypes';
14
+ export default class WebGLStrategyUniform implements WebGLStrategy {
15
+ private static __instance;
16
+ private __webglResourceRepository;
17
+ private __dataTextureUid;
18
+ private __lastShader;
19
+ private __lastMaterial?;
20
+ private __lastRenderPassTickCount;
21
+ private __lightComponents?;
22
+ private static __globalDataRepository;
23
+ private readonly componentMatrices;
24
+ private constructor();
25
+ private static __vertexShaderMethodDefinitions_uniform;
26
+ setupShaderProgram(meshComponent: MeshComponent): void;
27
+ /**
28
+ * setup shader program for the material in this WebGL strategy
29
+ * @param material
30
+ * @param isPointSprite
31
+ */
32
+ setupShaderForMaterial(material: Material, updatedShaderSources?: ShaderSources): CGAPIResourceHandle;
33
+ $load(meshComponent: MeshComponent): void;
34
+ $prerender(meshComponent: MeshComponent, meshRendererComponent: MeshRendererComponent, instanceIDBufferUid: WebGLResourceHandle): void;
35
+ common_$prerender(): void;
36
+ attachGPUData(primitive: Primitive): void;
37
+ attachShaderProgram(material: Material): void;
38
+ attachVertexData(i: number, primitive: Primitive, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
39
+ attachVertexDataInner(mesh: Mesh, primitive: Primitive, primitiveIndex: Index, glw: WebGLContextWrapper, instanceIDBufferUid: WebGLResourceHandle): void;
40
+ dettachVertexData(glw: WebGLContextWrapper): void;
41
+ static getInstance(): WebGLStrategyUniform;
42
+ common_$render(meshComponentSids: Int32Array, meshComponents: MeshComponent[], viewMatrix: Matrix44, projectionMatrix: Matrix44, renderPass: RenderPass): boolean;
43
+ $render(idx: Index, meshComponent: MeshComponent, worldMatrix: Matrix44, normalMatrix: Matrix33, entity: Entity, renderPass: RenderPass, renderPassTickCount: Count, diffuseCube?: CubeTexture, specularCube?: CubeTexture): void;
44
+ }
@@ -1,4 +1,4 @@
1
- import { ProcessApproachEnum } from '../foundation/definitions/ProcessApproach';
2
- import WebGLStrategy from './WebGLStrategy';
3
- declare const getRenderingStrategy: (processApproach: ProcessApproachEnum) => WebGLStrategy;
4
- export default getRenderingStrategy;
1
+ import { ProcessApproachEnum } from '../foundation/definitions/ProcessApproach';
2
+ import WebGLStrategy from './WebGLStrategy';
3
+ declare const getRenderingStrategy: (processApproach: ProcessApproachEnum) => WebGLStrategy;
4
+ export default getRenderingStrategy;
@@ -1,17 +1,17 @@
1
- import GLSLShader, { AttributeNames as attributeNames } from './shaders/GLSLShader';
2
- import WebGLContextWrapper from './WebGLContextWrapper';
3
- import WebGLResourceRepository, { VertexHandles as vertexHandles } from './WebGLResourceRepository';
4
- import webGLStrategy from './WebGLStrategy';
5
- import WebGLStrategyUniform from './WebGLStrategyUniform';
6
- declare const WebGL: Readonly<{
7
- getRenderingStrategy: (processApproach: import("../foundation/definitions/ProcessApproach").ProcessApproachClass) => webGLStrategy;
8
- GLSLShader: typeof GLSLShader;
9
- WebGLContextWrapper: typeof WebGLContextWrapper;
10
- WebGLResourceRepository: typeof WebGLResourceRepository;
11
- WebGLStrategyUniform: typeof WebGLStrategyUniform;
12
- }>;
13
- export default WebGL;
14
- export declare type RnWebGL = typeof WebGL;
15
- export declare type AttributeNames = attributeNames;
16
- export declare type VertexHandles = vertexHandles;
17
- export declare type WebGLStrategy = webGLStrategy;
1
+ import GLSLShader, { AttributeNames as attributeNames } from './shaders/GLSLShader';
2
+ import WebGLContextWrapper from './WebGLContextWrapper';
3
+ import WebGLResourceRepository, { VertexHandles as vertexHandles } from './WebGLResourceRepository';
4
+ import webGLStrategy from './WebGLStrategy';
5
+ import WebGLStrategyUniform from './WebGLStrategyUniform';
6
+ declare const WebGL: Readonly<{
7
+ getRenderingStrategy: (processApproach: import("../foundation/definitions/ProcessApproach").ProcessApproachClass) => webGLStrategy;
8
+ GLSLShader: typeof GLSLShader;
9
+ WebGLContextWrapper: typeof WebGLContextWrapper;
10
+ WebGLResourceRepository: typeof WebGLResourceRepository;
11
+ WebGLStrategyUniform: typeof WebGLStrategyUniform;
12
+ }>;
13
+ export default WebGL;
14
+ export declare type RnWebGL = typeof WebGL;
15
+ export declare type AttributeNames = attributeNames;
16
+ export declare type VertexHandles = vertexHandles;
17
+ export declare type WebGLStrategy = webGLStrategy;
@@ -1,48 +1,48 @@
1
- import { CompositionTypeEnum } from '../../foundation/definitions/CompositionType';
2
- import { ShaderAttributeOrSemanticsOrString } from '../../foundation/materials/core/AbstractMaterialNode';
3
- import { VertexAttributeEnum } from '../../foundation/definitions/VertexAttribute';
4
- import WebGLResourceRepository from '../WebGLResourceRepository';
5
- export declare type AttributeNames = Array<string>;
6
- export default abstract class GLSLShader {
7
- static __instance: GLSLShader;
8
- __webglResourceRepository?: WebGLResourceRepository;
9
- constructor();
10
- get glsl_rt0(): "layout(location = 0) out vec4 rt0;\n" | "vec4 rt0;\n";
11
- get glsl_fragColor(): "" | "gl_FragColor = rt0;\n";
12
- get glsl_vertex_in(): "in" | "attribute";
13
- get glsl_fragment_in(): "in" | "varying";
14
- get glsl_vertex_out(): "varying" | "out";
15
- get glsl_vertex_centroid_out(): "varying" | "centroid out";
16
- get glsl_texture(): "texture" | "texture2D";
17
- get glsl_textureCube(): "texture" | "textureCube";
18
- get glsl_textureProj(): "textureProj" | "texture2DProj";
19
- get glsl_versionText(): string;
20
- get glslPrecision(): string;
21
- static get glslMainBegin(): string;
22
- static get glslMainEnd(): string;
23
- getGlslVertexShaderProperies(str?: string): string;
24
- get glsl1ShaderTextureLodExt(): "" | "#extension GL_EXT_shader_texture_lod : require";
25
- get glsl1ShaderDerivativeExt(): "" | "#extension GL_OES_standard_derivatives : require";
26
- get toNormalMatrix(): string;
27
- get getSkinMatrix(): string;
28
- get packing(): string;
29
- get processGeometryWithSkinningOptionally(): string;
30
- get prerequisites(): string;
31
- get mainPrerequisites(): string;
32
- get pointSprite(): string;
33
- get pbrUniformDefinition(): string;
34
- get mipmapLevel(): string;
35
- get pbrMethodDefinition(): string;
36
- get hash(): string;
37
- get returnToOriginalColorSpace(): string;
38
- get triangleGrid(): string;
39
- get mipmap_level(): string;
40
- byExampleProceduralNoise(): string;
41
- get texture2DSeamless(): string;
42
- get simpleMVPPosition(): string;
43
- get perturbedNormal(): string;
44
- static getStringFromShaderAnyDataType(data: ShaderAttributeOrSemanticsOrString): string;
45
- abstract get attributeNames(): AttributeNames;
46
- abstract get attributeSemantics(): Array<VertexAttributeEnum>;
47
- abstract get attributeCompositions(): Array<CompositionTypeEnum>;
48
- }
1
+ import { CompositionTypeEnum } from '../../foundation/definitions/CompositionType';
2
+ import { ShaderAttributeOrSemanticsOrString } from '../../foundation/materials/core/AbstractMaterialNode';
3
+ import { VertexAttributeEnum } from '../../foundation/definitions/VertexAttribute';
4
+ import WebGLResourceRepository from '../WebGLResourceRepository';
5
+ export declare type AttributeNames = Array<string>;
6
+ export default abstract class GLSLShader {
7
+ static __instance: GLSLShader;
8
+ __webglResourceRepository?: WebGLResourceRepository;
9
+ constructor();
10
+ get glsl_rt0(): "layout(location = 0) out vec4 rt0;\n" | "vec4 rt0;\n";
11
+ get glsl_fragColor(): "" | "gl_FragColor = rt0;\n";
12
+ get glsl_vertex_in(): "in" | "attribute";
13
+ get glsl_fragment_in(): "in" | "varying";
14
+ get glsl_vertex_out(): "varying" | "out";
15
+ get glsl_vertex_centroid_out(): "varying" | "centroid out";
16
+ get glsl_texture(): "texture" | "texture2D";
17
+ get glsl_textureCube(): "texture" | "textureCube";
18
+ get glsl_textureProj(): "textureProj" | "texture2DProj";
19
+ get glsl_versionText(): string;
20
+ get glslPrecision(): string;
21
+ static get glslMainBegin(): string;
22
+ static get glslMainEnd(): string;
23
+ getGlslVertexShaderProperies(str?: string): string;
24
+ get glsl1ShaderTextureLodExt(): "" | "#extension GL_EXT_shader_texture_lod : require";
25
+ get glsl1ShaderDerivativeExt(): "" | "#extension GL_OES_standard_derivatives : require";
26
+ get toNormalMatrix(): string;
27
+ get getSkinMatrix(): string;
28
+ get packing(): string;
29
+ get processGeometryWithSkinningOptionally(): string;
30
+ get prerequisites(): string;
31
+ get mainPrerequisites(): string;
32
+ get pointSprite(): string;
33
+ get pbrUniformDefinition(): string;
34
+ get mipmapLevel(): string;
35
+ get pbrMethodDefinition(): string;
36
+ get hash(): string;
37
+ get returnToOriginalColorSpace(): string;
38
+ get triangleGrid(): string;
39
+ get mipmap_level(): string;
40
+ byExampleProceduralNoise(): string;
41
+ get texture2DSeamless(): string;
42
+ get simpleMVPPosition(): string;
43
+ get perturbedNormal(): string;
44
+ static getStringFromShaderAnyDataType(data: ShaderAttributeOrSemanticsOrString): string;
45
+ abstract get attributeNames(): AttributeNames;
46
+ abstract get attributeSemantics(): Array<VertexAttributeEnum>;
47
+ abstract get attributeCompositions(): Array<CompositionTypeEnum>;
48
+ }
@@ -1,16 +1,16 @@
1
- import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
- import GLSLShader from '../GLSLShader';
3
- import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
- import { ShaderSocket } from '../../../foundation/materials/core/AbstractMaterialNode';
5
- export declare type AttributeNames = Array<string>;
6
- export default class BlockBeginShader extends GLSLShader {
7
- private __functionName;
8
- private __valueInputs;
9
- private __valueOutputs;
10
- constructor(__functionName: string, __valueInputs: ShaderSocket[], __valueOutputs: ShaderSocket[]);
11
- get vertexShaderDefinitions(): string;
12
- get pixelShaderDefinitions(): string;
13
- get attributeNames(): AttributeNames;
14
- get attributeSemantics(): Array<VertexAttributeEnum>;
15
- get attributeCompositions(): Array<CompositionTypeEnum>;
16
- }
1
+ import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
+ import GLSLShader from '../GLSLShader';
3
+ import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
+ import { ShaderSocket } from '../../../foundation/materials/core/AbstractMaterialNode';
5
+ export declare type AttributeNames = Array<string>;
6
+ export default class BlockBeginShader extends GLSLShader {
7
+ private __functionName;
8
+ private __valueInputs;
9
+ private __valueOutputs;
10
+ constructor(__functionName: string, __valueInputs: ShaderSocket[], __valueOutputs: ShaderSocket[]);
11
+ get vertexShaderDefinitions(): string;
12
+ get pixelShaderDefinitions(): string;
13
+ get attributeNames(): AttributeNames;
14
+ get attributeSemantics(): Array<VertexAttributeEnum>;
15
+ get attributeCompositions(): Array<CompositionTypeEnum>;
16
+ }
@@ -1,16 +1,16 @@
1
- import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
- import GLSLShader from '../GLSLShader';
3
- import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
- import { ShaderSocket } from '../../../foundation/materials/core/AbstractMaterialNode';
5
- export declare type AttributeNames = Array<string>;
6
- export default class BlockEndShader extends GLSLShader {
7
- private __functionName;
8
- private __valueInputs;
9
- private __valueOutputs;
10
- constructor(__functionName: string, __valueInputs: ShaderSocket[], __valueOutputs: ShaderSocket[]);
11
- get vertexShaderDefinitions(): string;
12
- get pixelShaderDefinitions(): string;
13
- get attributeNames(): AttributeNames;
14
- get attributeSemantics(): Array<VertexAttributeEnum>;
15
- get attributeCompositions(): Array<CompositionTypeEnum>;
16
- }
1
+ import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
+ import GLSLShader from '../GLSLShader';
3
+ import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
+ import { ShaderSocket } from '../../../foundation/materials/core/AbstractMaterialNode';
5
+ export declare type AttributeNames = Array<string>;
6
+ export default class BlockEndShader extends GLSLShader {
7
+ private __functionName;
8
+ private __valueInputs;
9
+ private __valueOutputs;
10
+ constructor(__functionName: string, __valueInputs: ShaderSocket[], __valueOutputs: ShaderSocket[]);
11
+ get vertexShaderDefinitions(): string;
12
+ get pixelShaderDefinitions(): string;
13
+ get attributeNames(): AttributeNames;
14
+ get attributeSemantics(): Array<VertexAttributeEnum>;
15
+ get attributeCompositions(): Array<CompositionTypeEnum>;
16
+ }
@@ -1,17 +1,17 @@
1
- import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
- import GLSLShader from '../GLSLShader';
3
- import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
- export declare type AttributeNames = Array<string>;
5
- export default class ClassicShadingShader extends GLSLShader {
6
- static __instance: ClassicShadingShader;
7
- static readonly materialElement: import("../../../foundation/misc/EnumIO").EnumIO;
8
- private constructor();
9
- static getInstance(): ClassicShadingShader;
10
- get vertexShaderDefinitions(): string;
11
- get pixelShaderDefinitions(): string;
12
- vertexShaderBody: string;
13
- get pixelShaderBody(): string;
14
- get attributeNames(): AttributeNames;
15
- get attributeSemantics(): Array<VertexAttributeEnum>;
16
- get attributeCompositions(): Array<CompositionTypeEnum>;
17
- }
1
+ import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
+ import GLSLShader from '../GLSLShader';
3
+ import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
+ export declare type AttributeNames = Array<string>;
5
+ export default class ClassicShadingShader extends GLSLShader {
6
+ static __instance: ClassicShadingShader;
7
+ static readonly materialElement: import("../../../foundation/misc/EnumIO").EnumIO;
8
+ private constructor();
9
+ static getInstance(): ClassicShadingShader;
10
+ get vertexShaderDefinitions(): string;
11
+ get pixelShaderDefinitions(): string;
12
+ vertexShaderBody: string;
13
+ get pixelShaderBody(): string;
14
+ get attributeNames(): AttributeNames;
15
+ get attributeSemantics(): Array<VertexAttributeEnum>;
16
+ get attributeCompositions(): Array<CompositionTypeEnum>;
17
+ }
@@ -1,18 +1,18 @@
1
- import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
- import GLSLShader from '../GLSLShader';
3
- import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
- import { ComponentTypeEnum } from '../../../foundation/definitions/ComponentType';
5
- export declare type AttributeNames = Array<string>;
6
- export default class ConstantVariableShader extends GLSLShader {
7
- private __functionName;
8
- private __compositionType;
9
- private __componentType;
10
- private __constantValueStr;
11
- constructor(__functionName: string, __compositionType: CompositionTypeEnum, __componentType: ComponentTypeEnum);
12
- setConstantValue(value: any): void;
13
- get vertexShaderDefinitions(): string;
14
- get pixelShaderDefinitions(): string;
15
- get attributeNames(): AttributeNames;
16
- get attributeSemantics(): Array<VertexAttributeEnum>;
17
- get attributeCompositions(): Array<CompositionTypeEnum>;
18
- }
1
+ import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
+ import GLSLShader from '../GLSLShader';
3
+ import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
+ import { ComponentTypeEnum } from '../../../foundation/definitions/ComponentType';
5
+ export declare type AttributeNames = Array<string>;
6
+ export default class ConstantVariableShader extends GLSLShader {
7
+ private __functionName;
8
+ private __compositionType;
9
+ private __componentType;
10
+ private __constantValueStr;
11
+ constructor(__functionName: string, __compositionType: CompositionTypeEnum, __componentType: ComponentTypeEnum);
12
+ setConstantValue(value: any): void;
13
+ get vertexShaderDefinitions(): string;
14
+ get pixelShaderDefinitions(): string;
15
+ get attributeNames(): AttributeNames;
16
+ get attributeSemantics(): Array<VertexAttributeEnum>;
17
+ get attributeCompositions(): Array<CompositionTypeEnum>;
18
+ }
@@ -1,17 +1,17 @@
1
- import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
- import GLSLShader from '../GLSLShader';
3
- import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
- export declare type AttributeNames = Array<string>;
5
- export default class EndShader extends GLSLShader {
6
- static __instance: EndShader;
7
- static readonly materialElement: import("../../../foundation/misc/EnumIO").EnumIO;
8
- private constructor();
9
- static getInstance(): EndShader;
10
- get vertexShaderDefinitions(): string;
11
- get vertexShaderBody(): string;
12
- get pixelShaderDefinitions(): string;
13
- getPixelShaderBody(): string;
14
- get attributeNames(): AttributeNames;
15
- get attributeSemantics(): Array<VertexAttributeEnum>;
16
- get attributeCompositions(): Array<CompositionTypeEnum>;
17
- }
1
+ import { VertexAttributeEnum } from '../../../foundation/definitions/VertexAttribute';
2
+ import GLSLShader from '../GLSLShader';
3
+ import { CompositionTypeEnum } from '../../../foundation/definitions/CompositionType';
4
+ export declare type AttributeNames = Array<string>;
5
+ export default class EndShader extends GLSLShader {
6
+ static __instance: EndShader;
7
+ static readonly materialElement: import("../../../foundation/misc/EnumIO").EnumIO;
8
+ private constructor();
9
+ static getInstance(): EndShader;
10
+ get vertexShaderDefinitions(): string;
11
+ get vertexShaderBody(): string;
12
+ get pixelShaderDefinitions(): string;
13
+ getPixelShaderBody(): string;
14
+ get attributeNames(): AttributeNames;
15
+ get attributeSemantics(): Array<VertexAttributeEnum>;
16
+ get attributeCompositions(): Array<CompositionTypeEnum>;
17
+ }