Impossible Geometry with Stencil Shaders in Unity URP

Games like Antichamber feature impossible geometry where multiple objects seemingly inhabit the same physical space, but only appear when viewed from certain angles. We can recreate the effect in Unity using stencil shaders and Universal Render Pipeline’s special Renderer Features functionality! ------------ 👇 Download the project on GitHub: 📝 Read the article version here: ------------ 💖 Huge thanks to my Patreon supporters for January 2022, especially: Gemma Louise Ilett, Morrie, Pisit Praiwattana, Jack Dixon, and Underwater SUN. ------------ 🎮 This project uses Unity and URP , but it should work with other versions. 📦 This tutorial uses the ’Boat Lowpoly’ model by RacKrab on Sketchfab: ------------ Ԃ
Back to Top