{"id":25517821,"url":"https://github.com/s4k10503/unityshadercollection","last_synced_at":"2026-04-28T21:32:59.618Z","repository":{"id":181800507,"uuid":"666017517","full_name":"s4k10503/UnityShaderCollection","owner":"s4k10503","description":"This is a sample of various shaders (BRP) in Unity. ","archived":false,"fork":false,"pushed_at":"2025-01-28T10:57:31.000Z","size":271,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T04:11:45.553Z","etag":null,"topics":["effects","shaders","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","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/s4k10503.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2023-07-13T14:11:04.000Z","updated_at":"2024-11-26T17:53:12.000Z","dependencies_parsed_at":"2023-10-15T04:55:36.167Z","dependency_job_id":"37dae495-c773-4639-894c-a0fb4234aa4f","html_url":"https://github.com/s4k10503/UnityShaderCollection","commit_stats":null,"previous_names":["s4k10503/unityshadercollection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s4k10503/UnityShaderCollection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4k10503%2FUnityShaderCollection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4k10503%2FUnityShaderCollection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4k10503%2FUnityShaderCollection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4k10503%2FUnityShaderCollection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s4k10503","download_url":"https://codeload.github.com/s4k10503/UnityShaderCollection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4k10503%2FUnityShaderCollection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["effects","shaders","unity"],"created_at":"2025-02-19T15:38:01.489Z","updated_at":"2026-04-28T21:32:59.578Z","avatar_url":"https://github.com/s4k10503.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnityShaderCollection\n\nI plan to add various shaders in the future.\n\n## Visualizer2D.unity\n\nThis is a sample that visualizes the result of image processing using a compute shader in Unity.  \nApplies specific image processing effects based on user-specified parameters.\n\n### Features\n\n- IComputeShaderHandler Interface\n  - This interface abstracts the execution of any shader.\n- ComputeShaderHandler Class\n  - This class implements the IComputeShaderHandler interface and defines the generic behavior for shader processing.\n- ThredSize Struct\n  - This structure defines the thread size of the shader.\n  - The thread size is used to specify the dimension of the threads in the grid in a compute shader run.\n  - This structure specifies the number of threads for the X, Y, and Z directions.\n- Visualizer Class\n  - This class uses an instance of ComputeShaderHandler or its subclasses to perform specific shader processing.\n\n### Usage\n\n1. Open your Unity project.\n1. Assign the instance of the shader handler you want to use (such as PixelArtHandler) to the _shaderHandler field of the Visualizer.cs script.\n1. Run your project.\n\n### Examples\n\n#### Pixelart\n\nThis is a sample of piexlart effect using PixelArtHandler.cs \u0026 PixelArt.compute.  \n\n![lenna_pixelart](https://github.com/s4k10503/UnityShaderCollection/assets/50241623/35b3c224-19d1-44f2-8700-18c367836210)\n\n#### ImageRotation\n\nThis is a sample of rotation effect using ImageRotationHandler.cs \u0026 ImageRotationComputeShader.compute.  \n\n![lenna_rotation](https://github.com/s4k10503/UnityShaderCollection/assets/50241623/2d9b5e49-279c-43cb-89ce-a1f0cc1bfdcf)\n\n#### Glitch\n\nThis is a sample of glitch effect using GlitchEffectHandler.cs \u0026 GlitchEffect.compute.  \n\n![lenna_glitch](https://github.com/s4k10503/UnityShaderCollection/assets/50241623/95e784d5-3603-4896-a61c-9ad4a1ac3779)\n\n#### Twirl\n\nThis is a sample of twirl effect using TwirlEffectHandler.cs \u0026 TwirlEffect.compute.  \n\n![lenna_twirl](https://github.com/s4k10503/UnityShaderCollection/assets/50241623/d05acaa6-15b3-497b-a6b2-69adc8ce0d24)\n\n#### RadialBlur\n\nThis is a sample of radial blur effect using RadialBlurHandler.cs \u0026 RadialBlur.compute.\n\n![lenna_radialblur](https://github.com/s4k10503/UnityShaderCollection/assets/50241623/580472a0-87e4-43c6-906c-8eccbdfe22b8)\n\n#### Shake\n\nThis is a sample of shake effect using ShakeHandler.cs \u0026 shake.compute.\n\n![lenna_shake](https://github.com/s4k10503/UnityShaderCollection/assets/50241623/8f5443c2-d223-4e21-8de9-c80e683ba85d)\n\n### Shake2\n\nThis is a sample of shake effect using ShakeHandler.cs \u0026 shake2.compute.\n\n\u003chttps://github.com/s4k10503/UnityShaderCollection/assets/50241623/049bdba8-cc1e-448d-ae2d-47b7ab6e5422\u003e\n\n### Fisheye\n\nThis is a sample of shake effect using FisheyeHandler.cs \u0026 Fisheye.compute.\n\n\u003chttps://github.com/s4k10503/UnityShaderCollection/assets/50241623/e4bac81f-601a-4c98-b55e-943927453d88\u003e\n\n## Visualizer3D.unity\n\nThis is a sample project that allows for the visualization and dynamic manipulation of shaders in Unity.\n\n### Features\n\n- IMaterialShaderHandler Interface\n  - This interface serves as a generalized contract for handling different types of shaders.\n- MaterialShaderHandler Class\n  - This class acts as a base class implementing the IMatesialShaderHandler, designed for generic shader manipulations.\n\n### Usage\n\n1. Open your Unity project.\n1. Navigate to the object where you have attached a script derived from MaterialShaderHandler.\n1. Assign the material you wish to manipulate to the TargetMaterial field of the script.\n1. Run your project. You can now dynamically adjust the shader parameters via the script.\n\n### Examples\n\n#### ViewAngleTransparency\n\nThis is a sample of the ViewAngleTransparency effect using ViewAngleTransparencyHandler.cs \u0026 ViewAngleTransparency.shader.\n\n\u003chttps://github.com/s4k10503/UnityShaderCollection/assets/50241623/5a42ad0a-f1f8-4beb-8e7d-c78e08fff225\u003e\n\n#### ToonWithOutline\n\nThis is a sample of the Toon effect using ToonWithOutlineyHandler.cs \u0026 ToonWithOutline.shader.\n\n\u003chttps://github.com/s4k10503/UnityShaderCollection/assets/50241623/ecda7cb8-740a-4a1d-b62c-8f0d1e0240d4\u003e\n\n#### Linear01Depth\n\nThis is a sample that uses Linear01DepthHandler.cs and Linear01Depth.shader to visualize a linearized depth buffer.  \nThe screen displays the linearized depth value between 0 and 1 based on the near and far clips on the screen.  \nYou can adjust near and far clips from the inspector.  \n\n\u003chttps://github.com/s4k10503/UnityShaderCollection/assets/50241623/3335ccb7-2a44-4208-8520-c0713af9cd9a\u003e\n\n#### LinearEyeDepth\n\nThis is a sample that uses LinearEyeDepthHandler.cs, LinearEyeDepth.shader, and InvertedDepthColor.compute to visualize a linearized depth buffer.  \nThe screen displays the reciprocal of the actual depth value from the camera to the object.  \nClicking on the screen will display the actual depth value at that coordinate on the console.  \nYou can adjust near and far clips from the inspector.  \n\n\u003chttps://github.com/s4k10503/UnityShaderCollection/assets/50241623/593bac8c-c488-4999-9f03-61c1de554b0a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs4k10503%2Funityshadercollection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs4k10503%2Funityshadercollection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs4k10503%2Funityshadercollection/lists"}