{"repo":"otdavies/UnityChromakey","free":true,"listed":false,"github":"https://github.com/otdavies/UnityChromakey","clone":"git clone https://github.com/otdavies/UnityChromakey.git","description":"A simple, yet powerful chromakey / greenscreen solution for Unity. Designed to be used with virtual production.","language":"ShaderLab","stars":255,"topics":["greenscreen","chromakey","unity","virtualproduction","chroma","key","despill","chroma-key","green","screen"],"license":"MIT","category":"game-templates","readme_excerpt":"UnityChromakey Disclaimer: Unity has changed a lot since I originally implemented this simple shader, it may no longer work as intended in all render pipelines and conditions. A simple, yet powerful chromakey / greenscreen solution for Unity. Designed to be used with virtual production. Usage This shader works in HDRP & URP Once you've got the files in your project: Assign the chromakey shader to a material of your choice and attach that material to a quad / plane. Provide an image to the material or use a VideoPlayer to feed an image in. Why this approach? It is the most verstile. Screenspace effects are complicated, clunky and difficult to modify. Screenspace effects also cannot be placed in worldspace easily. This shader is simple, only a few hundred lines and is a single pass . It is excellent for quickly blocking out greenscreen footage or even final composites. This repository is not an entire project. You don't need all my project cruft yuck . This is simply a few files you can toss into your project and actually use . Features Standard Chromakeying: ( green screen only ). Modification would be required to work with a bluescreen (Would require Despill algorithm changes) Simple edge feathering: This is a single-pixel blur approach, but enough for 99% of shots (when do you actually need a crazy 15 pixel deep blur?!?). I will probably expand the kernel to a larger box blur in the future. Simple edge sharpening: (Sharpen up blurred edges to give a more anti-aliased feeling","default_branch":null,"files":null,"tree":[],"storefront":"/r/otdavies","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/otdavies/UnityChromakey/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}