{"id":23689429,"url":"https://github.com/misaka-mikoto-tech/scratchimage","last_synced_at":"2025-08-15T14:07:13.938Z","repository":{"id":94449072,"uuid":"329294075","full_name":"Misaka-Mikoto-Tech/ScratchImage","owner":"Misaka-Mikoto-Tech","description":"scratch effect on unity","archived":false,"fork":false,"pushed_at":"2021-02-25T17:42:54.000Z","size":3867,"stargazers_count":69,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T21:42:40.983Z","etag":null,"topics":["histogram","scratch","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Misaka-Mikoto-Tech.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-13T12:00:19.000Z","updated_at":"2025-04-03T17:08:24.000Z","dependencies_parsed_at":"2023-03-17T21:16:30.048Z","dependency_job_id":null,"html_url":"https://github.com/Misaka-Mikoto-Tech/ScratchImage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Misaka-Mikoto-Tech/ScratchImage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misaka-Mikoto-Tech%2FScratchImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misaka-Mikoto-Tech%2FScratchImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misaka-Mikoto-Tech%2FScratchImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misaka-Mikoto-Tech%2FScratchImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Misaka-Mikoto-Tech","download_url":"https://codeload.github.com/Misaka-Mikoto-Tech/ScratchImage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Misaka-Mikoto-Tech%2FScratchImage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270579613,"owners_count":24610044,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["histogram","scratch","unity"],"created_at":"2024-12-30T00:51:52.501Z","updated_at":"2025-08-15T14:07:13.928Z","avatar_url":"https://github.com/Misaka-Mikoto-Tech.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity刮刮乐效果\n\n#### 功能\n* 实现刮开蒙版透出背景的效果\n* 实时显示刮开的比例和平均像素值\n\n#### 选项\n* 可以自由设置背景和蒙版以及笔刷\n* 允许设置笔刷大小和透明度\n\n#### 性能\n* 使用GPUInstancing和CommandBuffer绘制，绝大多数情况下性能可以接受。\n* 在某些设备上有兼容性问题时可以通过修改每个批次的实例数量 (`ScratchImage.INSTANCE_COUNT_PER_BATCH`) 来改善\n* 统计功能通过ComputeShader计算直方图来实现，可能比较浪费性能，不需要时可以关闭此特性。\n\n#### 预览 \n \n![image](Preview/preview.gif) \n![image](Preview/GameView.png) \n![image](Preview/Inspector.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaka-mikoto-tech%2Fscratchimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisaka-mikoto-tech%2Fscratchimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaka-mikoto-tech%2Fscratchimage/lists"}