gamnit :: Model :: leaves
LeafModel
Usually, there is one LeafModel per material. At each frame, each material is asked to draw all the live LeafModel instaces.
# All `LeafModel` composing this model # # Usually, there is one `LeafModel` per material. # At each frame, each material is asked to draw all the live `LeafModel` instaces. fun leaves: Array[LeafModel] is abstract
redef var leaves = new Array[LeafModel]
redef var leaves = [self]
redef fun leaves do lazy_load return leaves_cache end