{"id":13664002,"url":"https://github.com/elringus/grass-bending","last_synced_at":"2025-04-04T21:11:27.884Z","repository":{"id":37405618,"uuid":"163320526","full_name":"elringus/grass-bending","owner":"elringus","description":"A replacement for Unity's terrain vegetation shader with alpha blended rendering and touch bending effect","archived":false,"fork":false,"pushed_at":"2024-02-28T14:52:39.000Z","size":30693,"stargazers_count":539,"open_issues_count":1,"forks_count":77,"subscribers_count":26,"default_branch":"main","last_synced_at":"2024-05-22T18:11:46.561Z","etag":null,"topics":["asset","dynamic","plugin","shader","unity3d","vegetation"],"latest_commit_sha":null,"homepage":"","language":"HLSL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elringus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"elringus"}},"created_at":"2018-12-27T17:30:24.000Z","updated_at":"2024-08-02T05:20:37.227Z","dependencies_parsed_at":"2024-08-02T05:20:36.339Z","dependency_job_id":"2c8202e2-34d0-4673-a09a-581d59d3d6ca","html_url":"https://github.com/elringus/grass-bending","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":"0.34285714285714286","last_synced_commit":"0c9902868e4d0a6154b05d5933fcfc4343ffc70d"},"previous_names":["elringus/grass-bending","elringus/grassbending"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elringus%2Fgrass-bending","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elringus%2Fgrass-bending/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elringus%2Fgrass-bending/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elringus%2Fgrass-bending/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elringus","download_url":"https://codeload.github.com/elringus/grass-bending/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249532,"owners_count":20908212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asset","dynamic","plugin","shader","unity3d","vegetation"],"created_at":"2024-08-02T05:02:43.523Z","updated_at":"2025-04-04T21:11:27.864Z","avatar_url":"https://github.com/elringus.png","language":"HLSL","funding_links":["https://github.com/sponsors/elringus"],"categories":["C\\#"],"sub_categories":[],"readme":"## Description\nThe package contains a shader used for billboarded terrain details with waving and bending support and components to provide the required bend data to the shader.\n\n![](https://i.gyazo.com/147e29dbee2d98e79d13022eea2f0a66.gif)\n\n## Installation\nUse [UPM](https://docs.unity3d.com/Manual/upm-ui.html) to install the package via the following git URL: `https://github.com/elringus/grass-bending.git#package` or download and import [GrassBending.unitypackage](https://github.com/elringus/grass-bending/raw/main/GrassBending.unitypackage) manually.\n\n![](https://i.gyazo.com/b54e9daa9a483d9bf7f74f0e94b2d38a.gif)\n\n## How to use\nPaint grass on the terrain. Make sure the grass is billboarded (it will use a default shader otherwise).\n\n![](https://i.gyazo.com/7838094447e69dc40c2bb39129dc00d1.png)\n\nAdd a `BendGrassWhenEnabled` or `BendGrassWhenVisible` component to a gameobject that should apply the bend effect when positioned over the grass.\n\n![](https://i.gyazo.com/d3d0c8ed8afb569e12efccb2970362d2.png)\n\n`BendRadius` controls the radius of the bending sphere with center being the pivot of the gameobject. \n\n`Priority` is used to control the bending source priority; when concurrent bend sources limit is exceeded, benders with lower priority values will be served first.\n\nYou can also add your own implementation of the `IGrassBender` interface instead of using the built-in bender components.\n\nThe bending grass shader replaces Unity's default `Hidden/TerrainEngine/Details/BillboardWavingDoublePass` shader used for the terrain grass when `Billboard` option is enabled. It additionally allows to control the wind waving and bending power via the healthy/dry color tint alpha; when alpha of the both colors is zero, the wind and bending won't affect the grass at all.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felringus%2Fgrass-bending","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felringus%2Fgrass-bending","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felringus%2Fgrass-bending/lists"}