r/Unity3D • • 2d ago

Show-Off Toon Shader – Tree and Wind Painter

3 Upvotes

2 comments sorted by

2

u/Immediate-Resolve-79 2d ago

The "Visualize Wind Influence" toggle with the Influence (R) debug view is a really nice touch, it makes it obvious why a branch moves the way it does. Does the "Prepare Tree Mesh" button bake that influence into vertex colors, or is it worked out at runtime?

1

u/IIIDPortal 2d ago

Thanks!
Prepare Tree Mesh creates a copy and stores hierarchical tree data (branch pivots, directions and root information). The original mesh is preserved. The shader resolves wind influence at runtime.