add option to load normals with model

This commit is contained in:
Stewart Allen 2022-01-05 09:29:27 -05:00
commit 098fd9bb7e
4 changed files with 11 additions and 18 deletions

View file

@ -203,16 +203,10 @@ function space_init(data) {
moto.client.fn.model_heal(m.id)
.then(data => {
if (data) {
// api.group.new([new mesh.model({
// file: 'healed',
// mesh: data.vertices.toFloat32(),
// // mesh: Float32Array.from([...data.v]),
// // index: Uint32Array.from([...data.f])
// })]);
m.reload(
Float32Array.from(data.vertices),
// Float32Array.from([...data.v]),
// Uint32Array.from([...data.f])
data.vertices,
data.indices,
data.normals
);
}
});