From 1a53d59b583ea3131dfb1a44638f7ef400486c77 Mon Sep 17 00:00:00 2001 From: Olaf Haag <83961384+Olaf-Wolf3D@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:08:42 +0100 Subject: [PATCH] feat(textures): 4kx4k resolution texture support (#25) Set maximum image size to 4 MB. --- schemas/commonTexture.schema.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/schemas/commonTexture.schema.json b/schemas/commonTexture.schema.json index 2992616..0149e3d 100644 --- a/schemas/commonTexture.schema.json +++ b/schemas/commonTexture.schema.json @@ -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" }, @@ -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." } } },