Add automatic depth/shadow shaders for arbitrary materials #14901
Open
Description
What problem does this solve or what need does it fill?
Allow depth to be correctly calculated for all materials, including StandardMaterials with AlphaMode::Mask and materials with custom vertex/fragment shaders.
Originally attempted in #5896, but implementation stalled. See that PR for suggested approach and reference.