gdquest-demos / godot-shaders

A large library of free and open-source shaders for the Godot game engine. Here, you'll get 2D and 3D shaders with playable demos.
Other
3.06k stars 182 forks source link

Added interactivity to the grass shader. Wind is now based on world coordinates #25

Closed QbieShay closed 3 years ago

QbieShay commented 3 years ago

Please check if the PR fulfills these requirements:

What kind of change does this PR introduce? The grass shader has been reworked:

Does this PR introduce a breaking change? The way that the wind looks in the grass is different

New feature or change

What is the current behavior? Each blade of grass is assigned a random number and calculates the wind displacement based on that

What is the new behavior? The grass can now interact with a single characters. The parameters for the interaction are tunable. The grass calculates the wind based on its global xz coordinates, so that "wind waves" are now visible.

https://gfycat.com/excitableharmlesshellbender