Mercurial > games > semicongine
diff semiconginev2/gltf.nim @ 1258:5442d0e9d8ff
did: improve testing lighting, try new glb model (need to add jpeg support first)
author | sam <sam@basx.dev> |
---|---|
date | Sun, 28 Jul 2024 20:42:51 +0700 |
parents | 2b5ca798f6d6 |
children |
line wrap: on
line diff
--- a/semiconginev2/gltf.nim Sun Jul 28 18:55:46 2024 +0700 +++ b/semiconginev2/gltf.nim Sun Jul 28 20:42:51 2024 +0700 @@ -150,7 +150,7 @@ if root["images"][imageIndex].hasKey("uri"): raise newException(Exception, "Unsupported feature: Cannot load images from external files") let imageType = root["images"][imageIndex]["mimeType"].getStr() - assert imageType == "image/png", "glTF loader currently only supports PNG" + assert imageType == "image/png", "glTF loader currently only supports PNG, but found '" & imageType & "'" let bufferView = root["bufferViews"][root["images"][imageIndex][ "bufferView"].getInt()]