MeshBaker
|
Classes | |
class | MeshBakerMaterialTexture |
Public Member Functions | |
bool | CombineTexturesIntoAtlases (ProgressUpdateDelegate progressInfo, MB_AtlasesAndRects resultAtlasesAndRects, Material resultMaterial, List< GameObject > objsToMesh, List< Material > allowedMaterialsFilter, MB2_EditorMethodsInterface textureEditorMethods=null) |
Combines meshes and generates texture atlases. More... | |
Texture2D | GetAdjustedForScaleAndOffset2 (MeshBakerMaterialTexture source) |
void | CopyScaledAndTiledToAtlas (MeshBakerMaterialTexture source, int targX, int targY, int targW, int targH, bool _fixOutOfBoundsUVs, int maxSize, Color[][] atlasPixels, int atlasWidth, bool isNormalMap, ProgressUpdateDelegate progressInfo=null) |
void | SuggestTreatment (List< GameObject > objsToMesh, Material[] resultMaterials, List< ShaderTextureProperty > _customShaderPropNames) |
Public Attributes | |
MB2_LogLevel | LOG_LEVEL = MB2_LogLevel.info |
Static Public Attributes | |
static ShaderTextureProperty[] | shaderTexPropertyNames |
Protected Attributes | |
MB2_TextureBakeResults | _textureBakeResults |
int | _atlasPadding = 1 |
bool | _resizePowerOfTwoTextures = false |
bool | _fixOutOfBoundsUVs = false |
int | _maxTilingBakeSize = 1024 |
bool | _saveAtlasesAsAssets = false |
MB2_PackingAlgorithmEnum | _packingAlgorithm = MB2_PackingAlgorithmEnum.UnitysPackTextures |
bool | _meshBakerTexturePackerForcePowerOfTwo = true |
List< ShaderTextureProperty > | _customShaderPropNames = new List<ShaderTextureProperty>() |
List< Texture2D > | _temporaryTextures = new List<Texture2D>() |
Properties | |
MB2_TextureBakeResults | textureBakeResults [get, set] |
int | atlasPadding [get, set] |
bool | resizePowerOfTwoTextures [get, set] |
bool | fixOutOfBoundsUVs [get, set] |
int | maxTilingBakeSize [get, set] |
bool | saveAtlasesAsAssets [get, set] |
MB2_PackingAlgorithmEnum | packingAlgorithm [get, set] |
bool | meshBakerTexturePackerForcePowerOfTwo [get, set] |
List< ShaderTextureProperty > | customShaderPropNames [get, set] |
bool DigitalOpus.MB.Core.MB3_TextureCombiner.CombineTexturesIntoAtlases | ( | ProgressUpdateDelegate | progressInfo, |
MB_AtlasesAndRects | resultAtlasesAndRects, | ||
Material | resultMaterial, | ||
List< GameObject > | objsToMesh, | ||
List< Material > | allowedMaterialsFilter, | ||
MB2_EditorMethodsInterface | textureEditorMethods = null |
||
) |
Combines meshes and generates texture atlases.
createTextureAtlases | Whether or not texture atlases should be created. If not uvs will not be adjusted. |
progressInfo | A delegate function that will be called to report progress. |
textureEditorMethods | If called from the editor should be an instance of MB2_EditorMethods. If called at runtime should be null. |
Combines meshes and generates texture atlases
void DigitalOpus.MB.Core.MB3_TextureCombiner.CopyScaledAndTiledToAtlas | ( | MeshBakerMaterialTexture | source, |
int | targX, | ||
int | targY, | ||
int | targW, | ||
int | targH, | ||
bool | _fixOutOfBoundsUVs, | ||
int | maxSize, | ||
Color | atlasPixels[][], | ||
int | atlasWidth, | ||
bool | isNormalMap, | ||
ProgressUpdateDelegate | progressInfo = null |
||
) |
Texture2D DigitalOpus.MB.Core.MB3_TextureCombiner.GetAdjustedForScaleAndOffset2 | ( | MeshBakerMaterialTexture | source | ) |
void DigitalOpus.MB.Core.MB3_TextureCombiner.SuggestTreatment | ( | List< GameObject > | objsToMesh, |
Material[] | resultMaterials, | ||
List< ShaderTextureProperty > | _customShaderPropNames | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
MB2_LogLevel DigitalOpus.MB.Core.MB3_TextureCombiner.LOG_LEVEL = MB2_LogLevel.info |
|
static |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |