Mapping Our Way to PBR | Writing Unity URP Code Shaders Tutorial [4/9] ✔️ 2021.3 @NedMakesGames
Mapping Our Way to PBR | Writing Unity URP Code Shaders Tutorial [4/9] ✔️ 2021.3  @NedMakesGames
Uploaded April 2023 | Updated November 2026, 14 hours ago
✔️ Tutorial tested in 2020.3 and 2021.3

Have you ever wondered how lighting and shadows work in Unity? Or, do you want to write your own shaders for the Universal Render Pipeline, but without Shader Graph? Either because you need some special feature or just prefer writing code, this tutorial has you covered.

This is the fourth part in a series about writing HLSL shaders for URP. In this video, we take a look at PBR, or physically based rendering, and implement a variety of effects aiming to simulate different materials. By the end, we will support metals, glasses, glowing objects, plastics, and more!

Tutorial series:
📰 Article version ► nedmakesgames.medium.com/6c4ae9875529
🔀 Playlist ► youtube.com/playlist?list=PLAUha41PUKAYdsStTcjJbNV-GM3F2xm9s
1️⃣ The Graphics Pipeline ► youtu.be/KVWsAL37NGw
2️⃣ Lighting and Shadows ► youtu.be/1bm0McKAh9E
3️⃣ Transparency ► youtu.be/4zw6Vq5CzLY
4️⃣ PBR Materials ► You're watching it!
5️⃣ Advanced Lighting ► Coming soon
6️⃣ Advanced URP Features ► Coming soon
7️⃣ Custom Lighting Models ► Coming soon
8️⃣ Vertex Animation ► Coming soon
9️⃣ Interacting with C# ► Coming soon

👑 Join my Patreon to access tutorials early, download project files, vote on future topics, and more! Thank you so much!
► patreon.com/nedmakesgames

🔗 Check out my website for a searchable list of tutorials!
► nedmakesgames.github.io

2️⃣ 2nd Channel ► youtube.com/nedmakesgames2
🔴 Twitch ► twitch.tv/nedmakesgames
🐦 Twitter ► twitter.com/nedmakesgames
🎮 Discord ► discordapp.com/invite/ubxSVBK
📸 Instagram ► instagram.com/nedmakesgames
👽 Reddit ► reddit.com/u/nedmakesgames
🎶 TikTok ► tiktok.com/@nedmakesgames
☕ Ko-fi ► ko-fi.com/nedmakesgames

📚 Reference scripts
► Getting started: gist.github.com/NedMakesGames/4c9bc4ae54c8c481f299538ce420b29a
► Complete: gist.github.com/NedMakesGames/78993a8b2b184a6e27ce2732f3db82a0

⏲️ Timestamps:
0:00 Intro
1:12 Physically based rendering
2:55 Debug views
3:28 Normal maps
7:07 Tangent space
10:34 Implementing normal mapping
16:20 Metalness
18:32 Specular workflow
20:27 Smoothness masks
22:11 Blend modes
25:41 Emission
27:12 Parallax occlusion
30:25 Clear coat
31:44 Toggling features
33:40 Channel packing
35:01 Wrap up and credits

🎖️ Credits, references and further reading:
• Unity Technologies: Shader Calibration Scene - assetstore.unity.com/packages/templates/tutorials/shader-calibration-scene-25422
• tonyflanagan: Thailand Girl — Animated - sketchfab.com/3d-models/thailand-girl-animated-a41f779fe45b4a04bdbf212e49b7f6b5
• Aleksei Vlasov ⚡ CRWDE: Phonograph - sketchfab.com/3d-models/phonograph-1503329e69034a0fbb360504a1c4fba9
• Helindu: The ultimate glass pack (cups and bottles) - sketchfab.com/3d-models/the-ultimate-glass-pack-cups-and-bottles-1ea37815fb0145e49487386d6924b341
• Leandro Nicolas: Snow Globe - sketchfab.com/3d-models/snow-globe-58a0f7e834c14413bb1a7e4262051180
• Shedmon: Wooden Slingshot - sketchfab.com/3d-models/wooden-slingshot-a909ff4b85a64acebe23795967aa9fe3
• Lennart Demes: Ground 054 - ambientcg.com/view?id=Ground054
• Juani Forn: Korean Ornamental Dragon - sketchfab.com/3d-models/korean-ornamental-dragon-a2b3bc23d51f46ba9b6108348f0c1098
• wallon: Audi R8 - sketchfab.com/3d-models/audi-r8-e17e438f076f4427a58d93aa779edaed
• Francesco Coldesina: Violin Burito - sketchfab.com/3d-models/violin-burito-1c5c16934893497eb2db8ec82e04e8bb
• Joey de Vries: Learn OpenGL, Parallax Mapping - learnopengl.com/Advanced-Lighting/Parallax-Mapping
• Catlike Coding: Texturing a Sphere - catlikecoding.com/unity/tutorials/procedural-meshes/uv-sphere/texturing-a-sphere/latlon-normal-map.png
• Austin Newman: Transition Woosh - https://austinmakesfilms.sellfy.store/p/MxNV/

Music provided by Epidemic Sound

#GameDev #IndieDev #Unity
Mapping Our Way to PBR | Writing Unity URP Code Shaders Tutorial [4/9] ✔️ 2021.3Mastering Tessellation Shaders in Unity! Easy LoD, Curved Triangles, Height Maps | Game Dev TutorialBlade Grass! Generate and Bake a Field Mesh Using a Compute Shader ✔️ 2020.3 | Game Dev TutorialControl Custom Renderer Features in a Script in Unity URP ✔️ 2020.3 | Game Dev TutorialKicking Players and an OK Dialog! Tactical Lizard Tamer, Unity Game Dev Log [Part 183]Colors and UVs! Tactical Lizard Tamer, Unity Game Dev Log [Part 102]Outlines on One Object in Unity URP Shader Graph with Edge Detection! ✔️ 2020.3 | Game Dev TutorialGeometry Shaders Made Easy In Unity URP! For Those New to Shaders! ✔️ 2020.3 | Game Dev TutorialErrors and Time Outs! Tactical Lizard Tamer, Unity Game Dev Log [Part 164]Reacting to UI Input! Tactical Lizard Tamer, Unity Game Dev Log [Part 176]Optimized Toon Outlines! One Texture For Depth and Normals Edge Detect ✔️ 2020.3 | Game Dev TutorialMouse Pointer in Screen and World Space #Shorts Tutorial Teaser! Mouse Picking in Unity! | Game Dev
Ned Makes Games |

Mapping Our Way to PBR | Writing Unity URP Code Shaders Tutorial [4/9] ✔️ 2021.3

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER