Alex Ameye's work reconstructs UVs for the cross-section.
Alex Ameye presented a cool shader that allows you to cut meshes by planes and spheres with reconstructed UVs for the cross-section.
In this style, it creates a magical effect that you sometimes see in games when the character walks behind an object in the foreground.
X/Twitter user mikialex explains the process this way:
"Draw two passes(front only and back only) with surface clipping to extract the cross section in screen space, draw another back face only pass, if the pixel in the cross section, then do ray match from the back face to camera to get world position to recover UV," which the creator said to be true.
Ameye is an experienced artist and developer, and you can see his tutorial on making a stylized water shader in Unity, a guide on how to use the section map to render clean edge detection outlines, and his visual debug tool for stencil buffer on X/Twitter or Reddit.
Join our 80 Level Talent platform and our Discord server, follow us on Instagram, Twitter, LinkedIn, Telegram, TikTok, and Threads, where we share breakdowns, the latest news, awesome artworks, and more.