18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 09:27:10 +01:00
Files
maszyna/scene
pwarszawski 8f64a27ba6 Derive flat normals for scenery shapes with zero normals
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.
2026-11-21 11:56:58 +01:00
..