#Intersection shader in built-in render pipeline
1 messages · Page 1 of 1 (latest)
https://www.youtube.com/watch?v=Uyw5yBFEoXo
something like this
Let's see how we can make an object glow when intersecting geometry around it. Very useful technique for shields, barriers, force fields, among other effects!
00:00 Intro
00:37 URP Setup
01:00 Scene Depth
02:26 Screen Position
03:40 Intersection
04:50 Color
06:42 Render Face
07:11 Intersection Shader - Noise Example
07:34 Intersection Example ...
btw, anwyone who answers, please ping me
You'll need access to depth texture for effect like this.
This would be a good start.
https://docs.unity3d.com/2021.3/Documentation/Manual/SL-CameraDepthTexture.html
Then you can subtract the depth texture sample value with current texel clipspace z position to show the glowing part.
Well at least that the theory XD
This video is using ShaderGraph, which also supports the built-in render pipeline, so yes.
I am pretty certain shader graph is exclusively for urp/hdrp
also it seems depth doesn't work exactly the same way in birp as it does in urp