Skip to content

Commit

Permalink
chore(model): correct normalized flag for model normal attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Feb 2, 2024
1 parent 00f1c9b commit 1382b7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/model/ModelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ class ModelManager {
);

const normals = new THREE.InterleavedBuffer(new Float32Array(vertexBuffer), 48 / 4);
geometry.setAttribute('normal', new THREE.InterleavedBufferAttribute(normals, 3, 20 / 4, true));
geometry.setAttribute(
'normal',
new THREE.InterleavedBufferAttribute(normals, 3, 20 / 4, false),
);

const texCoord1 = new THREE.InterleavedBuffer(new Float32Array(vertexBuffer), 48 / 4);
geometry.setAttribute(
Expand Down

0 comments on commit 1382b7c

Please sign in to comment.