Open bghgary opened 7 years ago
Both ConvertToMetallic and ConvertToSpecular functions assume the input textures are of equal width and height, which is not always true.
ConvertToMetallic
ConvertToSpecular
if (info._MainTex.width != info._MetallicGlossMap.width || info._MainTex.height != info._MetallicGlossMap.height) { throw new NotImplementedException(); }
if (info._MainTex.width != info._SpecGlossMap.width || info._MainTex.height != info._SpecGlossMap.height) { throw new NotImplementedException(); }
With the latest changes, occlusion must also match metallic map dimensions when exporting without the spec gloss extension.
Both
ConvertToMetallic
andConvertToSpecular
functions assume the input textures are of equal width and height, which is not always true.