mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 12:57:06 +01:00
4392036064
Fetch_Shader() links mat_<name>.vert with the fragment shader of the material when the file is there (people animated by textures, mat_vat.vert), the common vertex.vert otherwise. The multi draw variant takes the same shader with MODEL_DRAWS. The sun shadows of such materials go through the same vertex shader with MATERIAL_SHADOW and (alpha)shadowmap.frag, with the textures and params of the material bound; in the indirect shadow pass they are drawn one by one. The depth prepass leaves them out (Prepass_Class() 0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXgG7F4L42c2F9sDSAJbT2