Compare commits

..
Author SHA1 Message Date
HanifKoh 8105ab93c6 Merge branch 'main' into hanif/obj-quad-uv 2026-09-30 01:06:25 +08:00
Hanif Koh 6da5e24c56 Give OBJ Quad and Flipped Faces the Texture Coordinates of Their Own Corners
load_obj emits the second triangle of a quad from corners 0, 2 and 3,
but read its texture coordinates from corners 0, 1 and 2, so half of
every textured quad sampled the wrong part of the texture. The corner
indices are now passed down to where the coordinates are read.

A mesh with inward-facing triangles is flipped after loading, which
swaps corners 1 and 2 of every face. The texture coordinates were left
as they were. They are now swapped along with the corners.
2026-09-29 12:26:26 +08:00

Diff Content Not Available