{"repo":"renanbomtempo/polygon-wind","free":true,"listed":false,"github":"https://github.com/renanbomtempo/polygon-wind","clone":"git clone https://github.com/renanbomtempo/polygon-wind.git","description":"Unity shader to emulate wind on low poly assets.","language":"ShaderLab","stars":176,"topics":["unity","lowpoly","wind-shader","polygon-wind","glsl-shaders","shader"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Polygon Wind Shader In 2017 I was looking for a wind shader to use on a low poly tree model. I couldn't find one that provided the visual I was looking for, so I started to develop the Polygon Wind Shader. It is designed to generate a more suttle and organic wind movement on trees. But it's not great for heavy wind effects. Lately I haven't had much time to work on it, so I decided to publish the source code here and make it available so that anyone can use and modify it. Here are some videos of what I achieved using it: Using on individual model https://github.com/user-attachments/assets/fdd2befc-0be3-472e-bc42-8e3417b668dd Using on a Unity Terrain https://github.com/user-attachments/assets/f6c2d1b5-8de8-4bc4-a9c1-dbd24872b000 How to use it: Just apply the shader to a material and apply the material to your asset. The ideal tree asset is one with a single mesh. The shader has various parameters for you to tweak: - Wind Wave Size; - Tree Sway Displacement; - Foliage Wiggle Amount; - Branches Up/Down; - Foliage Wiggle Speed; - Tree Sway Stutter; - Tree Sway Speed; - Wind Direction; - Red Vertex Influence; - Blue Vertex Influence. It uses a series of inputs to calculate the final vertex position, one of them being the vertices colors of the mesh: - Red - Use on the branches to enable the up/down movement; - Blue - Use it on the leaves to get that organic wiggle. Known applications using the shader - [[Star Wars Galaxies' Mod] Borrie's Swaying Trees, by Borrie BoBaka](https://mo","default_branch":null,"files":null,"tree":[],"storefront":"/r/renanbomtempo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/renanbomtempo/polygon-wind/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}