createUbershaderMaterialInstance abstract method
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 = -1,
- int baseColorUV = -1,
- bool hasClearCoatTexture = false,
- int clearCoatUV = -1,
- bool hasClearCoatRoughnessTexture = false,
- int clearCoatRoughnessUV = -1,
- bool hasClearCoatNormalTexture = false,
- int clearCoatNormalUV = -1,
- bool hasClearCoat = false,
- bool hasTransmission = false,
- bool hasTextureTransforms = false,
- int emissiveUV = -1,
- int aoUV = -1,
- int normalUV = -1,
- bool hasTransmissionTexture = false,
- int transmissionUV = -1,
- bool hasSheenColorTexture = false,
- int sheenColorUV = -1,
- bool hasSheenRoughnessTexture = false,
- int sheenRoughnessUV = -1,
- bool hasVolumeThicknessTexture = false,
- int volumeThicknessUV = -1,
- bool hasSheen = false,
- bool hasIOR = false,
- 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 = -1,
int baseColorUV = -1,
bool hasClearCoatTexture = false,
int clearCoatUV = -1,
bool hasClearCoatRoughnessTexture = false,
int clearCoatRoughnessUV = -1,
bool hasClearCoatNormalTexture = false,
int clearCoatNormalUV = -1,
bool hasClearCoat = false,
bool hasTransmission = false,
bool hasTextureTransforms = false,
int emissiveUV = -1,
int aoUV = -1,
int normalUV = -1,
bool hasTransmissionTexture = false,
int transmissionUV = -1,
bool hasSheenColorTexture = false,
int sheenColorUV = -1,
bool hasSheenRoughnessTexture = false,
int sheenRoughnessUV = -1,
bool hasVolumeThicknessTexture = false,
int volumeThicknessUV = -1,
bool hasSheen = false,
bool hasIOR = false,
bool hasVolume = false,
});