Description of the problem
I dont seem to detect a change in array when i apply a matrix to the array.
var test = new THREE.BoxBufferGeometry(2, 2, 2).attributes.position.array.slice(0);
console.log(test)
var test1 = new THREE.Matrix4().makeTranslation(3, 3, 3).applyToBufferAttribute(test);
console.log(test1, test);
Three.js version
- Dev
- [x ] r84
- …
Browser
- All of them
- [x ] Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Pass attribute, not array, to
.applyToBufferAttribute
.Data in a buffers are not always organized in a straightforward sequence. They can have different layouts like e.g. interleaved buffers. Working with buffer attributes provide a thin abstraction over these “low-level” implementation details.