updateNormals method
Replaces every vertex normal, keeping the vertex count unchanged.
Pass dirtyStart/dirtyCount to upload only a contiguous span; see
updatePositions.
Implementation
void updateNormals(Float32List normals, {int? dirtyStart, int? dirtyCount}) {
_ensureUpdatable('updateNormals');
_checkAttributeLength('normals', normals.length, 3);
_cpuNormals = Float32List.fromList(normals);
_writeStream(
1,
_normalRing,
_cpuNormals,
dirtyStart: dirtyStart,
dirtyCount: dirtyCount,
);
}