Tree/vegetation wind sway vertex shader

Here’s a little tree/vegetation wind sway vertex shader made with the help of ChatGPT. The tree was exported from https://www.eztree.dev/

  • a/z = wind amplitude
  • s/x = wind speed
  • d/c = wind frequency
  • q/w = wind direction

14 Likes

Love it!! super cool!

1 Like

:heart_eyes: Yummy!

1 Like

This is super cool and well done !!!

2 Likes

lol, so much for the nvidia paper that wants us to vertex-color our tree meshes in order for the shader to know about trunks, branches and leaves… :zany_face:

1 Like

Yeah what I’ve done here is a pretty naïve/simplistic approach, but does the trick if you’re just after a little natural movement in trees and vegetation.

2 Likes