lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
15 lines • 399 B
JavaScript
export const getVisibleChildren = (object) => {
const queue = [object];
const objects = [];
while (queue.length !== 0) {
const mesh = queue.shift();
if (mesh.material)
objects.push(mesh);
for (const c of mesh.children) {
if (c.visible)
queue.push(c);
}
}
return objects;
};
//# sourceMappingURL=Utils.js.map