Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/voxel-block-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1297,17 +1297,17 @@ export const voxel_block_builder = (() => {

for (let k in meshes) {
const positionsArray = new Float32Array(
new SharedArrayBuffer(bytesInFloat32 * meshes[k].positions.length));
new ArrayBuffer(bytesInFloat32 * meshes[k].positions.length));
const normalsArray = new Float32Array(
new SharedArrayBuffer(bytesInFloat32 * meshes[k].normals.length));
new ArrayBuffer(bytesInFloat32 * meshes[k].normals.length));
const uvsArray = new Float32Array(
new SharedArrayBuffer(bytesInFloat32 * meshes[k].uvs.length));
new ArrayBuffer(bytesInFloat32 * meshes[k].uvs.length));
const uvSlicesArray = new Float32Array(
new SharedArrayBuffer(bytesInFloat32 * meshes[k].uvSlices.length));
new ArrayBuffer(bytesInFloat32 * meshes[k].uvSlices.length));
const coloursArray = new Float32Array(
new SharedArrayBuffer(bytesInFloat32 * meshes[k].colours.length));
new ArrayBuffer(bytesInFloat32 * meshes[k].colours.length));
const indicesArray = new Uint32Array(
new SharedArrayBuffer(bytesInInt32 * meshes[k].indices.length));
new ArrayBuffer(bytesInInt32 * meshes[k].indices.length));

positionsArray.set(meshes[k].positions, 0);
normalsArray.set(meshes[k].normals, 0);
Expand Down