/CrossSectionShader

URP shader for Unity that shows a cross section of an object using clipping plane

Primary LanguageC#MIT LicenseMIT

Cross Section Shader for URP

cross-section-shader

Cross Section Shader shader facilitates the visualization of an object's cross-section by incorporating a clipping plane. This shader is specifically designed to provide a detailed and dynamic representation of the internal structure of an object.

The project includes a shader graph and corresponding material. Unity version is 2021.3.20f1. To run the demo install TextMeshPro and its additional files and set Universal Rendering Pipeline as your rendering pipeline. The ClippingPlane script is attached to a plane object, dynamically modifying the material at runtime to synchronize with the position and rotation of the plane.

The skull model was taken from: https://free3d.com/3d-model/skull-v3--785914.html

EB, 2023