Unity only provides a Main Light Direction node for custom lighting. If we want more fine-tuned control and support for color and additional lights, we'll need to delve into the world of ✨custom HLSL code✨. With Shader Graph's Custom Function node, we unlock plenty of new opportunities!
I'm using Unity 2022.3.0f1, although these steps should look similar in previous and subsequent Unity versions.
------------------------------------------------------------------------
👇 Download the project on GitHub: github.com/dan...
📰 Read this tutorial in article format instead: danielilett.co...
💡 My CustomLighting.hlsl: github.com/dan...
📦 Alex Lindman's CustomLighting.hlsl: github.com/Uni...
------------------------------------------------------------------------
✨ Grab Snapshot Shaders Pro or Hologram Shaders Pro here (affiliate): assetstore.uni...
📚 Get a copy of my shader book here (affiliate): www.dpbolvw.net...
------------------------------------------------------------------------
💬 Join the Discord: / discord
💖 Support me on Patreon: www.patreon.co...
☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/dani...
------------------------------------------------------------------------
6 сен 2024