createUbershaderMaterialInstance abstract method

Future<MaterialInstance> createUbershaderMaterialInstance({
  1. bool doubleSided = false,
  2. bool unlit = false,
  3. bool hasVertexColors = false,
  4. bool hasBaseColorTexture = false,
  5. bool hasNormalTexture = false,
  6. bool hasOcclusionTexture = false,
  7. bool hasEmissiveTexture = false,
  8. bool useSpecularGlossiness = false,
  9. AlphaMode alphaMode = AlphaMode.OPAQUE,
  10. bool enableDiagnostics = false,
  11. bool hasMetallicRoughnessTexture = false,
  12. int metallicRoughnessUV = 0,
  13. int baseColorUV = 0,
  14. bool hasClearCoatTexture = false,
  15. int clearCoatUV = 0,
  16. bool hasClearCoatRoughnessTexture = false,
  17. int clearCoatRoughnessUV = 0,
  18. bool hasClearCoatNormalTexture = false,
  19. int clearCoatNormalUV = 0,
  20. bool hasClearCoat = false,
  21. bool hasTransmission = false,
  22. bool hasTextureTransforms = false,
  23. int emissiveUV = 0,
  24. int aoUV = 0,
  25. int normalUV = 0,
  26. bool hasTransmissionTexture = false,
  27. int transmissionUV = 0,
  28. bool hasSheenColorTexture = false,
  29. int sheenColorUV = 0,
  30. bool hasSheenRoughnessTexture = false,
  31. int sheenRoughnessUV = 0,
  32. bool hasVolumeThicknessTexture = false,
  33. int volumeThicknessUV = 0,
  34. bool hasSheen = false,
  35. bool hasIOR = false,
  36. bool hasVolume = false,
})

Implementation

Future<MaterialInstance> createUbershaderMaterialInstance({
  bool doubleSided = false,
  bool unlit = false,
  bool hasVertexColors = false,
  bool hasBaseColorTexture = false,
  bool hasNormalTexture = false,
  bool hasOcclusionTexture = false,
  bool hasEmissiveTexture = false,
  bool useSpecularGlossiness = false,
  AlphaMode alphaMode = AlphaMode.OPAQUE,
  bool enableDiagnostics = false,
  bool hasMetallicRoughnessTexture = false,
  int metallicRoughnessUV = 0,
  int baseColorUV = 0,
  bool hasClearCoatTexture = false,
  int clearCoatUV = 0,
  bool hasClearCoatRoughnessTexture = false,
  int clearCoatRoughnessUV = 0,
  bool hasClearCoatNormalTexture = false,
  int clearCoatNormalUV = 0,
  bool hasClearCoat = false,
  bool hasTransmission = false,
  bool hasTextureTransforms = false,
  int emissiveUV = 0,
  int aoUV = 0,
  int normalUV = 0,
  bool hasTransmissionTexture = false,
  int transmissionUV = 0,
  bool hasSheenColorTexture = false,
  int sheenColorUV = 0,
  bool hasSheenRoughnessTexture = false,
  int sheenRoughnessUV = 0,
  bool hasVolumeThicknessTexture = false,
  int volumeThicknessUV = 0,
  bool hasSheen = false,
  bool hasIOR = false,
  bool hasVolume = false,
});