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