UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

14 lines (11 loc) 240 B
/** * * @param {Texture} t * @returns {Texture} */ export function cloneTexture(t) { const clone = t.clone(); //apparently cloned textures need this trick to work clone.needsUpdate = true; return clone; }