jalberse / shimmer

Physically based rendering in Rust
Apache License 2.0
33 stars 0 forks source link

37 triangular mesh #39

Closed jalberse closed 7 months ago

jalberse commented 7 months ago

Adds triangular mesh support. Tested with a triangulated spherical mesh in main; it behaves how I would expect from testing so far.

More can be done such as storing only an offset into a single mesh array, which would save some space in each triangle, but for now a pointer will be okay.

Logic around constructing a mesh from files can be completed later in a scene parser and scene builder work package.