Tree class

Constructors

Tree()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

textures ↔ Map
getter/setter pair
windMaterials → List<ShaderMaterial>
Registered wind ShaderMaterials. Only populated for trees created with windspeed > 0. Call Tree.updateWind(delta) once per frame.
final

Static Methods

createTree(dynamic leafpaths, {dynamic spreadytapertop = 1.0, dynamic spreadx = 1.0, dynamic spready = 1.0, dynamic spreadz = 1.0, dynamic leafspritespertree = 64, dynamic leafspritescale = 1.5, dynamic treehollowness = 1.0, dynamic useplanes = true, dynamic treepath, dynamic randomroll = 0.1, dynamic windspeed = 0.0}) → dynamic
init() → void
updateWind(double delta) → void
Advance the wind time uniform on every registered foliage material. Call this from your game-loop update, e.g.: Tree.updateWind(frameTime);