@babylonjs/loaders
Advanced tools
Comparing version 7.43.0 to 7.44.0
{ | ||
"name": "@babylonjs/loaders", | ||
"version": "7.43.0", | ||
"version": "7.44.0", | ||
"main": "index.js", | ||
@@ -21,6 +21,6 @@ "module": "index.js", | ||
"devDependencies": { | ||
"@babylonjs/core": "^7.43.0", | ||
"@babylonjs/core": "^7.44.0", | ||
"@dev/build-tools": "^1.0.0", | ||
"@lts/loaders": "^1.0.0", | ||
"babylonjs-gltf2interface": "^7.43.0" | ||
"babylonjs-gltf2interface": "^7.44.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "peerDependencies": { |
@@ -419,3 +419,3 @@ import { registerSceneLoaderPlugin } from "@babylonjs/core/Loading/sceneLoader.js"; | ||
const rowChunkLength = rowChunkOffset; | ||
return GaussianSplattingMesh.ConvertPLYToSplatAsync(data).then((buffer) => { | ||
return GaussianSplattingMesh.ConvertPLYWithSHToSplatAsync(data).then((splatsData) => { | ||
const dataView = new DataView(data, headerEndIndex + headerEnd.length); | ||
@@ -442,3 +442,3 @@ let offset = rowChunkLength * chunkCount + rowVertexLength * vertexCount; | ||
return new Promise((resolve) => { | ||
resolve({ mode: 0 /* Mode.Splat */, data: buffer, faces: faces, hasVertexColors: false }); | ||
resolve({ mode: 0 /* Mode.Splat */, data: splatsData.buffer, sh: splatsData.sh, faces: faces, hasVertexColors: false }); | ||
}); | ||
@@ -465,3 +465,3 @@ } | ||
return new Promise((resolve) => { | ||
resolve({ mode: currentMode, data: buffer, faces: faces, hasVertexColors: !!propertyColorCount }); | ||
resolve({ mode: currentMode, data: splatsData.buffer, sh: splatsData.sh, faces: faces, hasVertexColors: !!propertyColorCount }); | ||
}); | ||
@@ -468,0 +468,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1883877
16821