pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.42k stars 290 forks source link

[FEATURE] Add a stack to register component, and create for..loop for same component to avoid duplication #190

Open foufrix opened 1 year ago

foufrix commented 1 year ago

Hi

Let's say I have a plane Board, with 10 threes that are the same.

Currently, It will generate 11 components (1 board, and 10 threes that are the same) but don't specifically have the same positions or scale, but same material, maybe not same geometry? I have to check..

Is it interesting to develop something that will stack component and check if they already exist, to create a for loop in the tsx at the end to avoid duplicate component ?

Would it be interesting to develop that?