summaryrefslogtreecommitdiff
path: root/src/gpu/effects/post_process_helper.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-06 07:09:40 +0100
committerskal <pascal.massimino@gmail.com>2026-02-06 07:09:40 +0100
commit1ec5d1ae48d1dd3290992ba63a8ec581af02b9dd (patch)
tree3545f40ac2fafaf3471063902f3a627b4ab36d8d /src/gpu/effects/post_process_helper.h
parent96378529abe1f53e47b733d1d17d589d7b3c5424 (diff)
fix(assets): Auto-generate smooth normals for OBJ meshes if missing
Updated asset_packer to detect missing normals in OBJ files. Implemented a 2-pass parser: 1. Read geometry and connectivity. 2. If normals are missing: - Compute face normals using cross product. - Accumulate and average normals per vertex (Smooth Shading). - Update face indices to map normals 1:1 with positions. This fixes the 'no shading' issue for assets like dodecahedron.obj which lack normals.
Diffstat (limited to 'src/gpu/effects/post_process_helper.h')
0 files changed, 0 insertions, 0 deletions