#Just an update to this maybe I can use a
1 messages · Page 1 of 1 (latest)
Summary Another cool effect is to make the surface disappear when it’s beyond a certain plane.
To follow this tutorial, it’s best to know how surface shaders work - you can find a tutorial how they work here.
Define Plane We start by creating a new C# script which will define the plane we use later and pass it to the shader. It has a material as...
Yes but it should be just the cross section
Then you should be able to extract the interesting code from that link. Basically you want to render the blackface of triangles with constant color unaffected by light
Are you using an SRP ? In that case, you can grab my cross section shadergraph here, that also allows to apply maps to the "slice" plane
I tried it, but it looks like culling interferes with the shader.
Uuuh, I have no idea of what I'm looking at here 😄
Its an orthographic view of the object with the cross section shader, but i have to cull the back of it since it should just be the sliced part. Unfortunately it looks like it messes up the shader effect.