Updated the structure with eslint, prettier and yarn.
Added support for dynamic attribute switching which can be used to update or recalculate an attribute on the fly.
.prepareAttribute(attribute)
- uses the regular data function as parameter
.prepareBuffer(attribute)
- uses the final data array as parameter
Update the demo with a toggle (in code) to preview this.