jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
373 stars 35 forks source link

Add the palette index to the vertex structure returned by the mesh generators #18

Closed groud closed 2 years ago

groud commented 2 years ago

The PR as promised. :)

Technically, we could likely remove the color from the structure, if we want it more lightweight, as returning the index allows retrieving the color from the palette. Let me know if you want me to make this change too.

jpaver commented 2 years ago

Apologies for the late attention on this - thanks for the submission, the change looks functionally good so I'll go ahead and merge it. Thanks again!