UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

15 lines (14 loc) 406 B
/** * * @param {BufferGeometry} target * @param {BufferGeometry} source */ export function geometry_copy(target, source) { target.index = source.index; for (let attributeName in source.attributes) { if (!source.attributes.hasOwnProperty(attributeName)) { continue; } target.attributes[attributeName] = source.attributes[attributeName]; } }