{"id":13786040,"url":"https://github.com/sunduk/UnityRoundedShader","last_synced_at":"2025-05-11T21:32:30.230Z","repository":{"id":138630872,"uuid":"200624442","full_name":"sunduk/UnityRoundedShader","owner":"sunduk","description":"Rounded rectangle, circle, ellipse shaders in Unity","archived":false,"fork":false,"pushed_at":"2019-10-14T14:46:32.000Z","size":1823,"stargazers_count":51,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-17T22:35:59.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ShaderLab","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunduk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-08-05T09:25:44.000Z","updated_at":"2024-09-24T20:20:18.000Z","dependencies_parsed_at":"2024-01-17T05:13:55.184Z","dependency_job_id":"152f55be-7d98-455d-b2d1-f795b6d30084","html_url":"https://github.com/sunduk/UnityRoundedShader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunduk%2FUnityRoundedShader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunduk%2FUnityRoundedShader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunduk%2FUnityRoundedShader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunduk%2FUnityRoundedShader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunduk","download_url":"https://codeload.github.com/sunduk/UnityRoundedShader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253638990,"owners_count":21940434,"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":[],"created_at":"2024-08-03T19:01:08.500Z","updated_at":"2025-05-11T21:32:25.197Z","avatar_url":"https://github.com/sunduk.png","language":"ShaderLab","readme":"# UnityRoundedShader\nRounded rectangle, circle, ellipse shaders in Unity\n\n![alt tag](https://github.com/sunduk/UnityRoundedShader/blob/master/preview.gif?raw=true)\n\n![alt tag](https://github.com/sunduk/UnityRoundedShader/blob/master/hourglass.png?raw=true)\nf(x)=x^2\n\n## Description\n이 코드에 대한 강좌는 여기서 볼 수 있습니다 : https://lee-seokhyun.gitbook.io/workspace/client/shader/roundedrect_shader\n\n\n셰이더로 둥근 사각형을 만들기 위해 구글에 검색해 보니 아래 두개의 사이트가 상단에 보였습니다.\n\nhttps://www.shadertoy.com/view/ldfSDj\n\nhttps://github.com/Nobinator/Unity-UI-Rounded-Corners\n\n하나는 Shadertoy라고 셰이더와 관련해서 아주 유명한 사이트입니다.\n\n다른 하나는 github에 올라와 있는 곳인데 제가 구현하려는 모습과 흡사하여 많이 참고를 하였습니다.\n\n저 코드에서는 엣지를 부드럽게 하기 위해 fwidth()라는 함수를 사용하였는데 사실 어떤 원리인지 정확히 이해가 안갔습니다.\n\n그래서 제가 생각한 방식으로 다시 작성하였고 그 결과물을 여기에 올립니다.\n\n더불어 원 모양을 만드는 셰이더도 추가로 만들었는데,\n\n둥근 사각형을 만들어 보니 원 모양을 만드는것도 쉽게 응용이 가능했으며 활용도도 높을것 같아서 추가하였습니다.\n\n\n-----\n\n\nThe below two web sites appeared when I searched on google.\n\nhttps://www.shadertoy.com/view/ldfSDj\n\nhttps://github.com/Nobinator/Unity-UI-Rounded-Corners\n\n\nThe first one is the Shadertoy which is very famous web site about shaders.\n\nThe second web site also gave me an idea to implement it.\n\nI have read the shader codes which made by Nobinator, but I didn't understand full of it.\n\nI was not cleared about fwidth() function in cg shader.\n\nSo, I have re-written the shader codes more understandable and added a circle shader.\n\n\n## License\n- 소스코드와 이미지는 아무런 제약 없이 자유롭게 사용 가능합니다.\n- All source codes and images are free to use.\n\n\u003cpre\u003e\n/*\n * ------------------------------------------------------------\n * \"THE BEERWARE LICENSE\" (Revision 42):\n * I wrote this code. As long as you retain this \n * notice, you can do whatever you want with this stuff. If we\n * meet someday, and you think this stuff is worth it, you can\n * buy me a beer in return.\n * ------------------------------------------------------------\n */\n \u003c/pre\u003e\n \n","funding_links":[],"categories":["UI Shader"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunduk%2FUnityRoundedShader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunduk%2FUnityRoundedShader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunduk%2FUnityRoundedShader/lists"}