mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 14:07:06 +01:00
af7db0db43
As in the OpenGL 4.6 renderer: Fetch_Shader() takes shaders/vk14/mat_<name>.vert when the file is there (the animals and people animated by textures, mat_vat.vert), vertex.vert otherwise; the multi draw variant is made of the same one. Such a material gets the programs of its sun shadows with it: its vertex shader with MATERIAL_SHADOW and (alpha)shadowmap.frag, drawn with all its textures and its params, also from the gpu culling (the draws of one such material go together). The cube maps of the lamps keep their programs, the depth prepass leaves these materials out (prepass class 0). The scene block carries the rotation and the place of the camera of each sun cascade and headlight map (inv_view, camera_hi, camera_lo, gl::set_camera_place()), and those of the view in the colour pass, so the shaders see a model in the world the same way in every pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXgG7F4L42c2F9sDSAJbT2