Closed rdpeake closed 3 years ago
suggest changing https://github.com/facebookincubator/FBX2glTF/blob/4b501431fec2fb0049d24edde8ff400d408ce7e6/src/gltf/Raw2Gltf.cpp#L289
with
const float occlusion = (*pixels[0])[0] * (hasOcclusionMap ? 1 : 0);
or use the props object if that is supported for occlusion in place of the ending 0
This turned out to be invalid due to a difference in what input files i was actually using
if you supply a model which does not have an occlusion map, but do have met and rough - the combined result at https://github.com/facebookincubator/FBX2glTF/blob/4b501431fec2fb0049d24edde8ff400d408ce7e6/src/gltf/Raw2Gltf.cpp#L280 seems to produce an invalid output for the ao_met_rough file