Updated to BufferGeometry.