-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Now that we have added support for packing the AmbientOcclusion value into the Red channel of the MetallicRoughnessMap,
we need to update the GLTF converter so that auto-generated materials utilize this feature.
Currently, whenever the GLTF converter detects the AO packed into the MR map, it will just define the MR map to both material params: "MetallicRoughnessMap" (as expected) and also to "LightMap" (and then it also sets the boolean LightMapAsAoMap to true)
This resulted in an extra texture read from the light map in the PBR shader (which defeats the purpose of packing it into the MR map), which is why PR #1403 was necessary to make it so AO is read directly from the red channel of the MR Map
Now we need to update the converter to instead set "AoPackedInMrMap" to true whenever the GLTF file detects an AO map packed in the MR Map.