Ploaj / SSBHLib

A library for dealing with SSBH rendering format
30 stars 18 forks source link

add a check for srgb vs linear for different textures types (col, emi, prm, etc) #91

Open ScanMountGoat opened 2 years ago

ScanMountGoat commented 2 years ago

Saving a col texture as unorm or a prm texture as srgb is rarely intentional and should be strongly discouraged with some sort of warning. This could be done as a popup and/or a warning in the material editor.

ScanMountGoat commented 2 years ago

This requires some sort of method that given a single numatb and list of nutexb files returns a list of invalid texture format usages. This same method can be applied when loading a workspace as a dialog and as an error in the material editor.