I have a simple “Cut” shader effect.
But the object looks hollow.
What I want is pretty much to make it look like it’s full.
This effect will be used in a Top Down game when the player goes inside a building and it will be “Cut”, so the player can see.
I don’t want to use a texture, just a solid colour is fine with me.
Here is the clipping plane material. It is not final but I want to get it working on this simple “Cut” shader before implementing it on my final material.
Hello @bostonDownamics
I was wondering if you found a solution to this problem, as I’m facing exactly the same. The comunity could truly benefit from that, as there seems to be very scarce online material on this topic.
@User-b2cce32ade,
This material should give you your answer:
The downside of this method is that the interior must be emissive.
I can see another version of this where you have two separate objects- a shell and an interior (the same as the shell but with reversed normals), and have the interior material set to unlit. This would allow you more direct control over the interior style without affecting the original shell look.
To add an additional layer to this, on the interior mesh, you could dot the atmostpheric light direction with the mesh forward vector (get from blueprint or do some math) to get the general brightness based on your scene’s directional light. This should theoretically help it look more realistic based on light direction, though it still wouldn’t be able to take in the shadows from other objects (maybe there’s a way to do this through HLSL, if there is I don’t know it.)
1 Like