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/dan...
📰 Read this tutorial in article format instead: danielilett.co...
🍃 Get the grass texture: ambientcg.com/...
🧱 Get the rock mesh: sketchfab.com/...
------------------------------------------------------------------------
✨ 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...
------------------------------------------------------------------------
Негізгі бет Unity Shader Graph Basics (Part 8 - Scene Intersections 1)
Пікірлер: 12