mirror of
https://github.com/maxartz15/MA_TextureAtlasser.git
synced 2025-07-07 16:56:08 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
650600fac3 | |||
b2ccdb2273 | |||
df16ba6c05 | |||
a3c002cb17 | |||
0907259aa8 | |||
fa40b918d0 |
@ -84,7 +84,12 @@ namespace MA_Mesh
|
|||||||
newMesh.SetTriangles(mesh.GetTriangles(i), i);
|
newMesh.SetTriangles(mesh.GetTriangles(i), i);
|
||||||
}
|
}
|
||||||
newMesh.SetNormals(new List<Vector3>(mesh.normals));
|
newMesh.SetNormals(new List<Vector3>(mesh.normals));
|
||||||
newMesh.SetUVs(0, new List<Vector2>(mesh.uv));
|
for (int i = 0; i < 8; i++)
|
||||||
|
{
|
||||||
|
List<Vector2> uvs = new List<Vector2>();
|
||||||
|
mesh.GetUVs(i, uvs);
|
||||||
|
newMesh.SetUVs(i, uvs);
|
||||||
|
}
|
||||||
newMesh.SetTangents(new List<Vector4>(mesh.tangents));
|
newMesh.SetTangents(new List<Vector4>(mesh.tangents));
|
||||||
newMesh.SetColors(new List<Color>(mesh.colors));
|
newMesh.SetColors(new List<Color>(mesh.colors));
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ namespace MA_Texture
|
|||||||
if(flipY)
|
if(flipY)
|
||||||
{
|
{
|
||||||
//Y is 'flipped' because textures are made from left to right, bottom to top. We want to draw from left to right and top to bottom.
|
//Y is 'flipped' because textures are made from left to right, bottom to top. We want to draw from left to right and top to bottom.
|
||||||
for (int y = combineTexture.height; y > 0; y--)
|
for (int y = combineTexture.height - 1; y >= 0; y--)
|
||||||
{
|
{
|
||||||
texture.SetPixel(x + offsetX, y + (texture.height - offsetY - combineTexture.height), combineTexture.GetPixel(x, y));
|
texture.SetPixel(x + offsetX, y + (texture.height - offsetY - combineTexture.height), combineTexture.GetPixel(x, y));
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ Texture atlas creator tool for Unity. <br> This tool is made to combine textures
|
|||||||
### Unity versions
|
### Unity versions
|
||||||
- Latest release requires Unity 2018.3 or higher.
|
- Latest release requires Unity 2018.3 or higher.
|
||||||
- Releases before 1.8 should work with older Unity versions.
|
- Releases before 1.8 should work with older Unity versions.
|
||||||
|
- Upgrading to 1.8+ will break existing atlasses.
|
||||||
|
|
||||||
## Export options
|
## Export options
|
||||||
### Meshes
|
### Meshes
|
||||||
@ -23,4 +24,4 @@ Texture atlas creator tool for Unity. <br> This tool is made to combine textures
|
|||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
[Youtube video](https://youtu.be/PBRKlopkZP0) <br>
|
[Youtube video](https://youtu.be/PBRKlopkZP0) <br>
|
||||||
[Website](https://maxartz15.com/ma-textureatlasser/)
|
[Website](https://maxartz15.com/ma_textureatlas/)
|
||||||
|
Reference in New Issue
Block a user