{"id":14960819,"url":"https://github.com/nomand/revealshader","last_synced_at":"2025-07-19T11:12:02.626Z","repository":{"id":174562108,"uuid":"135542588","full_name":"nomand/RevealShader","owner":"nomand","description":"Unity Shader experiment","archived":false,"fork":false,"pushed_at":"2018-06-21T00:56:01.000Z","size":7065,"stargazers_count":65,"open_issues_count":0,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-10T10:23:17.393Z","etag":null,"topics":["shader","shaders","unity-editor","unity-scripts","unity3d"],"latest_commit_sha":null,"homepage":null,"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/nomand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-05-31T06:38:57.000Z","updated_at":"2024-07-12T08:16:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"90e09ce0-09ba-4958-8448-80b3e3885938","html_url":"https://github.com/nomand/RevealShader","commit_stats":null,"previous_names":["nomand/revealshader"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomand%2FRevealShader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomand%2FRevealShader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomand%2FRevealShader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomand%2FRevealShader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomand","download_url":"https://codeload.github.com/nomand/RevealShader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219868059,"owners_count":16555878,"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":["shader","shaders","unity-editor","unity-scripts","unity3d"],"created_at":"2024-09-24T13:23:04.992Z","updated_at":"2024-10-10T10:23:38.951Z","avatar_url":"https://github.com/nomand.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src='/PREVIEW/01.gif'/\u003e\n\n# Reveal Shader\n\nThis is a set of shaders for Unity3D. It maps worldspace position of a gameObject and draws to a `RenderTexture` in relation to world bounds and remaps it back onto the world as a mask, allowing for various shader effects.\n\n### Features:\n* Black and White to RGB texture reveal shader\n* Transparent to Opaque RGB Texture reveal shader\n* Displacement Tesselation shader\n* Auto and Manual world bounds lookup\n* Fading over time\n* Adaptive RenderTexture aspect ratio\n* Custom inpspector\n\nThe RenderTexture mask generation and re-projection happens separately from the surface shaders, so any combination of them is possible and adding new shaders is trivial without affecting the setup.\n\n\u003cimg src='/PREVIEW/02.gif'/\u003e\n\n### Download\nDownload the `UnityPackage` from [Releases](/Releases) to get a clean import.\n\n### License\nAll code licensed under MIT License. Refer to [License.md](License.md) for full terms.\nPull requests welcome.\n\n### Usage\nEffects rely on object materials having a shader property `\"_Splat\"` to assign the `RenderTexture` and offset parameters. Objects without a compatible shader will be skipped.\nUse `Runningtap/Reveal/B\u0026W2RGB` or `.../A2RGB` shaders on paintable objects.\n\nAdd [`Painter.cs`](/Assets/Runningtap/Reveal/Scripts/Painter.cs) to the scene.\n\nPick `Lookup Mode`.\n   * Auto will iterate through all the world objects to calculate bounds. Use this for quick preview.\n   * Manual will enable a box collider to set bounds manually. Use this for builds and complex scenes. BoxCollider will be turned off on start to disable physics.\n\nPick `SplatMap Resolution`\n   * **32**x - **2048**x, more resolutions can be added in the `Resolution` enum.\n\n`Use Relative` enables non-power of two resolution for the `RenderTexture`, based on world bounds to avoid overly stretched mask pixels. This will be calculated automatically, keeping the longest edge to selected resolution.\n\n`Fade Over Time` allows for non-permanent mask drawing - stroke fades from oldest pixel. `Fade Speed` will be available if selected.\n\nAdd a parent `gameObject` containing all the paintable objects to `World`\n\nMake sure `RevealRTX` is plugged into the Render Texture Shader.\n\n`Brush` is a gameObject that will 'draw' the mask onto `RenderTexture`. Only XZ coordinates are considered.\n\n`Brush Size` will change the size of the area drawn onto the `RenderTexture`.\n\n`Brush Strength` determines stroke opacity.\n\n`Splat Map Preview` will display current `RenderTexture` resolution and texture in play mode.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomand%2Frevealshader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomand%2Frevealshader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomand%2Frevealshader/lists"}