mirror of
				https://github.com/maxartz15/MA_TextureAtlasser.git
				synced 2025-10-31 13:35:54 +01:00 
			
		
		
		
	Update MA_TextureUtils.cs
Bugfix: 2 pixel Y offset when combining textures.
This commit is contained in:
		| @@ -199,7 +199,7 @@ namespace MA_Texture | ||||
|                 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. | ||||
|                     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)); | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user