Question by
guiguig5999 · 5 days ago ·
shadershaderscrosssection
2D Unlit Cross-Section Shader?
Hi, I've been trying to find a way to get a two-dimensional cross section of a mesh without any fancy shading.
I guess the best way to do this would be to cull the whole model (front and back) except for a thin slice around 0 on the Z axis, and then somehow fill the inside of the remaining mesh with a color. I made a C# script that does this, but it was very slow due to it calculating colliders on every GameObject
for every pixel.
I was hoping to accomplish this in Shader Graph since I don't know how to program in hlsl or other shader related languages.
Comment
Your answer
