MapMarker3DModel.fromMeshWithTextureFilePathAndColor constructor

MapMarker3DModel.fromMeshWithTextureFilePathAndColor(
  1. Mesh mesh,
  2. String textureFilePath,
  3. Color color
)

Creates a new 3D model from mesh, texture and color.

  • mesh Mesh containing the 3d geometry together with texture coordinates.

  • textureFilePath Absolute path to texture file.

  • color Color to be blend with texture. This color is multiplied with color of texture.

Throws MapMarker3DModelInstantiationException. Indicates what went wrong when the instantiation was attempted.

Implementation

factory MapMarker3DModel.fromMeshWithTextureFilePathAndColor(Mesh mesh, String textureFilePath, ui.Color color) => $prototype.fromMeshWithTextureFilePathAndColor(mesh, textureFilePath, color);