Sitelet https://github.com/BabylonJS/Extensions/tree/master/TreeGenerators/SimplePineGenerator
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

readme.md

Simple Pine Tree Generator

The function simplePineGenerator uses a tube to generate a tree.

It is based on playgrounds from this forum topic http://www.html5gamedevs.com/topic/21484-simple-pine-trees/

How to use it.

After importing into your BJS project simply add

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

Parameters

canopies - number of leaf sections.

height - height of tree.

trunkMaterial - material used for trunk.

leafMaterial - material for canopies.

scene - BABYLON scene.