Graphics, Programming, Unity, Tutorial, Technology.
MyLitForwardLitPass, wrap all the normal flipping code in #if blocks. There’s a bit of trickery to hide the front face semantic when it’s not needed. It’s ugly, but it works! In MyLitShadowCasterPass, similarly wrap the call to FlipNormalBasedOnViewDir within a #if block. Each sphere has a