PrismaticFlower / shaderpatch

Improved shaders (and fun stuff for modders) for Star Wars Battlefront II (2005) - Incompatible with Classic Collection
MIT License
39 stars 2 forks source link

Update shader metadata to use enums for rendertypes instead of strings. #23

Closed PrismaticFlower closed 5 years ago

PrismaticFlower commented 6 years ago

Pretty simple logic here, all the stock rendertypes are effectively set in stone and it's faster to compare an int than a string. Comparisons between rendertypes has hardly been a bottleneck but nonetheless as this is (in theory) purely a backend change it'd be a nice thing to do at some point.

PrismaticFlower commented 5 years ago

Done in v0.10.0 branch!