HollowViewShader

HollowViewShader is a Shader specifically designed for handling hollow objects. Its key feature is the ability to display the inner surfaces of hollow objects while remaining an Opaque Shader, enabling support for depth texture output. This Shader only reveals the inner surface without showing the background, making the details of hollow objects more distinct and unaffected by the surroundings. Additionally, HollowViewShader offers a variety of adjustable parameters, allowing customization of the inner surface’s material properties to suit different scenarios.

The feature list:
1.Utilizes a lighting model consistent with Unity URP’s Lit Shader, ensuring high compatibility and support for physically-based lighting calculations.Based on Unity URP’s Lit Shader Lighting System:

2.Supports customizable inner surface material properties to adapt to various scene requirements and achieve diverse visual effects.Inner Surface Shading:

3.Provides realistic environmental reflections and accurately receives light shadows, enhancing the immersive quality of visual effects.Cubemap Reflection and Shadow Reception Support:

4.Supports rendering in opaque mode and generates accurate depth textures to meet post-processing requirements (e.g., DOF or SSAO).Opaque Mode Rendering with Depth Texture Support:

5.Removes background rendering to focus on the details of hollow objects, avoiding interference from surrounding environments.Background Removal to Highlight Hollow Object Details:

The youtube link:

The asset link:

The referece assets link: