@vived/component-abb-6700 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/.todo.md +13 -0
  2. package/README.md +122 -0
  3. package/dist/.gitkeep +0 -0
  4. package/dist/Adapters/aBB6700PMAdapter.d.ts +10 -0
  5. package/dist/Adapters/aBB6700PMAdapter.d.ts.map +1 -0
  6. package/dist/Controllers/createABB6700.d.ts +12 -0
  7. package/dist/Controllers/createABB6700.d.ts.map +1 -0
  8. package/dist/Controllers/getPose.d.ts +11 -0
  9. package/dist/Controllers/getPose.d.ts.map +1 -0
  10. package/dist/Controllers/setJointAngle.d.ts +12 -0
  11. package/dist/Controllers/setJointAngle.d.ts.map +1 -0
  12. package/dist/Controllers/setPose.d.ts +11 -0
  13. package/dist/Controllers/setPose.d.ts.map +1 -0
  14. package/dist/Entities/ABB6700Entity.d.ts +35 -0
  15. package/dist/Entities/ABB6700Entity.d.ts.map +1 -0
  16. package/dist/Entities/ABB6700Repo.d.ts +32 -0
  17. package/dist/Entities/ABB6700Repo.d.ts.map +1 -0
  18. package/dist/Factory/ABB6700FeatureFactory.d.ts +26 -0
  19. package/dist/Factory/ABB6700FeatureFactory.d.ts.map +1 -0
  20. package/dist/Mocks/MockABB6700PM.d.ts +11 -0
  21. package/dist/Mocks/MockABB6700PM.d.ts.map +1 -0
  22. package/dist/Mocks/MockSetJointAngleUC.d.ts +7 -0
  23. package/dist/Mocks/MockSetJointAngleUC.d.ts.map +1 -0
  24. package/dist/Mocks/MockSetPoseUC.d.ts +7 -0
  25. package/dist/Mocks/MockSetPoseUC.d.ts.map +1 -0
  26. package/dist/PMs/ABB6700PM.d.ts +32 -0
  27. package/dist/PMs/ABB6700PM.d.ts.map +1 -0
  28. package/dist/UCs/CalcStabilizerUC.d.ts +7 -0
  29. package/dist/UCs/CalcStabilizerUC.d.ts.map +1 -0
  30. package/dist/UCs/SetJointAngleUC.d.ts +15 -0
  31. package/dist/UCs/SetJointAngleUC.d.ts.map +1 -0
  32. package/dist/UCs/SetPoseUC.d.ts +22 -0
  33. package/dist/UCs/SetPoseUC.d.ts.map +1 -0
  34. package/dist/Views/ABB6700BabylonView.d.ts +27 -0
  35. package/dist/Views/ABB6700BabylonView.d.ts.map +1 -0
  36. package/dist/abb_6700.glb +0 -0
  37. package/dist/abstractAudioBus-CyBWsmuN.js +14 -0
  38. package/dist/animationGroup-BhNThqQe.js +1454 -0
  39. package/dist/basisTextureLoader-BT391BsV.js +310 -0
  40. package/dist/brdfTextureTools-DUyKBAXf.js +79 -0
  41. package/dist/bumpFragment-Dd-ojPA1.js +134 -0
  42. package/dist/bumpFragment-KE1_PuMl.js +287 -0
  43. package/dist/bumpVertex-BcdvVFVx.js +8 -0
  44. package/dist/bumpVertexDeclaration-B5Uvs-RS.js +8 -0
  45. package/dist/bumpVertexDeclaration-ixSg-yGI.js +8 -0
  46. package/dist/clipPlaneFragment-DJwQynjA.js +136 -0
  47. package/dist/clipPlaneVertex-D4Wk50XG.js +376 -0
  48. package/dist/clipPlaneVertex-eQ147Tn2.js +350 -0
  49. package/dist/component.config.d.ts +17 -0
  50. package/dist/component.config.d.ts.map +1 -0
  51. package/dist/ddsTextureLoader-DeoF3iGO.js +331 -0
  52. package/dist/default.fragment-DKnTR9nY.js +548 -0
  53. package/dist/default.fragment-rIGWrUS5.js +486 -0
  54. package/dist/default.vertex-Bt5y1VyA.js +212 -0
  55. package/dist/default.vertex-Dext1liJ.js +224 -0
  56. package/dist/defaultUboDeclaration-BwslQZX8.js +11 -0
  57. package/dist/defaultUboDeclaration-DSXACgip.js +9 -0
  58. package/dist/easing-BAt0SO-B.js +163 -0
  59. package/dist/envTextureLoader-CBiW_Q-U.js +40 -0
  60. package/dist/exrTextureLoader-5SC6PKIA.js +740 -0
  61. package/dist/flowGraphApplyForceBlock-6e8-wcaw.js +32 -0
  62. package/dist/flowGraphApplyImpulseBlock-B27EZQow.js +32 -0
  63. package/dist/flowGraphArrayIndexBlock-DIUn5e4i.js +31 -0
  64. package/dist/flowGraphBezierCurveEasingBlock-BJmiHk40.js +25 -0
  65. package/dist/flowGraphBinaryOperationBlock-Bj7TANCc.js +25 -0
  66. package/dist/flowGraphBranchBlock-7CRvIKWc.js +19 -0
  67. package/dist/flowGraphCachedOperationBlock-CP1ZiuIB.js +26 -0
  68. package/dist/flowGraphCancelDelayBlock-DqtgzBGm.js +20 -0
  69. package/dist/flowGraphCodeExecutionBlock-CaYXCGqo.js +23 -0
  70. package/dist/flowGraphConditionalDataBlock-DJ7evX8_.js +28 -0
  71. package/dist/flowGraphConsoleLogBlock-cMkpqLzO.js +68 -0
  72. package/dist/flowGraphConstantBlock-JWybwT0A.js +28 -0
  73. package/dist/flowGraphContextBlock-CFDXHcbn.js +19 -0
  74. package/dist/flowGraphCounterBlock-B0uPkgw9.js +24 -0
  75. package/dist/flowGraphDataSwitchBlock-B0GSifvJ.js +27 -0
  76. package/dist/flowGraphDebounceBlock-CSw8zKym.js +24 -0
  77. package/dist/flowGraphDebugBlock-DiSR6Ahn.js +65 -0
  78. package/dist/flowGraphDoNBlock-C-48oQ2H.js +24 -0
  79. package/dist/flowGraphEasingBlock-DKUaE7Rp.js +50 -0
  80. package/dist/flowGraphFlipFlopBlock-DX5BGhMV.js +20 -0
  81. package/dist/flowGraphForLoopBlock-Di-Qwg23.js +27 -0
  82. package/dist/flowGraphFunctionReferenceBlock-D8X5TFsO.js +20 -0
  83. package/dist/flowGraphGLTFDataProvider-C4j7nPQv.js +16 -0
  84. package/dist/flowGraphGetAngularVelocityBlock-Cq-yTQ4D.js +31 -0
  85. package/dist/flowGraphGetAssetBlock-B36eioor.js +21 -0
  86. package/dist/flowGraphGetLinearVelocityBlock-MdrV0eUD.js +31 -0
  87. package/dist/flowGraphGetPhysicsMassPropertiesBlock-wXDZP1wM.js +30 -0
  88. package/dist/flowGraphGetPropertyBlock-eP0badwf.js +46 -0
  89. package/dist/flowGraphGetSoundVolumeBlock-D3gXGHXa.js +29 -0
  90. package/dist/flowGraphGetVariableBlock-C7-qZAec.js +31 -0
  91. package/dist/flowGraphIndexOfBlock-CC5l9n9P.js +31 -0
  92. package/dist/flowGraphInterpolationBlock-B6922jzt.js +50 -0
  93. package/dist/flowGraphIsKeyPressedBlock-X_iuiUOX.js +31 -0
  94. package/dist/flowGraphIsSoundPlayingBlock-DONQX8N8.js +29 -0
  95. package/dist/flowGraphJsonPointerParserBlock-DBH_gN8I.js +95 -0
  96. package/dist/flowGraphKeyDownEventBlock-D5T1Uyfv.js +26 -0
  97. package/dist/flowGraphKeyUpEventBlock-BPY_Kgkm.js +21 -0
  98. package/dist/flowGraphKeyboardEventBlock-C49fx3TC.js +20 -0
  99. package/dist/flowGraphMathBlocks-CkvrN3VJ.js +864 -0
  100. package/dist/flowGraphMathCombineExtractBlocks-QSjGlnoz.js +248 -0
  101. package/dist/flowGraphMatrixMathBlocks-B3D7Cz9p.js +117 -0
  102. package/dist/flowGraphMeshPickEventBlock-BBTz-taa.js +35 -0
  103. package/dist/flowGraphMultiGateBlock-BhY1y5BG.js +50 -0
  104. package/dist/flowGraphPauseAnimationBlock-CHZZXMbg.js +19 -0
  105. package/dist/flowGraphPauseSoundBlock-B7hMmJ0c.js +31 -0
  106. package/dist/flowGraphPhysicsCollisionEventBlock-CxoPpT-q.js +56 -0
  107. package/dist/flowGraphPlayAnimationBlock-DVAvIFux.js +99 -0
  108. package/dist/flowGraphPlaySoundBlock-DjHGrqbC.js +32 -0
  109. package/dist/flowGraphPointerDownEventBlock-qI-H0JST.js +31 -0
  110. package/dist/flowGraphPointerMoveEventBlock-DAi4VUyy.js +31 -0
  111. package/dist/flowGraphPointerOutEventBlock-CFtj68aC.js +21 -0
  112. package/dist/flowGraphPointerOverEventBlock-VxdHhFuu.js +23 -0
  113. package/dist/flowGraphPointerUpEventBlock-DRR1f07q.js +31 -0
  114. package/dist/flowGraphReceiveCustomEventBlock-B3bwdB66.js +52 -0
  115. package/dist/flowGraphSceneReadyEventBlock-Dy6lDT3j.js +23 -0
  116. package/dist/flowGraphSceneTickEventBlock-Bl9BF_Xw.js +32 -0
  117. package/dist/flowGraphSendCustomEventBlock-BAR4PGFq.js +35 -0
  118. package/dist/flowGraphSequenceBlock-veqU32ZZ.js +32 -0
  119. package/dist/flowGraphSetAngularVelocityBlock-Dj9b-zu6.js +31 -0
  120. package/dist/flowGraphSetDelayBlock-CMjudtvk.js +131 -0
  121. package/dist/flowGraphSetLinearVelocityBlock-DVDhhJBd.js +31 -0
  122. package/dist/flowGraphSetPhysicsMotionTypeBlock-CL3cxNCO.js +36 -0
  123. package/dist/flowGraphSetPropertyBlock-D3sWL3Ss.js +47 -0
  124. package/dist/flowGraphSetSoundVolumeBlock-CxVk45yR.js +32 -0
  125. package/dist/flowGraphSetVariableBlock-D1oJiwLj.js +47 -0
  126. package/dist/flowGraphSoundEndedEventBlock-CubEwii0.js +47 -0
  127. package/dist/flowGraphStopAnimationBlock-B9inwIQx.js +48 -0
  128. package/dist/flowGraphStopSoundBlock-BijIX2jC.js +31 -0
  129. package/dist/flowGraphSwitchBlock-BMhPb4OX.js +54 -0
  130. package/dist/flowGraphThrottleBlock-C7vrnkb1.js +37 -0
  131. package/dist/flowGraphTransformCoordinatesSystemBlock-DoISqaUG.js +29 -0
  132. package/dist/flowGraphTypeToTypeBlocks-CSML6QWx.js +57 -0
  133. package/dist/flowGraphUnaryOperationBlock-B0Shf-lJ.js +24 -0
  134. package/dist/flowGraphVectorMathBlocks-DoTRR_E0.js +178 -0
  135. package/dist/flowGraphWaitAllBlock-BvmDMc24.js +54 -0
  136. package/dist/flowGraphWhileLoopBlock-BaIq4-K2.js +27 -0
  137. package/dist/geometry.fragment-Bsis3UG2.js +275 -0
  138. package/dist/geometry.vertex-DskQ5b8j.js +222 -0
  139. package/dist/harmonicsFunctions-CtNrRfir.js +193 -0
  140. package/dist/harmonicsFunctions-PEz6APC7.js +18 -0
  141. package/dist/hdrTextureLoader-D9rYxJ9q.js +112 -0
  142. package/dist/helperFunctions-Bt7Zfkrp.js +89 -0
  143. package/dist/helperFunctions-CPmRxd37.js +121 -0
  144. package/dist/iesTextureLoader-BGUFjVhI.js +93 -0
  145. package/dist/index-CS3Icp_r.js +67657 -0
  146. package/dist/index.d.ts +23 -0
  147. package/dist/index.d.ts.map +1 -0
  148. package/dist/index.js +27 -0
  149. package/dist/ktxTextureLoader-cUaGg9_L.js +459 -0
  150. package/dist/lightFragment-BRDibDKG.js +404 -0
  151. package/dist/lightFragment-DCqtGMp_.js +402 -0
  152. package/dist/logDepthDeclaration-Bwm-3KyB.js +16 -0
  153. package/dist/logDepthDeclaration-gUfeSnXX.js +20 -0
  154. package/dist/logDepthVertex-CKeuJ6ae.js +213 -0
  155. package/dist/logDepthVertex-CXkmZels.js +459 -0
  156. package/dist/mesh.vertexData.functions-Bc9lJlrU.js +74 -0
  157. package/dist/oitFragment-B8zuQigp.js +792 -0
  158. package/dist/oitFragment-DH3h3T6x.js +657 -0
  159. package/dist/openpbr.fragment-BglYS6LA.js +1405 -0
  160. package/dist/openpbr.fragment-DrOTZs4m.js +1553 -0
  161. package/dist/openpbr.vertex-B-PaLFOR.js +384 -0
  162. package/dist/openpbr.vertex-DMdFRTnX.js +268 -0
  163. package/dist/openpbrMaterial-HCU0aOca.js +2880 -0
  164. package/dist/openpbrMaterialLoadingAdapter-CWRAa-7S.js +1122 -0
  165. package/dist/openpbrTransmissionLayerData-CfDVObj5.js +352 -0
  166. package/dist/openpbrUboDeclaration-CA2pvSbt.js +9 -0
  167. package/dist/openpbrUboDeclaration-xU8VOaib.js +10 -0
  168. package/dist/pass.fragment-1mMP54bb.js +10 -0
  169. package/dist/pass.fragment-DzaUp_jk.js +10 -0
  170. package/dist/passCube.fragment-CQaXS7g3.js +29 -0
  171. package/dist/passCube.fragment-QJGPwAXI.js +29 -0
  172. package/dist/pbr.fragment-BnaAAGxb.js +2775 -0
  173. package/dist/pbr.fragment-CYZk_EGU.js +2619 -0
  174. package/dist/pbr.vertex-CyvdCw91.js +372 -0
  175. package/dist/pbr.vertex-DJMAkDxs.js +270 -0
  176. package/dist/pbrBRDFFunctions-EugoWm6O.js +175 -0
  177. package/dist/pbrDebug-Bk3sPoEG.js +719 -0
  178. package/dist/pbrDebug-Cdalzb1I.js +614 -0
  179. package/dist/pbrIBLFunctions-B0bVAXCF.js +47 -0
  180. package/dist/pbrIBLFunctions-C06z-ouZ.js +51 -0
  181. package/dist/pbrMaterial-C4FCKBZQ.js +1660 -0
  182. package/dist/pbrMaterialLoadingAdapter-BGHlS_ZN.js +1032 -0
  183. package/dist/pbrUboDeclaration-1lN5_-Bw.js +9 -0
  184. package/dist/pbrUboDeclaration-BJOUUOZ2.js +10 -0
  185. package/dist/procedural.vertex-CFPKczKj.js +14 -0
  186. package/dist/procedural.vertex-DUW7bYZt.js +13 -0
  187. package/dist/rgbdDecode.fragment-CEGgE4tL.js +8 -0
  188. package/dist/rgbdDecode.fragment-FT0wkgah.js +8 -0
  189. package/dist/rgbdEncode.fragment-CLnJJf6E.js +8 -0
  190. package/dist/rgbdEncode.fragment-CaAcMsY9.js +8 -0
  191. package/dist/sceneUboDeclaration-B6oxsfcj.js +8 -0
  192. package/dist/sceneUboDeclaration-JByfVKik.js +13 -0
  193. package/dist/setupABB6700InstanceFactory.d.ts +7 -0
  194. package/dist/setupABB6700InstanceFactory.d.ts.map +1 -0
  195. package/dist/studio.env +0 -0
  196. package/dist/textureProcessor.fragment-BYPw6SMQ.js +152 -0
  197. package/dist/textureProcessor.fragment-Ciw9-F3w.js +157 -0
  198. package/dist/textureTools-Cct_bGgp.js +40 -0
  199. package/dist/tgaTextureLoader-BJOIdnFr.js +198 -0
  200. package/dist/thinEngine-Bt9FW4dD.js +2425 -0
  201. package/dist/webAudioBus-BUzRHSxr.js +88 -0
  202. package/dist/webAudioMainBus-Dds1TgJG.js +49 -0
  203. package/package.json +49 -0
@@ -0,0 +1,212 @@
1
+ import { b0 as e } from "./index-CS3Icp_r.js";
2
+ import "./logDepthVertex-CKeuJ6ae.js";
3
+ import "./defaultUboDeclaration-BwslQZX8.js";
4
+ import "./helperFunctions-CPmRxd37.js";
5
+ import "./clipPlaneVertex-eQ147Tn2.js";
6
+ import "./logDepthDeclaration-gUfeSnXX.js";
7
+ import "./bumpVertexDeclaration-B5Uvs-RS.js";
8
+ const n = "defaultVertexDeclaration", o = `uniform mat4 viewProjection;
9
+ #ifdef MULTIVIEW
10
+ mat4 viewProjectionR;
11
+ #endif
12
+ uniform mat4 view;
13
+ #ifdef DIFFUSE
14
+ uniform mat4 diffuseMatrix;uniform vec2 vDiffuseInfos;
15
+ #endif
16
+ #ifdef AMBIENT
17
+ uniform mat4 ambientMatrix;uniform vec2 vAmbientInfos;
18
+ #endif
19
+ #ifdef OPACITY
20
+ uniform mat4 opacityMatrix;uniform vec2 vOpacityInfos;
21
+ #endif
22
+ #ifdef EMISSIVE
23
+ uniform vec2 vEmissiveInfos;uniform mat4 emissiveMatrix;
24
+ #endif
25
+ #ifdef LIGHTMAP
26
+ uniform vec2 vLightmapInfos;uniform mat4 lightmapMatrix;
27
+ #endif
28
+ #if defined(SPECULAR) && defined(SPECULARTERM)
29
+ uniform vec2 vSpecularInfos;uniform mat4 specularMatrix;
30
+ #endif
31
+ #ifdef BUMP
32
+ uniform vec3 vBumpInfos;uniform mat4 bumpMatrix;
33
+ #endif
34
+ #ifdef REFLECTION
35
+ uniform mat4 reflectionMatrix;
36
+ #endif
37
+ #ifdef POINTSIZE
38
+ uniform float pointSize;
39
+ #endif
40
+ #ifdef DETAIL
41
+ uniform vec4 vDetailInfos;uniform mat4 detailMatrix;
42
+ #endif
43
+ uniform vec4 cameraInfo;uniform vec4 vTextureRepetitionHexTilingParams;
44
+ #include<decalVertexDeclaration>
45
+ #define ADDITIONAL_VERTEX_DECLARATION
46
+ `;
47
+ e.IncludesShadersStore[n] || (e.IncludesShadersStore[n] = o);
48
+ const t = "pointCloudVertex", a = `#if defined(POINTSIZE) && !defined(WEBGPU)
49
+ gl_PointSize=pointSize;
50
+ #endif
51
+ `;
52
+ e.IncludesShadersStore[t] || (e.IncludesShadersStore[t] = a);
53
+ const i = "defaultVertexShader", d = `#define CUSTOM_VERTEX_EXTENSION
54
+ #include<__decl__defaultVertex>
55
+ #define CUSTOM_VERTEX_BEGIN
56
+ attribute vec3 position;
57
+ #ifdef NORMAL
58
+ attribute vec3 normal;
59
+ #endif
60
+ #ifdef TANGENT
61
+ attribute vec4 tangent;
62
+ #endif
63
+ #ifdef UV1
64
+ attribute vec2 uv;
65
+ #endif
66
+ #include<uvAttributeDeclaration>[2..7]
67
+ #ifdef VERTEXCOLOR
68
+ attribute vec4 color;
69
+ #endif
70
+ #include<helperFunctions>
71
+ #include<bonesDeclaration>
72
+ #include<bakedVertexAnimationDeclaration>
73
+ #include<instancesDeclaration>
74
+ #include<prePassVertexDeclaration>
75
+ #include<mainUVVaryingDeclaration>[1..7]
76
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse)
77
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail)
78
+ #include<samplerVertexDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient)
79
+ #include<samplerVertexDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity)
80
+ #include<samplerVertexDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive)
81
+ #include<samplerVertexDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap)
82
+ #if defined(SPECULARTERM)
83
+ #include<samplerVertexDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular)
84
+ #endif
85
+ #include<samplerVertexDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump)
86
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal)
87
+ varying vec3 vPositionW;
88
+ #ifdef NORMAL
89
+ varying vec3 vNormalW;
90
+ #endif
91
+ #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
92
+ varying vec4 vColor;
93
+ #endif
94
+ #include<bumpVertexDeclaration>
95
+ #include<clipPlaneVertexDeclaration>
96
+ #include<fogVertexDeclaration>
97
+ #include<__decl__lightVxFragment>[0..maxSimultaneousLights]
98
+ #include<morphTargetsVertexGlobalDeclaration>
99
+ #include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
100
+ #ifdef REFLECTIONMAP_SKYBOX
101
+ varying vec3 vPositionUVW;
102
+ #endif
103
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
104
+ varying vec3 vDirectionW;
105
+ #endif
106
+ #if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
107
+ varying float vViewDepth;
108
+ #endif
109
+ #include<logDepthDeclaration>
110
+ #define CUSTOM_VERTEX_DEFINITIONS
111
+ void main(void) {
112
+ #define CUSTOM_VERTEX_MAIN_BEGIN
113
+ vec3 positionUpdated=position;
114
+ #ifdef NORMAL
115
+ vec3 normalUpdated=normal;
116
+ #endif
117
+ #ifdef TANGENT
118
+ vec4 tangentUpdated=tangent;
119
+ #endif
120
+ #ifdef UV1
121
+ vec2 uvUpdated=uv;
122
+ #endif
123
+ #ifdef UV2
124
+ vec2 uv2Updated=uv2;
125
+ #endif
126
+ #ifdef VERTEXCOLOR
127
+ vec4 colorUpdated=color;
128
+ #endif
129
+ #include<morphTargetsVertexGlobal>
130
+ #include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
131
+ #ifdef REFLECTIONMAP_SKYBOX
132
+ vPositionUVW=positionUpdated;
133
+ #endif
134
+ #define CUSTOM_VERTEX_UPDATE_POSITION
135
+ #define CUSTOM_VERTEX_UPDATE_NORMAL
136
+ #include<instancesVertex>
137
+ #if defined(PREPASS) && ((defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)) && !defined(BONES_VELOCITY_ENABLED)
138
+ vCurrentPosition=viewProjection*finalWorld*vec4(positionUpdated,1.0);vPreviousPosition=previousViewProjection*finalPreviousWorld*vec4(positionUpdated,1.0);
139
+ #endif
140
+ #include<bonesVertex>
141
+ #include<bakedVertexAnimation>
142
+ vec4 worldPos=finalWorld*vec4(positionUpdated,1.0);
143
+ #ifdef NORMAL
144
+ mat3 normalWorld=mat3(finalWorld);
145
+ #if defined(INSTANCES) && defined(THIN_INSTANCES)
146
+ vNormalW=normalUpdated/vec3(dot(normalWorld[0],normalWorld[0]),dot(normalWorld[1],normalWorld[1]),dot(normalWorld[2],normalWorld[2]));vNormalW=normalize(normalWorld*vNormalW);
147
+ #else
148
+ #ifdef NONUNIFORMSCALING
149
+ normalWorld=transposeMat3(inverseMat3(normalWorld));
150
+ #endif
151
+ vNormalW=normalize(normalWorld*normalUpdated);
152
+ #endif
153
+ #endif
154
+ #define CUSTOM_VERTEX_UPDATE_WORLDPOS
155
+ #ifdef MULTIVIEW
156
+ if (gl_ViewID_OVR==0u) {gl_Position=viewProjection*worldPos;} else {gl_Position=viewProjectionR*worldPos;}
157
+ #else
158
+ gl_Position=viewProjection*worldPos;
159
+ #endif
160
+ vPositionW=vec3(worldPos);
161
+ #ifdef PREPASS
162
+ #include<prePassVertex>
163
+ #endif
164
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
165
+ vDirectionW=normalize(vec3(finalWorld*vec4(positionUpdated,0.0)));
166
+ #endif
167
+ #if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
168
+ #ifdef RIGHT_HANDED
169
+ vViewDepth=-(view*worldPos).z;
170
+ #else
171
+ vViewDepth=(view*worldPos).z;
172
+ #endif
173
+ #endif
174
+ #ifndef UV1
175
+ vec2 uvUpdated=vec2(0.,0.);
176
+ #endif
177
+ #ifndef UV2
178
+ vec2 uv2Updated=vec2(0.,0.);
179
+ #endif
180
+ #ifdef MAINUV1
181
+ vMainUV1=uvUpdated;
182
+ #endif
183
+ #ifdef MAINUV2
184
+ vMainUV2=uv2Updated;
185
+ #endif
186
+ #include<uvVariableDeclaration>[3..7]
187
+ #include<samplerVertexImplementation>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_MATRIXNAME_,diffuse,_INFONAME_,DiffuseInfos.x)
188
+ #include<samplerVertexImplementation>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail,_MATRIXNAME_,detail,_INFONAME_,DetailInfos.x)
189
+ #include<samplerVertexImplementation>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_MATRIXNAME_,ambient,_INFONAME_,AmbientInfos.x)
190
+ #include<samplerVertexImplementation>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_MATRIXNAME_,opacity,_INFONAME_,OpacityInfos.x)
191
+ #include<samplerVertexImplementation>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_MATRIXNAME_,emissive,_INFONAME_,EmissiveInfos.x)
192
+ #include<samplerVertexImplementation>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_MATRIXNAME_,lightmap,_INFONAME_,LightmapInfos.x)
193
+ #if defined(SPECULARTERM)
194
+ #include<samplerVertexImplementation>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_MATRIXNAME_,specular,_INFONAME_,SpecularInfos.x)
195
+ #endif
196
+ #include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)
197
+ #include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)
198
+ #include<bumpVertex>
199
+ #include<clipPlaneVertex>
200
+ #include<fogVertex>
201
+ #include<shadowsVertex>[0..maxSimultaneousLights]
202
+ #include<vertexColorMixing>
203
+ #include<pointCloudVertex>
204
+ #include<logDepthVertex>
205
+ #define CUSTOM_VERTEX_MAIN_END
206
+ }
207
+ `;
208
+ e.ShadersStore[i] || (e.ShadersStore[i] = d);
209
+ const c = { name: i, shader: d };
210
+ export {
211
+ c as defaultVertexShader
212
+ };
@@ -0,0 +1,224 @@
1
+ import { b0 as e } from "./index-CS3Icp_r.js";
2
+ import "./defaultUboDeclaration-DSXACgip.js";
3
+ import "./logDepthVertex-CXkmZels.js";
4
+ import "./helperFunctions-Bt7Zfkrp.js";
5
+ import "./clipPlaneVertex-D4Wk50XG.js";
6
+ import "./logDepthDeclaration-Bwm-3KyB.js";
7
+ import "./bumpVertexDeclaration-ixSg-yGI.js";
8
+ import "./bumpVertex-BcdvVFVx.js";
9
+ const t = "lightVxFragmentDeclaration", r = `#ifdef LIGHT{X}
10
+ uniform vLightData{X}: vec4f;uniform vLightDiffuse{X}: vec4f;
11
+ #ifdef SPECULARTERM
12
+ uniform vLightSpecular{X}: vec4f;
13
+ #else
14
+ var vLightSpecular{X}: vec4f= vec4f(0.);
15
+ #endif
16
+ #ifdef SHADOW{X}
17
+ #ifdef SHADOWCSM{X}
18
+ uniform lightMatrix{X}: mat4x4f[SHADOWCSMNUM_CASCADES{X}];varying var vPositionFromLight{X}: vec4f[SHADOWCSMNUM_CASCADES{X}];varying var vDepthMetric{X}: f32[SHADOWCSMNUM_CASCADES{X}];varying var vPositionFromCamera{X}: vec4f;
19
+ #elif defined(SHADOWCUBE{X})
20
+ #else
21
+ varying var vPositionFromLight{X}: vec4f;varying var vDepthMetric{X}: f32;uniform lightMatrix{X}: mat4x4f;
22
+ #endif
23
+ uniform shadowsInfo{X}: vec4f;uniform depthValues{X}: vec2f;
24
+ #endif
25
+ #ifdef SPOTLIGHT{X}
26
+ uniform vLightDirection{X}: vec4f;uniform vLightFalloff{X}: vec4f;
27
+ #elif defined(POINTLIGHT{X})
28
+ uniform vLightFalloff{X}: vec4f;
29
+ #elif defined(HEMILIGHT{X})
30
+ uniform vLightGround{X}: vec3f;
31
+ #endif
32
+ #if defined(AREALIGHT{X}) && defined(AREALIGHTUSED) && defined(AREALIGHTSUPPORTED)
33
+ uniform vLightWidth{X}: vec4f;uniform vLightHeight{X}: vec4f;
34
+ #endif
35
+ #endif
36
+ `;
37
+ e.IncludesShadersStoreWGSL[t] || (e.IncludesShadersStoreWGSL[t] = r);
38
+ const i = "defaultVertexShader", n = `#include<defaultUboDeclaration>
39
+ #define CUSTOM_VERTEX_BEGIN
40
+ #ifndef USE_VERTEX_PULLING
41
+ attribute position: vec3f;
42
+ #ifdef NORMAL
43
+ attribute normal: vec3f;
44
+ #endif
45
+ #ifdef TANGENT
46
+ attribute tangent: vec4f;
47
+ #endif
48
+ #ifdef UV1
49
+ attribute uv: vec2f;
50
+ #endif
51
+ #include<uvAttributeDeclaration>[2..7]
52
+ #ifdef VERTEXCOLOR
53
+ attribute color: vec4f;
54
+ #endif
55
+ #endif
56
+ #include<helperFunctions>
57
+ #include<bonesDeclaration>
58
+ #include<bakedVertexAnimationDeclaration>
59
+ #include<instancesDeclaration>
60
+ #include<prePassVertexDeclaration>
61
+ #include<mainUVVaryingDeclaration>[1..7]
62
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse)
63
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail)
64
+ #include<samplerVertexDeclaration>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient)
65
+ #include<samplerVertexDeclaration>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity)
66
+ #include<samplerVertexDeclaration>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive)
67
+ #include<samplerVertexDeclaration>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap)
68
+ #if defined(SPECULARTERM)
69
+ #include<samplerVertexDeclaration>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular)
70
+ #endif
71
+ #include<samplerVertexDeclaration>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump)
72
+ #include<samplerVertexDeclaration>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal)
73
+ varying vPositionW: vec3f;
74
+ #ifdef NORMAL
75
+ varying vNormalW: vec3f;
76
+ #endif
77
+ #if defined(VERTEXCOLOR) || defined(INSTANCESCOLOR) && defined(INSTANCES)
78
+ varying vColor: vec4f;
79
+ #endif
80
+ #include<bumpVertexDeclaration>
81
+ #include<clipPlaneVertexDeclaration>
82
+ #include<fogVertexDeclaration>
83
+ #include<__decl__lightVxFragment>[0..maxSimultaneousLights]
84
+ #include<morphTargetsVertexGlobalDeclaration>
85
+ #include<morphTargetsVertexDeclaration>[0..maxSimultaneousMorphTargets]
86
+ #ifdef REFLECTIONMAP_SKYBOX
87
+ varying vPositionUVW: vec3f;
88
+ #endif
89
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
90
+ varying vDirectionW: vec3f;
91
+ #endif
92
+ #if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
93
+ varying vViewDepth: f32;
94
+ #endif
95
+ #include<logDepthDeclaration>
96
+ #include<vertexPullingDeclaration>
97
+ #define CUSTOM_VERTEX_DEFINITIONS
98
+ @vertex
99
+ fn main(input : VertexInputs)->FragmentInputs {
100
+ #define CUSTOM_VERTEX_MAIN_BEGIN
101
+ #ifdef USE_VERTEX_PULLING
102
+ var positionUpdated: vec3f=vec3f(0.0);
103
+ #ifdef NORMAL
104
+ var normalUpdated: vec3f=vec3f(0.0);
105
+ #endif
106
+ #ifdef TANGENT
107
+ var tangentUpdated: vec4f=vec4f(0.0);
108
+ #endif
109
+ #ifdef UV1
110
+ var uvUpdated: vec2f=vec2f(0.0);
111
+ #endif
112
+ #ifdef UV2
113
+ var uv2Updated: vec2f=vec2f(0.0);
114
+ #endif
115
+ #ifdef VERTEXCOLOR
116
+ var colorUpdated: vec4f=vec4f(0.0);
117
+ #endif
118
+ #else
119
+ var positionUpdated: vec3f=vertexInputs.position;
120
+ #ifdef NORMAL
121
+ var normalUpdated: vec3f=vertexInputs.normal;
122
+ #endif
123
+ #ifdef TANGENT
124
+ var tangentUpdated: vec4f=vertexInputs.tangent;
125
+ #endif
126
+ #ifdef UV1
127
+ var uvUpdated: vec2f=vertexInputs.uv;
128
+ #endif
129
+ #ifdef UV2
130
+ var uv2Updated: vec2f=vertexInputs.uv2;
131
+ #endif
132
+ #ifdef VERTEXCOLOR
133
+ var colorUpdated: vec4f=vertexInputs.color;
134
+ #endif
135
+ #endif
136
+ #include<vertexPullingVertex>
137
+ #include<morphTargetsVertexGlobal>
138
+ #include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
139
+ #ifdef REFLECTIONMAP_SKYBOX
140
+ vertexOutputs.vPositionUVW=positionUpdated;
141
+ #endif
142
+ #define CUSTOM_VERTEX_UPDATE_POSITION
143
+ #define CUSTOM_VERTEX_UPDATE_NORMAL
144
+ #include<instancesVertex>
145
+ #if defined(PREPASS) && ((defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR)) && !defined(BONES_VELOCITY_ENABLED)
146
+ vertexOutputs.vCurrentPosition=scene.viewProjection*finalWorld*vec4f(positionUpdated,1.0);vertexOutputs.vPreviousPosition=uniforms.previousViewProjection*finalPreviousWorld*vec4f(positionUpdated,1.0);
147
+ #endif
148
+ #ifdef USE_VERTEX_PULLING
149
+ #include<bonesVertex>(vertexInputs.matricesIndices,vp_matricesIndices,vertexInputs.matricesWeights,vp_matricesWeights,vertexInputs.matricesIndicesExtra,vp_matricesIndicesExtra,vertexInputs.matricesWeightsExtra,vp_matricesWeightsExtra)
150
+ #include<bakedVertexAnimation>(vertexInputs.matricesIndices,vp_matricesIndices,vertexInputs.matricesWeights,vp_matricesWeights,vertexInputs.matricesIndicesExtra,vp_matricesIndicesExtra,vertexInputs.matricesWeightsExtra,vp_matricesWeightsExtra)
151
+ #else
152
+ #include<bonesVertex>
153
+ #include<bakedVertexAnimation>
154
+ #endif
155
+ var worldPos: vec4f=finalWorld*vec4f(positionUpdated,1.0);
156
+ #ifdef NORMAL
157
+ var normalWorld: mat3x3f= mat3x3f(finalWorld[0].xyz,finalWorld[1].xyz,finalWorld[2].xyz);
158
+ #if defined(INSTANCES) && defined(THIN_INSTANCES)
159
+ vertexOutputs.vNormalW=normalUpdated/ vec3f(dot(normalWorld[0],normalWorld[0]),dot(normalWorld[1],normalWorld[1]),dot(normalWorld[2],normalWorld[2]));vertexOutputs.vNormalW=normalize(normalWorld*vertexOutputs.vNormalW);
160
+ #else
161
+ #ifdef NONUNIFORMSCALING
162
+ normalWorld=transposeMat3(inverseMat3(normalWorld));
163
+ #endif
164
+ vertexOutputs.vNormalW=normalize(normalWorld*normalUpdated);
165
+ #endif
166
+ #endif
167
+ #define CUSTOM_VERTEX_UPDATE_WORLDPOS
168
+ #ifdef MULTIVIEW
169
+ if (gl_ViewID_OVR==0u) {vertexOutputs.position=scene.viewProjection*worldPos;} else {vertexOutputs.position=scene.viewProjectionR*worldPos;}
170
+ #else
171
+ vertexOutputs.position=scene.viewProjection*worldPos;
172
+ #endif
173
+ vertexOutputs.vPositionW= worldPos.xyz;
174
+ #ifdef PREPASS
175
+ #include<prePassVertex>
176
+ #endif
177
+ #if defined(REFLECTIONMAP_EQUIRECTANGULAR_FIXED) || defined(REFLECTIONMAP_MIRROREDEQUIRECTANGULAR_FIXED)
178
+ vertexOutputs.vDirectionW=normalize((finalWorld* vec4f(positionUpdated,0.0)).xyz);
179
+ #endif
180
+ #if defined(CLUSTLIGHT_BATCH) && CLUSTLIGHT_BATCH>0
181
+ #ifdef RIGHT_HANDED
182
+ vertexOutputs.vViewDepth=-(scene.view*worldPos).z;
183
+ #else
184
+ vertexOutputs.vViewDepth=(scene.view*worldPos).z;
185
+ #endif
186
+ #endif
187
+ #ifndef UV1
188
+ var uvUpdated: vec2f=vec2f(0.,0.);
189
+ #endif
190
+ #ifdef MAINUV1
191
+ vertexOutputs.vMainUV1=uvUpdated;
192
+ #endif
193
+ #ifndef UV2
194
+ var uv2Updated: vec2f=vec2f(0.,0.);
195
+ #endif
196
+ #ifdef MAINUV2
197
+ vertexOutputs.vMainUV2=uv2Updated;
198
+ #endif
199
+ #include<uvVariableDeclaration>[3..7]
200
+ #include<samplerVertexImplementation>(_DEFINENAME_,DIFFUSE,_VARYINGNAME_,Diffuse,_MATRIXNAME_,diffuse,_INFONAME_,DiffuseInfos.x)
201
+ #include<samplerVertexImplementation>(_DEFINENAME_,DETAIL,_VARYINGNAME_,Detail,_MATRIXNAME_,detail,_INFONAME_,DetailInfos.x)
202
+ #include<samplerVertexImplementation>(_DEFINENAME_,AMBIENT,_VARYINGNAME_,Ambient,_MATRIXNAME_,ambient,_INFONAME_,AmbientInfos.x)
203
+ #include<samplerVertexImplementation>(_DEFINENAME_,OPACITY,_VARYINGNAME_,Opacity,_MATRIXNAME_,opacity,_INFONAME_,OpacityInfos.x)
204
+ #include<samplerVertexImplementation>(_DEFINENAME_,EMISSIVE,_VARYINGNAME_,Emissive,_MATRIXNAME_,emissive,_INFONAME_,EmissiveInfos.x)
205
+ #include<samplerVertexImplementation>(_DEFINENAME_,LIGHTMAP,_VARYINGNAME_,Lightmap,_MATRIXNAME_,lightmap,_INFONAME_,LightmapInfos.x)
206
+ #if defined(SPECULARTERM)
207
+ #include<samplerVertexImplementation>(_DEFINENAME_,SPECULAR,_VARYINGNAME_,Specular,_MATRIXNAME_,specular,_INFONAME_,SpecularInfos.x)
208
+ #endif
209
+ #include<samplerVertexImplementation>(_DEFINENAME_,BUMP,_VARYINGNAME_,Bump,_MATRIXNAME_,bump,_INFONAME_,BumpInfos.x)
210
+ #include<samplerVertexImplementation>(_DEFINENAME_,DECAL,_VARYINGNAME_,Decal,_MATRIXNAME_,decal,_INFONAME_,DecalInfos.x)
211
+ #include<bumpVertex>
212
+ #include<clipPlaneVertex>
213
+ #include<fogVertex>
214
+ #include<shadowsVertex>[0..maxSimultaneousLights]
215
+ #include<vertexColorMixing>
216
+ #include<logDepthVertex>
217
+ #define CUSTOM_VERTEX_MAIN_END
218
+ }
219
+ `;
220
+ e.ShadersStoreWGSL[i] || (e.ShadersStoreWGSL[i] = n);
221
+ const v = { name: i, shader: n };
222
+ export {
223
+ v as defaultVertexShaderWGSL
224
+ };
@@ -0,0 +1,11 @@
1
+ import { b0 as e } from "./index-CS3Icp_r.js";
2
+ import "./sceneUboDeclaration-B6oxsfcj.js";
3
+ import "./logDepthDeclaration-gUfeSnXX.js";
4
+ const o = "defaultUboDeclaration", i = `layout(std140,column_major) uniform;uniform Material
5
+ {vec4 diffuseLeftColor;vec4 diffuseRightColor;vec4 opacityParts;vec4 reflectionLeftColor;vec4 reflectionRightColor;vec4 refractionLeftColor;vec4 refractionRightColor;vec4 emissiveLeftColor;vec4 emissiveRightColor;vec2 vDiffuseInfos;vec2 vAmbientInfos;vec2 vOpacityInfos;vec2 vEmissiveInfos;vec2 vLightmapInfos;vec2 vSpecularInfos;vec3 vBumpInfos;mat4 diffuseMatrix;mat4 ambientMatrix;mat4 opacityMatrix;mat4 emissiveMatrix;mat4 lightmapMatrix;mat4 specularMatrix;mat4 bumpMatrix;vec2 vTangentSpaceParams;float pointSize;float alphaCutOff;mat4 refractionMatrix;vec4 vRefractionInfos;vec3 vRefractionPosition;vec3 vRefractionSize;vec4 vSpecularColor;vec3 vEmissiveColor;vec4 vDiffuseColor;vec3 vAmbientColor;vec4 cameraInfo;vec4 vTextureRepetitionHexTilingParams;vec2 vReflectionInfos;mat4 reflectionMatrix;vec3 vReflectionPosition;vec3 vReflectionSize;
6
+ #define ADDITIONAL_UBO_DECLARATION
7
+ };
8
+ #include<sceneUboDeclaration>
9
+ #include<meshUboDeclaration>
10
+ `;
11
+ e.IncludesShadersStore[o] || (e.IncludesShadersStore[o] = i);
@@ -0,0 +1,9 @@
1
+ import { b0 as f } from "./index-CS3Icp_r.js";
2
+ import "./sceneUboDeclaration-JByfVKik.js";
3
+ import "./logDepthDeclaration-Bwm-3KyB.js";
4
+ const i = "defaultUboDeclaration", o = `uniform diffuseLeftColor: vec4f;uniform diffuseRightColor: vec4f;uniform opacityParts: vec4f;uniform reflectionLeftColor: vec4f;uniform reflectionRightColor: vec4f;uniform refractionLeftColor: vec4f;uniform refractionRightColor: vec4f;uniform emissiveLeftColor: vec4f;uniform emissiveRightColor: vec4f;uniform vDiffuseInfos: vec2f;uniform vAmbientInfos: vec2f;uniform vOpacityInfos: vec2f;uniform vEmissiveInfos: vec2f;uniform vLightmapInfos: vec2f;uniform vSpecularInfos: vec2f;uniform vBumpInfos: vec3f;uniform diffuseMatrix: mat4x4f;uniform ambientMatrix: mat4x4f;uniform opacityMatrix: mat4x4f;uniform emissiveMatrix: mat4x4f;uniform lightmapMatrix: mat4x4f;uniform specularMatrix: mat4x4f;uniform bumpMatrix: mat4x4f;uniform vTangentSpaceParams: vec2f;uniform pointSize: f32;uniform alphaCutOff: f32;uniform refractionMatrix: mat4x4f;uniform vRefractionInfos: vec4f;uniform vRefractionPosition: vec3f;uniform vRefractionSize: vec3f;uniform vSpecularColor: vec4f;uniform vEmissiveColor: vec3f;uniform vDiffuseColor: vec4f;uniform vAmbientColor: vec3f;uniform cameraInfo: vec4f;uniform vTextureRepetitionHexTilingParams: vec4f;uniform vReflectionInfos: vec2f;uniform reflectionMatrix: mat4x4f;uniform vReflectionPosition: vec3f;uniform vReflectionSize: vec3f;
5
+ #define ADDITIONAL_UBO_DECLARATION
6
+ #include<sceneUboDeclaration>
7
+ #include<meshUboDeclaration>
8
+ `;
9
+ f.IncludesShadersStoreWGSL[i] || (f.IncludesShadersStoreWGSL[i] = o);
@@ -0,0 +1,163 @@
1
+ import { B as I } from "./index-CS3Icp_r.js";
2
+ class t {
3
+ constructor() {
4
+ this._easingMode = t.EASINGMODE_EASEIN;
5
+ }
6
+ /**
7
+ * Sets the easing mode of the current function.
8
+ * @param easingMode Defines the willing mode (EASINGMODE_EASEIN, EASINGMODE_EASEOUT or EASINGMODE_EASEINOUT)
9
+ */
10
+ setEasingMode(s) {
11
+ const e = Math.min(Math.max(s, 0), 2);
12
+ this._easingMode = e;
13
+ }
14
+ /**
15
+ * Gets the current easing mode.
16
+ * @returns the easing mode
17
+ */
18
+ getEasingMode() {
19
+ return this._easingMode;
20
+ }
21
+ /**
22
+ * @internal
23
+ */
24
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
+ easeInCore(s) {
26
+ throw new Error("You must implement this method");
27
+ }
28
+ /**
29
+ * Given an input gradient between 0 and 1, this returns the corresponding value
30
+ * of the easing function.
31
+ * @param gradient Defines the value between 0 and 1 we want the easing value for
32
+ * @returns the corresponding value on the curve defined by the easing function
33
+ */
34
+ ease(s) {
35
+ switch (this._easingMode) {
36
+ case t.EASINGMODE_EASEIN:
37
+ return this.easeInCore(s);
38
+ case t.EASINGMODE_EASEOUT:
39
+ return 1 - this.easeInCore(1 - s);
40
+ }
41
+ return s >= 0.5 ? (1 - this.easeInCore((1 - s) * 2)) * 0.5 + 0.5 : this.easeInCore(s * 2) * 0.5;
42
+ }
43
+ }
44
+ t.EASINGMODE_EASEIN = 0;
45
+ t.EASINGMODE_EASEOUT = 1;
46
+ t.EASINGMODE_EASEINOUT = 2;
47
+ class A extends t {
48
+ /**
49
+ * @internal
50
+ */
51
+ easeInCore(s) {
52
+ return s = Math.max(0, Math.min(1, s)), 1 - Math.sqrt(1 - s * s);
53
+ }
54
+ }
55
+ class S extends t {
56
+ /**
57
+ * Instantiates a back ease easing
58
+ * @see https://easings.net/#easeInBack
59
+ * @param amplitude Defines the amplitude of the function
60
+ */
61
+ constructor(s = 1) {
62
+ super(), this.amplitude = s;
63
+ }
64
+ /**
65
+ * @internal
66
+ */
67
+ easeInCore(s) {
68
+ const e = Math.max(0, this.amplitude);
69
+ return Math.pow(s, 3) - s * e * Math.sin(3.141592653589793 * s);
70
+ }
71
+ }
72
+ class N extends t {
73
+ /**
74
+ * Instantiates a bounce easing
75
+ * @see https://easings.net/#easeInBounce
76
+ * @param bounces Defines the number of bounces
77
+ * @param bounciness Defines the amplitude of the bounce
78
+ */
79
+ constructor(s = 3, e = 2) {
80
+ super(), this.bounces = s, this.bounciness = e;
81
+ }
82
+ /**
83
+ * @internal
84
+ */
85
+ easeInCore(s) {
86
+ const e = Math.max(0, this.bounces);
87
+ let n = this.bounciness;
88
+ n <= 1 && (n = 1.001);
89
+ const o = Math.pow(n, e), h = 1 - n, c = (1 - o) / h + o * 0.5, m = s * c, p = Math.log(-m * (1 - n) + 1) / Math.log(n), u = Math.floor(p), x = u + 1, i = (1 - Math.pow(n, u)) / (h * c), l = (1 - Math.pow(n, x)) / (h * c), E = (i + l) * 0.5, M = s - E, r = E - i;
90
+ return -Math.pow(1 / n, e - u) / (r * r) * (M - r) * (M + r);
91
+ }
92
+ }
93
+ class O extends t {
94
+ /**
95
+ * @internal
96
+ */
97
+ easeInCore(s) {
98
+ return s * s * s;
99
+ }
100
+ }
101
+ class w extends t {
102
+ /**
103
+ * Instantiates an elastic easing function
104
+ * @see https://easings.net/#easeInElastic
105
+ * @param oscillations Defines the number of oscillations
106
+ * @param springiness Defines the amplitude of the oscillations
107
+ */
108
+ constructor(s = 3, e = 3) {
109
+ super(), this.oscillations = s, this.springiness = e;
110
+ }
111
+ /**
112
+ * @internal
113
+ */
114
+ easeInCore(s) {
115
+ let e;
116
+ const n = Math.max(0, this.oscillations), o = Math.max(0, this.springiness);
117
+ return o === 0 ? e = s : e = (Math.exp(o * s) - 1) / (Math.exp(o) - 1), e * Math.sin((6.283185307179586 * n + 1.5707963267948966) * s);
118
+ }
119
+ }
120
+ class b extends t {
121
+ /**
122
+ * Instantiates an exponential easing function
123
+ * @see https://easings.net/#easeInExpo
124
+ * @param exponent Defines the exponent of the function
125
+ */
126
+ constructor(s = 2) {
127
+ super(), this.exponent = s;
128
+ }
129
+ /**
130
+ * @internal
131
+ */
132
+ easeInCore(s) {
133
+ return this.exponent <= 0 ? s : (Math.exp(this.exponent * s) - 1) / (Math.exp(this.exponent) - 1);
134
+ }
135
+ }
136
+ class _ extends t {
137
+ /**
138
+ * Instantiates a bezier function
139
+ * @see http://cubic-bezier.com/#.17,.67,.83,.67
140
+ * @param x1 Defines the x component of the start tangent in the bezier curve
141
+ * @param y1 Defines the y component of the start tangent in the bezier curve
142
+ * @param x2 Defines the x component of the end tangent in the bezier curve
143
+ * @param y2 Defines the y component of the end tangent in the bezier curve
144
+ */
145
+ constructor(s = 0, e = 0, n = 1, o = 1) {
146
+ super(), this.x1 = s, this.y1 = e, this.x2 = n, this.y2 = o;
147
+ }
148
+ /**
149
+ * @internal
150
+ */
151
+ easeInCore(s) {
152
+ return I.Interpolate(s, this.x1, this.y1, this.x2, this.y2);
153
+ }
154
+ }
155
+ export {
156
+ S as B,
157
+ A as C,
158
+ w as E,
159
+ _ as a,
160
+ N as b,
161
+ O as c,
162
+ b as d
163
+ };
@@ -0,0 +1,40 @@
1
+ import { W as l, bd as d, bc as t } from "./index-CS3Icp_r.js";
2
+ class v {
3
+ constructor() {
4
+ this.supportCascades = !1;
5
+ }
6
+ /**
7
+ * Uploads the cube texture data to the WebGL texture. It has already been bound.
8
+ * @param data contains the texture data
9
+ * @param texture defines the BabylonJS internal texture
10
+ * @param createPolynomials will be true if polynomials have been requested
11
+ * @param onLoad defines the callback to trigger once the texture is ready
12
+ * @param onError defines the callback to trigger in case of error
13
+ */
14
+ loadCubeData(s, e, c, i, n) {
15
+ if (Array.isArray(s))
16
+ return;
17
+ const a = l(s);
18
+ if (a) {
19
+ e.width = a.width, e.height = a.width;
20
+ try {
21
+ d(e, a), t(e, s, a).then(() => {
22
+ e.isReady = !0, e.onLoadedObservable.notifyObservers(e), e.onLoadedObservable.clear(), i && i();
23
+ }, (o) => {
24
+ n?.("Can not upload environment levels", o);
25
+ });
26
+ } catch (o) {
27
+ n?.("Can not upload environment file", o);
28
+ }
29
+ } else n && n("Can not parse the environment file", null);
30
+ }
31
+ /**
32
+ * Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.
33
+ */
34
+ loadData() {
35
+ throw ".env not supported in 2d.";
36
+ }
37
+ }
38
+ export {
39
+ v as _ENVTextureLoader
40
+ };