API

Function enableMaterialUvTransform

  • Opt a PBR or Standard material into per-texture UV transforms ahead of need.

    Call this before the first build for hand-created materials that use uScale/vScale/uAng/uOffset/vOffset. Standard transforms are sampled when the renderable is built; later changes require rebuildMaterial. PBR transforms can be refreshed with markMaterialUboDirty. glTF PBR materials are enabled automatically by the loader.

    Returns true before the material's first build. Returns false after its feature set was compiled, when applying the opt-in requires rebuildMaterial.

    Parameters

    Returns boolean

  • Opt a PBR or Standard material into per-texture UV transforms ahead of need.

    Call this before the first build for hand-created materials that use uScale/vScale/uAng/uOffset/vOffset. Standard transforms are sampled when the renderable is built; later changes require rebuildMaterial. PBR transforms can be refreshed with markMaterialUboDirty. glTF PBR materials are enabled automatically by the loader.

    Returns true before the material's first build. Returns false after its feature set was compiled, when applying the opt-in requires rebuildMaterial.

    Parameters

    Returns boolean