UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

13 lines (11 loc) 223 B
/** * * @param {THREE.Texture} texture * @return {number} */ export function textureHashById(texture) { if (texture === undefined || texture === null) { return 0; } return texture.id; }