{"id":13664017,"url":"https://github.com/simeonradivoev/ComputeStochasticReflections","last_synced_at":"2025-04-25T20:32:06.549Z","repository":{"id":40995658,"uuid":"153815460","full_name":"simeonradivoev/ComputeStochasticReflections","owner":"simeonradivoev","description":"Compute Stochastic Screen Space Reflections for unity post processing","archived":false,"fork":false,"pushed_at":"2024-09-27T12:49:43.000Z","size":2734,"stargazers_count":293,"open_issues_count":5,"forks_count":27,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-06T19:13:16.683Z","etag":null,"topics":["compute-shader","effect","graphics","hlsl","image-effect","postprocessing","reflection","shader","unity","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/simeonradivoev.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":{"ko_fi":"simeonradivoev"}},"created_at":"2018-10-19T17:00:13.000Z","updated_at":"2025-04-02T10:05:28.000Z","dependencies_parsed_at":"2024-08-02T05:20:36.478Z","dependency_job_id":"996e2057-b43e-4a74-8746-729f78e75812","html_url":"https://github.com/simeonradivoev/ComputeStochasticReflections","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"7ad0fbbfea9eed75185f353312eb9f02c66c55e2"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeonradivoev%2FComputeStochasticReflections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeonradivoev%2FComputeStochasticReflections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeonradivoev%2FComputeStochasticReflections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeonradivoev%2FComputeStochasticReflections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simeonradivoev","download_url":"https://codeload.github.com/simeonradivoev/ComputeStochasticReflections/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250890663,"owners_count":21503531,"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":["compute-shader","effect","graphics","hlsl","image-effect","postprocessing","reflection","shader","unity","unity3d"],"created_at":"2024-08-02T05:02:43.926Z","updated_at":"2025-04-25T20:32:01.538Z","avatar_url":"https://github.com/simeonradivoev.png","language":"C#","funding_links":["https://ko-fi.com/simeonradivoev"],"categories":["C\\#"],"sub_categories":[],"readme":"# Compute Stochastic Screen Space Reflections\nCompute Stochastic Screen Space Reflections for Unity post processing. Utilizing shared memory for performance.\nShould be mostly production ready, except for a few Hierarchical Z-depth casting artifacts.\n\n# Contents\n* [Features](#Features)\n* [Requirements](#Requirements)\n* [Installation](#Installation)\n* [Usage](#Usage)\n* [References](#References)\n* [Showcase](#Showcase)\n* [Real life usage](#Real-life-usage)\n* [Screenshots](#Screenshots)\n* [Before and After](#Before-and-After)\n* [Performance](#Performance)\n\n# Features\n* Hierarchical Z-depth casting\n* Temporal reflection depth reprojection\n* Median Filtering for extra denoising\n* Reflection Color Mipmap Pyramid\n* Raycast and resolve pass downsampling\n* Frame reprojection for faking multiple bounces\n* Specular elongation\n* Contact hardening\n\n# Requirements\n* Works only with deferred rendering\n* Compute shader capable video card\n* [Unity Post Processing v2](https://github.com/Unity-Technologies/PostProcessing)\n* Tested with Unity 2018.2\n\n# Installation\nIn a unity project go to your `Packages` folder. Open `manifest.json` and add into the dependencies the following line: \n\n```\n\"com.simeonradivoev.stochastic-reflections\": \"https://github.com/simeonradivoev/ComputeStochasticReflections.git\"\n```\n\nIt should look something like this:\n\n```\n{\n    \"dependencies\": {\n        \"com.unity.ugui\": \"1.0.0\",\n        \"com.unity.modules.ui\": \"1.0.0\",\n        \"com.simeonradivoev.stochastic-reflections\": \"https://github.com/simeonradivoev/ComputeStochasticReflections.git\",\n    } \n}\n```\n\n# Usage\nJust add a new effect in a post processing profile under `Custom/Stochastic Screen Space Reflections`\nFor VR use the test branch called `StereoRendering`. It currently only supports multi pass rendering.\n\n# References\n* Rewritten from [Xerxes1138](https://github.com/Xerxes1138/StochasticScreenSpaceReflection)\n* Based mainly on [Tomasz Stachowiak and Yasin Uludag, Siggraph15](https://www.ea.com/frostbite/news/stochastic-screen-space-reflections)\n\n# Showcase\n[![](https://img.youtube.com/vi/9D0kRA7vSCQ/default.jpg)](https://www.youtube.com/watch?v=9D0kRA7vSCQ)\n[![](https://img.youtube.com/vi/LuLO25cPwyI/default.jpg)](https://www.youtube.com/watch?v=LuLO25cPwyI)\n\n# Real life usage\n[![](https://img.youtube.com/vi/MtAYmqzJM5g/default.jpg)](https://www.youtube.com/watch?v=MtAYmqzJM5g)\n\n# Screenshots\n\n![](https://simeonradivoev.com/assets/img/sOaJn-um7v-1371.png)\n![](https://simeonradivoev.com/assets/img/eg_SptG5HM-1375.png)\n\n# Before and After\n![Before](https://simeonradivoev.com/assets/img/ZV3xQ7PYAB-1373.png) ![After](https://simeonradivoev.com/assets/img/2OiSyBw8dJ-1373.png)\n\n# Performance\nTested on a GTX 1070 at 1080p\n\n* Highest Quality, High Quality Blur\n\t* Raycasting: 1.4 ms\n\t* Blur: 0.73 ms\n\t* Temporal: 0.67 ms\n\t* Resolve: 0.55 ms\n\t* **Total + Others: 4.15 ms**\n\n* Raycast and Resolved downsampled, Low Quality Blur\n\t* Raycasting: 0.5 ms\n\t* Temporal: 0.19 ms\n\t* Resolve: 0.19 ms\n\t* **Total + Others: 1.7 ms**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeonradivoev%2FComputeStochasticReflections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimeonradivoev%2FComputeStochasticReflections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeonradivoev%2FComputeStochasticReflections/lists"}