Hi everyone,
Quick question: will sth like this work:
//Create a custom mesh
var customMesh = new BABYLON.Mesh("custom", scene);
//Set arrays for positions and indices
var positions = [-5, 2, -3, -7, -2, -3, -3, -2, -3, 5, 2, 3, 7, -2, 3, 3, -2, 3]; //Float32Array
var indices = [0, 1, 2, 3, 4, 5];
const spos = new SharedArrayBuffer(positions.length * 32);
//Create a vertexData object
var vertexData = new BABYLON.VertexData();
//Assign positions and indices to vertexData
vertexData.positions = spos;
vertexData.indices = indices;
//Apply vertexData to custom mesh
vertexData.applyToMesh(customMesh);
Will using SharedArrayBuffer work at all here and/or cause a recreation of the data as Float32Array?
Best wishes
Joe