Mercurial > games > semicongine
diff semiconginev2/contrib/algorithms/texture_packing.nim @ 1247:c15770761865
add: gltf loading test, gltf loading for materials
author | sam <sam@basx.dev> |
---|---|
date | Wed, 24 Jul 2024 23:26:34 +0700 |
parents | 841e12f33c47 |
children |
line wrap: on
line diff
--- a/semiconginev2/contrib/algorithms/texture_packing.nim Wed Jul 24 20:12:19 2024 +0700 +++ b/semiconginev2/contrib/algorithms/texture_packing.nim Wed Jul 24 23:26:34 2024 +0700 @@ -74,7 +74,7 @@ for x in 0 ..< rect.w: when T is Gray: assert result.atlas[rect.x + x, rect.y + y] == [0'u8], "Atlas texture packing encountered an overlap error" - elif T is RGBA: + elif T is BGRA: assert result.atlas[rect.x + x, rect.y + y] == [0'u8, 0'u8, 0'u8, 0'u8], "Atlas texture packing encountered an overlap error" else: {.error: "Unsupported type for texture packing".}