Skip to content

GLTF Converter needs support for AO value in MetallicRoughnessMap #1412

@yaRnMcDonuts

Description

@yaRnMcDonuts

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions