Daniel Ilett | Unity Shader Graph Basics (Part 8 - Scene Intersections 1) @danielilett | Uploaded May 2024 | Updated October 2024, 1 hour ago.
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: github.com/daniel-ilett/shader-graph-basics-2022-3
๐ฐ Read this tutorial in article format instead: danielilett.com/2024-05-21-tut7-12-intro-to-shader-graph-part-8
๐ Get the grass texture: ambientcg.com/view?id=Grass001
๐งฑ Get the rock mesh: sketchfab.com/3d-models/rocks-3c14c9eb84a94cd1a353849607ea2550
------------------------------------------------------------------------
โจ Grab Snapshot Shaders Pro or Hologram Shaders Pro here (affiliate): assetstore.unity.com/publishers/42768?aid=1101lfDLn
๐ Get a copy of my shader book here (affiliate): dpbolvw.net/click-100742141-12898971?url=https%3A%2F%2Flink.springer.com%2Fbook%2F10.1007%2F978-1-4842-8652-4
------------------------------------------------------------------------
๐ฌ Join the Discord: discord.gg/tPQEUwPpb3
๐ Support me on Patreon: patreon.com/danielilett?fan_landing=true
โ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
------------------------------------------------------------------------
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: github.com/daniel-ilett/shader-graph-basics-2022-3
๐ฐ Read this tutorial in article format instead: danielilett.com/2024-05-21-tut7-12-intro-to-shader-graph-part-8
๐ Get the grass texture: ambientcg.com/view?id=Grass001
๐งฑ Get the rock mesh: sketchfab.com/3d-models/rocks-3c14c9eb84a94cd1a353849607ea2550
------------------------------------------------------------------------
โจ Grab Snapshot Shaders Pro or Hologram Shaders Pro here (affiliate): assetstore.unity.com/publishers/42768?aid=1101lfDLn
๐ Get a copy of my shader book here (affiliate): dpbolvw.net/click-100742141-12898971?url=https%3A%2F%2Flink.springer.com%2Fbook%2F10.1007%2F978-1-4842-8652-4
------------------------------------------------------------------------
๐ฌ Join the Discord: discord.gg/tPQEUwPpb3
๐ Support me on Patreon: patreon.com/danielilett?fan_landing=true
โ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
------------------------------------------------------------------------