A million objects: make fewer of them

Part 1 made each tree smaller. This part makes fewer objects instead. You only need this when two things are true: you have a lot of objects, and a big part of each one is the same as in many others. A million trees with three species qualify. A thousand trees don’t, and neither do a million trees that are all different. The problem In a game, a tree also needs to look like something. Say the forest now comes from a file, and every tree has a species with a colour and a texture: ...