Unity Shader Graph Basics (Part 7 - Custom Lighting)

Опубликовано: 18 Май 2026
на канале: Daniel Ilett
27,562
596

Although the Unlit shader type doesn't automatically add lighting to objects, we can implement our own lighting however we want. In this tutorial, learn how to add a Fresnel highlight to the edges of objects and create a basic cel-shaded effect which implements and augments diffuse lighting.

I'm using Unity 2022.3.0f1, although these steps should look similar in previous and subsequent Unity versions.
------------------------------------------------------------------------
👇 Download the project on GitHub: https://github.com/daniel-ilett/shade...

🍃 Get the grass texture: https://ambientcg.com/view?id=Grass001

📰 Read this tutorial in article format instead: https://danielilett.com/2024-05-07-tu...
------------------------------------------------------------------------
✨ Grab Snapshot Shaders Pro or Hologram Shaders Pro here (affiliate): https://assetstore.unity.com/publishe...

📚 Get a copy of my shader book here (affiliate): http://www.dpbolvw.net/click-10074214...
------------------------------------------------------------------------
💬 Join the Discord:   / discord  
💖 Support me on Patreon: https://www.patreon.com/danielilett?f...
☕ Or throw me a one-off coffee on Ko-fi: https://ko-fi.com/danielilett
------------------------------------------------------------------------