|
MeshBaker
|
Classes | |
| class | CombineTexturesIntoAtlasesCoroutineResult |
| Same as CombineTexturesIntoAtlases except this version runs as a coroutine to spread the load of baking textures at runtime across several frames. More... | |
| class | MatAndTransformToMerged |
| class | MB_TexSet |
| class | MeshBakerMaterialTexture |
| class | SamplingRectEnclosesComparer |
Public Member Functions | |
| bool | CombineTexturesIntoAtlases (ProgressUpdateDelegate progressInfo, MB_AtlasesAndRects resultAtlasesAndRects, Material resultMaterial, List< GameObject > objsToMesh, List< Material > allowedMaterialsFilter, MB2_EditorMethodsInterface textureEditorMethods=null) |
| IEnumerator | CombineTexturesIntoAtlasesCoroutine (ProgressUpdateDelegate progressInfo, MB_AtlasesAndRects resultAtlasesAndRects, Material resultMaterial, List< GameObject > objsToMesh, List< Material > allowedMaterialsFilter, MB2_EditorMethodsInterface textureEditorMethods=null, CombineTexturesIntoAtlasesCoroutineResult coroutineResult=null, float maxTimePerFrame=.01f) |
| Texture2D | GetAdjustedForScaleAndOffset2 (MeshBakerMaterialTexture source, Vector2 obUVoffset, Vector2 obUVscale) |
| IEnumerator | CopyScaledAndTiledToAtlas (MeshBakerMaterialTexture source, MB_TexSet sourceMaterial, ShaderTextureProperty shaderPropertyName, DRect srcSamplingRect, int targX, int targY, int targW, int targH, bool _fixOutOfBoundsUVs, int maxSize, Color[][] atlasPixels, int atlasWidth, bool isNormalMap, ProgressUpdateDelegate progressInfo=null) |
| Texture2D | _createTemporaryTexture (int w, int h, TextureFormat texFormat, bool mipMaps) |
| void | SuggestTreatment (List< GameObject > objsToMesh, Material[] resultMaterials, List< ShaderTextureProperty > _customShaderPropNames) |
Static Public Member Functions | |
| static void | RunCorutineWithoutPause (IEnumerator cor, int recursionDepth) |
| summary>Combines meshes and generates texture atlases. More... | |
| static Color | GetColorIfNoTexture (ShaderTextureProperty texProperty) |
Public Attributes | |
| MB2_LogLevel | LOG_LEVEL = MB2_LogLevel.info |
Static Public Attributes | |
| static bool | DO_INTEGRITY_CHECKS = false |
| static ShaderTextureProperty [] | shaderTexPropertyNames |
Protected Attributes | |
| MB2_TextureBakeResults | _textureBakeResults |
| int | _atlasPadding = 1 |
| int | _maxAtlasSize = 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>() |
| bool | _normalizeTexelDensity = false |
| bool | _considerNonTextureProperties = false |
| TextureBlender | resultMaterialTextureBlender |
| TextureBlender [] | textureBlenders = new TextureBlender[0] |
| List< Texture2D > | _temporaryTextures = new List<Texture2D>() |
Properties | |
| MB2_TextureBakeResults | textureBakeResults [get, set] |
| int | atlasPadding [get, set] |
| int | maxAtlasSize [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 | considerNonTextureProperties [get, set] |
| Texture2D DigitalOpus.MB.Core.MB3_TextureCombiner._createTemporaryTexture | ( | int | w, |
| int | h, | ||
| TextureFormat | texFormat, | ||
| bool | mipMaps | ||
| ) |
| bool DigitalOpus.MB.Core.MB3_TextureCombiner.CombineTexturesIntoAtlases | ( | ProgressUpdateDelegate | progressInfo, |
| MB_AtlasesAndRects | resultAtlasesAndRects, | ||
| Material | resultMaterial, | ||
| List< GameObject > | objsToMesh, | ||
| List< Material > | allowedMaterialsFilter, | ||
| MB2_EditorMethodsInterface | textureEditorMethods = null |
||
| ) |
| IEnumerator DigitalOpus.MB.Core.MB3_TextureCombiner.CombineTexturesIntoAtlasesCoroutine | ( | ProgressUpdateDelegate | progressInfo, |
| MB_AtlasesAndRects | resultAtlasesAndRects, | ||
| Material | resultMaterial, | ||
| List< GameObject > | objsToMesh, | ||
| List< Material > | allowedMaterialsFilter, | ||
| MB2_EditorMethodsInterface | textureEditorMethods = null, |
||
| CombineTexturesIntoAtlasesCoroutineResult | coroutineResult = null, |
||
| float | maxTimePerFrame = .01f |
||
| ) |
| IEnumerator DigitalOpus.MB.Core.MB3_TextureCombiner.CopyScaledAndTiledToAtlas | ( | MeshBakerMaterialTexture | source, |
| MB_TexSet | sourceMaterial, | ||
| ShaderTextureProperty | shaderPropertyName, | ||
| DRect | srcSamplingRect, | ||
| 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, |
| Vector2 | obUVoffset, | ||
| Vector2 | obUVscale | ||
| ) |
|
static |
|
static |
summary>Combines meshes and generates texture atlases.
NOTE running coroutines at runtime does not work in Unity 4
| 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.SuggestTreatment | ( | List< GameObject > | objsToMesh, |
| Material [] | resultMaterials, | ||
| List< ShaderTextureProperty > | _customShaderPropNames | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
| MB2_LogLevel DigitalOpus.MB.Core.MB3_TextureCombiner.LOG_LEVEL = MB2_LogLevel.info |
|
protected |
|
static |
|
protected |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |