michael-fadely / sadx-dc-lighting

Sonic Adventure 1 palette lighting for SADX PC.
MIT License
39 stars 3 forks source link

Generate palette atlas #33

Closed michael-fadely closed 7 years ago

michael-fadely commented 7 years ago

This would still allow for the palette mix and match system in place to function, but the lookups would happen with a single contiguous texture. Although probably negligible with the other bottlenecks that currently exist, it would eradicate the overhead of binding different palette textures multiple times per frame. The shader would simply need to be given access to the palette indices that are currently used exclusively in the C++ code.