Simple Pine Tree Generator

Generated Tree

The function simplePineGenerator uses a tube to generate a tree.

A demo can be found at: Simple Pine Tree Generator Example

How to use it.

Clone or copy the file

call the function

const tree = simplePineGenerator(canopies, height, trunkMaterial, leafMaterial, scene);


canopies - number of leaf sections.

height - height of tree.

trunkMaterial - material used for trunk.

leafMaterial - material for canopies.

scene - BABYLON scene.