Skip to content

Commit

Permalink
feat(textures): 4kx4k resolution texture support (#25)
Browse files Browse the repository at this point in the history
Set maximum image size to 4 MB.
  • Loading branch information
Olaf-Wolf3D authored Mar 13, 2024
1 parent 371c2f3 commit 1a53d59
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions schemas/commonTexture.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"compression": { "type": "string" },
"resolution": {
"description": "Image resolution data used for textures. Power of 2 and sqaure.",
"description": "Image resolution data used for textures. Power of 2 and square.",
"type": "string",
"oneOf": [
{ "const": "1x1" },
Expand All @@ -36,22 +36,24 @@
{ "const": "128x128" },
{ "const": "256x256" },
{ "const": "512x512" },
{ "const": "1024x1024" }
{ "const": "1024x1024" },
{ "const": "2048x2048" },
{ "const": "4096x4096" }
],
"errorMessage": "Image resolution for ${1/name} must be a power of 2 and square. Maximum 1024 x 1024. Found ${0} instead."
"errorMessage": "Image resolution for ${1/name} must be a power of 2 and square. Maximum 4096 x 4096. Found ${0} instead."
},
"size": {
"type": "integer",
"maximum": 2097152,
"maximum": 4194304,
"errorMessage": {
"maximum": "Texture map ${1/name} exceeds maximum allowed storage size of 2 MB."
"maximum": "Texture map ${1/name} exceeds maximum allowed storage size of 4 MB."
}
},
"gpuSize": {
"type": "integer",
"maximum": 6291456,
"maximum": 94371840,
"errorMessage": {
"maximum": "Texture map ${1/name} exceeds maximum allowed GPU size of 6 MB when fully decompressed."
"maximum": "Texture map ${1/name} exceeds maximum allowed GPU size of 90 MB when fully decompressed."
}
}
},
Expand Down

0 comments on commit 1a53d59

Please sign in to comment.