A Cool Method for Slicing Meshes in Unity

Mirza Beig showed how to cut any mesh with just two lines of code.

Mirza Beig, a Technical Artist and an expert on all-things Unity whose incredible animations and shaders were featured earlier here on 80 Level, continues sharing educational content designed to help aspiring Unity Developers learn more about the engine's full potential.

This time, the creator shared a series of Twitter posts demonstrating a neat method for cutting any mesh in Unity using just two lines of High-Level Shader Language (HLSL) code. According to the author, the technique allows mesh back faces to be "stencil masked with the plane to 'project' a texture as the clipped surface".

You can check out more of Mirza's projects here. Also, don't forget to join our 80 Level Talent platform and our Telegram channel, follow us on Instagram and Twitter, where we share breakdowns, the latest news, awesome artworks, and more.

Join discussion

Comments 0

    You might also like

    We need your consent

    We use cookies on this website to make your browsing experience better. By using the site you agree to our use of cookies.Learn more