Get real, active and permanent YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

Unity Shader Graph Basics (Part 8 - Scene Intersections 1)

Follow
Daniel Ilett

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 screenspace.

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/danielilett/shade...
Read this tutorial in article format instead: https://danielilett.com/20240521tu...

Get the grass texture: https://ambientcg.com/view?id=Grass001
Get the rock mesh: https://sketchfab.com/3dmodels/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/click10074214...

Join the Discord:   / discord  
Support me on Patreon: https://www.patreon.com/danielilett?f...
☕ Or throw me a oneoff coffee on Kofi: https://kofi.com/danielilett

posted by Rabuttinoht