mirror of
https://github.com/vladtrc/iw4L
synced 2026-10-26 02:11:39 -04:00
a690ea55c0
MW2 trees (Favela's oaks: mc/mtl_tree_oak_*) cast their sun shadow only through a separate, never-drawn mesh (mc/mtl_tree_shadow_caster). Its shadow-only material was kept out of the static model colour material keys, and the sun shadow pass looked its material up in those same keys, so the surface was dropped and the trees cast nothing. What stayed was the lightmap's sun mask: MW2's shader forces shadow where the mask is 0, which showed as blocky dark rectangles on otherwise sunlit ground under the trees. Shadow-only materials are now listed in their own key, read by the sun shadow pass only; the colour pass still never sees them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>