@babylonjs/loaders 8.10.0 → 8.11.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.
- package/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.d.ts +2 -2
- package/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js +7 -8
- package/glTF/2.0/Extensions/KHR_interactivity/declarationMapper.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.d.ts +2 -3
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js +2 -2
- package/glTF/2.0/Extensions/KHR_interactivity/interactivityGraphParser.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity.js +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_specular.js +10 -0
- package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
- package/glTF/2.0/glTFLoader.js +2 -2
- package/glTF/2.0/glTFLoader.js.map +1 -1
- package/package.json +3 -3
@@ -238,8 +238,8 @@ export {};
|
|
238
238
|
- Normalize (`math/normalize`) FlowGraphBlockNames.Normalize
|
239
239
|
- Dot Product (`math/dot`) FlowGraphBlockNames.Dot
|
240
240
|
- Cross Product (`math/cross`) FlowGraphBlockNames.Cross
|
241
|
-
- Rotate 2D (`math/
|
242
|
-
- Rotate 3D (`math/
|
241
|
+
- Rotate 2D (`math/rotate2D`) FlowGraphBlockNames.Rotate2D
|
242
|
+
- Rotate 3D (`math/rotate3D`) FlowGraphBlockNames.Rotate3D
|
243
243
|
- Transform (`math/transform`) FlowGraphBlockNames.TransformVector
|
244
244
|
9. **Matrix Nodes**
|
245
245
|
- Transpose (`math/transpose`) FlowGraphBlockNames.Transpose
|
@@ -289,8 +289,8 @@ const gltfToFlowGraphMapping = {
|
|
289
289
|
"math/normalize": getSimpleInputMapping("FlowGraphNormalizeBlock" /* FlowGraphBlockNames.Normalize */),
|
290
290
|
"math/dot": getSimpleInputMapping("FlowGraphDotBlock" /* FlowGraphBlockNames.Dot */, ["a", "b"]),
|
291
291
|
"math/cross": getSimpleInputMapping("FlowGraphCrossBlock" /* FlowGraphBlockNames.Cross */, ["a", "b"]),
|
292
|
-
"math/
|
293
|
-
"math/
|
292
|
+
"math/rotate2D": getSimpleInputMapping("FlowGraphRotate2DBlock" /* FlowGraphBlockNames.Rotate2D */, ["a", "b"]),
|
293
|
+
"math/rotate3D": getSimpleInputMapping("FlowGraphRotate3DBlock" /* FlowGraphBlockNames.Rotate3D */, ["a", "b"]),
|
294
294
|
"math/transform": {
|
295
295
|
// glTF transform is vectorN with matrixN
|
296
296
|
blocks: ["FlowGraphTransformVectorBlock" /* FlowGraphBlockNames.TransformVector */],
|
@@ -1261,9 +1261,8 @@ const gltfToFlowGraphMapping = {
|
|
1261
1261
|
values: {
|
1262
1262
|
animation: { name: "index", gltfType: "number", toBlock: "FlowGraphArrayIndexBlock" /* FlowGraphBlockNames.ArrayIndex */ },
|
1263
1263
|
speed: { name: "speed", gltfType: "number" },
|
1264
|
-
|
1265
|
-
|
1266
|
-
endTime: { name: "to", gltfType: "number", dataTransformer: (time, parser) => [time[0] * parser._loader.parent.targetFps] },
|
1264
|
+
startTime: { name: "from", gltfType: "number", dataTransformer: (time, parser) => [time[0] * parser._animationTargetFps] },
|
1265
|
+
endTime: { name: "to", gltfType: "number", dataTransformer: (time, parser) => [time[0] * parser._animationTargetFps] },
|
1267
1266
|
},
|
1268
1267
|
},
|
1269
1268
|
outputs: {
|
@@ -1337,7 +1336,7 @@ const gltfToFlowGraphMapping = {
|
|
1337
1336
|
inputs: {
|
1338
1337
|
values: {
|
1339
1338
|
animation: { name: "index", gltfType: "number", toBlock: "FlowGraphArrayIndexBlock" /* FlowGraphBlockNames.ArrayIndex */ },
|
1340
|
-
stopTime: { name: "stopAtFrame", gltfType: "number", dataTransformer: (time, parser) => [time[0] * parser.
|
1339
|
+
stopTime: { name: "stopAtFrame", gltfType: "number", dataTransformer: (time, parser) => [time[0] * parser._animationTargetFps] },
|
1341
1340
|
},
|
1342
1341
|
},
|
1343
1342
|
outputs: {
|
@@ -1545,8 +1544,8 @@ export function getAllSupportedNativeNodeTypes() {
|
|
1545
1544
|
- Normalize (`math/normalize`) FlowGraphBlockNames.Normalize
|
1546
1545
|
- Dot Product (`math/dot`) FlowGraphBlockNames.Dot
|
1547
1546
|
- Cross Product (`math/cross`) FlowGraphBlockNames.Cross
|
1548
|
-
- Rotate 2D (`math/
|
1549
|
-
- Rotate 3D (`math/
|
1547
|
+
- Rotate 2D (`math/rotate2D`) FlowGraphBlockNames.Rotate2D
|
1548
|
+
- Rotate 3D (`math/rotate3D`) FlowGraphBlockNames.Rotate3D
|
1550
1549
|
- Transform (`math/transform`) FlowGraphBlockNames.TransformVector
|
1551
1550
|
9. **Matrix Nodes**
|
1552
1551
|
- Transpose (`math/transpose`) FlowGraphBlockNames.Transpose
|