cube/cube_material library
Classes
Functions
-
fromColor(
Color color) → Vector3 - Convert Color to Vector3
-
getImagePixels(
Image image) → Future< Uint32List> -
loadImageFromAsset(
String fileName, {bool isAsset = true}) → Future< Image> - load an image from asset
-
loadMtl(
String fileName, {bool isAsset = true}) → Future< Map< String, CubeMaterial> > - Loading material from CubeMaterial Library File (.mtl). Reference:http://paulbourke.net/dataformats/mtl/
-
loadTexture(
CubeMaterial? material, String basePath, {bool isAsset = true}) → Future< MapEntry< String, Image> ?> - load texture from asset
-
toColor(
Vector3 v, [double opacity = 1.0]) → Color - Convert Vector3 to Color