toMaterial method

Builds a PhysicallyBasedMaterial bound to this atlas's maps. The factors are left at their identity defaults so the textures drive the result; the caller picks alpha mode, vertex-color weight, and so on.

Implementation

PhysicallyBasedMaterial toMaterial() {
  return PhysicallyBasedMaterial(
    baseColorTexture: baseColor,
    metallicRoughnessTexture: metallicRoughness,
    normalTexture: normal,
    occlusionTexture: occlusion,
  );
}