update method
Implementation
void update(BufferGeometry geometry) {
final geometryAttributes = geometry.attributes;
// Updating index buffer in VAO now. See WebGLBindingStates.
for (final name in geometryAttributes.keys) {
attributes.update(geometryAttributes[name], WebGL.ARRAY_BUFFER, name: name);
}
// morph targets
final morphAttributes = geometry.morphAttributes;
for (final name in morphAttributes.keys) {
final array = morphAttributes[name]!;
for (int i = 0, l = array.length; i < l; i++) {
attributes.update(array[i], WebGL.ARRAY_BUFFER, name: "$name - morphAttributes i: $i");
}
}
}