MeshBaker
|
This class stores the results from an MB2_TextureBaker when materials are combined into atlases. More...
Public Member Functions | |
Dictionary< Material, Rect > | GetMat2RectMap () |
string | GetDescription () |
Static Public Member Functions | |
static MB2_TextureBakeResults | CreateForMaterialsOnRenderer (Renderer r) |
Creates for materials on renderer. More... | |
Public Attributes | |
MB_AtlasesAndRects[] | combinedMaterialInfo |
Material[] | materials |
Rect[] | prefabUVRects |
Material | resultMaterial |
MB_MultiMaterial[] | resultMaterials |
bool | doMultiMaterial |
bool | fixOutOfBoundsUVs |
This class stores the results from an MB2_TextureBaker when materials are combined into atlases.
It stores a list of materials and the corresponding UV rectangles in the atlases. It also stores the configuration options that were used to generate the combined material.
It can be saved as an asset in the project so that textures can be baked in one scene and used in another.
|
static |
Creates for materials on renderer.
r | The red component. |
string MB2_TextureBakeResults.GetDescription | ( | ) |
Dictionary<Material, Rect> MB2_TextureBakeResults.GetMat2RectMap | ( | ) |
MB_AtlasesAndRects [] MB2_TextureBakeResults.combinedMaterialInfo |
bool MB2_TextureBakeResults.doMultiMaterial |
bool MB2_TextureBakeResults.fixOutOfBoundsUVs |
Material [] MB2_TextureBakeResults.materials |
Rect [] MB2_TextureBakeResults.prefabUVRects |
Material MB2_TextureBakeResults.resultMaterial |
MB_MultiMaterial [] MB2_TextureBakeResults.resultMaterials |