mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 09:27:10 +01:00
8f64a27ba6
Legacy scenery triangles (e.g. pkp/szafa-przek1.inc) are often authored with 0 0 0 normals. normalize() of a zero vector yields NaN in the shaders, and since gl46 ambient/envmap/sky-occlusion terms all depend on the normal, such surfaces render completely black. Fill missing normals with the triangle face normal on text import and when loading binary terrain caches.