CommunityDragon / CDTB

A library containing everything to extract files from client files.
GNU Lesser General Public License v3.0
119 stars 33 forks source link

Add support for .metal shader file guessing #42

Closed Morilli closed 3 years ago

Morilli commented 3 years ago

Also modified the logic to support .ps_3_0 and .vs_3_0 as well

stelar7 commented 3 years ago

im guessing its refering to the shader version, and in that case it prolly goes beyond 3, so a generic check for all versions from 0.0 to 10.10 would be better imo

Morilli commented 3 years ago

Hm well the game doesn't use any that are beyond version 3, but the official (i think?) documentation lists up to version 5: https://developer.download.nvidia.com/cg/index_profiles.html I guess we could bump the number to 5, but I don't really see the point currently as there are zero hits for that, and other parts of the code likely should be adjusted as well in that case.