Many shader effects rely on detecting the intersection between the mesh being rendered and other objects in the scene. In this tutorial, I break down exactly how to detect those intersections and use the technique to create a basic ambient occlusion effect in screen-space.
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-05-21-tu...
🍃 Get the grass texture: https://ambientcg.com/view?id=Grass001
🧱 Get the rock mesh: https://sketchfab.com/3d-models/rocks...
------------------------------------------------------------------------
✨ 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 8 - Scene Intersections 1) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Ilett 21 Mai 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 4,647 Mal angesehen und es wurde von 187 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!