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: https://github.com/daniel-ilett/shade...
📰 Read this tutorial in article format instead: https://danielilett.com/2024-07-09-tu...
💡 My CustomLighting.hlsl: https://github.com/daniel-ilett/shade...
📦 Alex Lindman's CustomLighting.hlsl: https://github.com/Unity-Technologies...
------------------------------------------------------------------------
✨ 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
------------------------------------------------------------------------
Auf dieser Seite können Sie das Online-Video Unity Shader Graph Basics (Part 10 - Custom Functions) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Ilett 09 Juli 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 20,259 Mal angesehen und es wurde von 538 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!