ultimate-research / ssbh_lib

Reading and writing SSBH file formats in Rust
MIT License
8 stars 3 forks source link

improved shdr_data module #148

Open ScanMountGoat opened 1 year ago

ScanMountGoat commented 1 year ago

There are a few goals for this module. This should cover the necessary functionality for https://github.com/ScanMountGoat/Smush-Material-Research. Perfectly rebuilding the shader binaries is not a goal at this time. The large amount of header and footer information makes it unrealistic to research all of it.

ScanMountGoat commented 1 year ago

The easiest is probably to create functions that take a Shdr from ssbh_lib as input and return some data. The returned data could be higher level or lower level representations of the binary data depending on the use case. Creating conversion APIs similar to the other ssbh_data types won't work well due to all the missing fields. This module is a niche use case, so the API likely won't be very stable over time.