add option to load normals with model
This commit is contained in:
parent
4916a055eb
commit
098fd9bb7e
4 changed files with 11 additions and 18 deletions
|
|
@ -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
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue