API

Function enableMaterialTracking

  • Enable automatic dirty tracking on a PBR or Standard material. After calling this, any UBO-backed property mutation marks the source material UBO dirty.

    Parameters

    • material: Material & { specularPower?: unknown }

    Returns Promise<void>