Interior Fog Material RnD
Experimenting with transparent material to create cheap interior fog effect
This interior fog was quite a fun / interesting effect! First step was to render the capsule geometry backface is rendered to a custom depth and stencil buffer as opaque geometry. The transparent glass material can now combine the custom depth and actual depth buffers to compute a depth falloff that respects the depth and shape of the capsule.