.vanaarde

Interior Fog Material RnD

Posted on November 10, 2023  •  1 minutes  • 59 words  • 

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.

Follow me

I sometimes post gamedev stuff on these social media things