This Unity Shader Graph Trick Fakes 3D Corridors and Pipes!
Sunny Valley Studio
0:00 / 0:00
This Unity Shader Graph Trick Fakes 3D Corridors and Pipes!
7 943 просмотра · 1 месяц назад
Sunny Valley Studio
46,7 тыс. подписчиков
7 943 просмотра · 1 месяц назад
Learn how to fake 3D corridors, rooms, and pipes inside a simple flat quad using custom HLSL and Unity Shader Graph!
This interior mapping / parallax illusion allows you to create non-playable spaces without adding a single extra vertex to your scene, saving massive rendering performance.
📦 Download the FREE HLSL Code & Project Files:
/ fake-3d-space-in-165658588
---------------------------------------------------
⚙️ WHAT YOU WILL LEARN:
How ray tracing on a flat quad fakes 3D geometry depth
Setting up custom HLSL functions in Unity Shader Graph
Creating a Fake Box Corridor with custom room scale & offsets
Implementing room-space lighting & scene main light support
Adding depth fog to sell the visual illusion
Faking circular 3D tubes using Alpha Clipping & Masks
····· Get in touch ···············································································
Learn more from my courses:
https://courses.sunnyvalleystudio.com/
𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱!
/ discord
𝗣𝗟𝗘𝗔𝗦𝗘 support the channel:
/ sunnyvalleystudio
---------------------------------------------------
⏱️ CHAPTERS:
00:00 - Introduction & The Fake 3D Space Illusion
00:25 - How the Custom HLSL Code Works
02:05 - Setting Up Shader Graph & Parameters
03:13 - Fake 3D Corridor shader graph
04:17 - Testing Fake 3D Corridor
05:14 - Adding Textures & UV Tiling
05:41 - Adding Light calculations
06:34 - Faking depth with fog
07:47 - Pro Tip: Blend in using geometry
08:00 - Fake Pipe / Tube effect
08:41 - Final Showcase
---------------------------------------------------
🔔 Subscribe for more Unity game development & shader tutorials!
#Unity #ShaderGraph #HLSL #GameDev #IndieDev