1. Home
  2. Docs
  3. Effect Nodes
  4. Wind Effect Node

Wind Effect Node

This element applies wind weight by applying values on the UV2 and colors channels to the tree mesh. This allows the generated trees to be rendered using a shader that simulates wind using this method (including Unity’s Tree Creator shaders) and be reactive to WindZone objects on the scene (currently, the controller only supports WindZone Directional mode).

When using prefab assets produced to be reactive to WindZone components, please call Broccoli.Controller.TreeControlle::UpdateWind() to update the wind factor on the tree instances. Avoid calling this method on every frame, instead call it every time there is a change on WindZone components that needs to be reflected on the scene.

Wind Factor

The factor multiplies the effect of the wind applied to the mesh.

Tree with wind effect = 1.

UV2 channel for a tree with wind effect = 1.

UV2 channel for a tree with wind effect = 0.5.

UV2 channel for a tree with wind effect = 1.5.

Wind Resistance

Resistance to the wind goes from the trunk to the last branches, being the latter more affected by the effect; increasing wind resistance give branches near the trunk more rigidity, thus they are less affected by the wind.

UV2 channel for a tree with wind resistance = 1.

UV2 channel for a tree with wind resistance = 0.5.

Sprout Turbulence

This value applies only to sprouts, a value of 0 means the sprouts will move along their parent branch but they will remain unaffected by wind, whereas a value of 1 gives the sprout full wind effect.

Was this article helpful to you? Yes No

How can we help?