I’m fairly new to shaders, and normally I can get by with just tinkering until I get an effect I want, but have been stumped.
I have a ground plane and want to make a shader/material on a sphere that, when the sphere intersects with the ground, it will change the color of the ground at the intersection. As in, when the sphere touches the plane, there’s a colored circle on the plane (not just an outline of the intersection). I’ve made a basic intersection/depth shader ala Brackeys tutorial on the subject, but only gives the outline of the intersection. On top of that, my game has a topdown/slightly angled camera, and that seems to mess with the effect quite a bit.
On the left is the effect I can do with depth stuff, on the right is the effect I want to achieve. (I faked it with a circle sprite)
Any help is greatly appreciated!
Thanks!