Property | Type | Description |
---|---|---|
formats | textureSetDefinitionFormat[] | List of formats that are available for this texture set. |
atlas | boolean | Set to true if this texture is a texture atlas. It is expected that geometries that use this texture have uv regions to specify the subtexture in the atlas. |
Note: properties in bold are required
For a mesh with material.resource=888
, JPEG will be at /layers/0/nodes/888/textures/0
, DDS at /layers/0/nodes/888/textures/0_0_1
and KTX2 at DDS at /layers/0/nodes/888/textures/1
{
"formats": [
{
"name": "0",
"format": "jpg"
},
{
"name": "0_0_1",
"format": "dds"
},
{
"name": "1",
"format": "Ktx2"
}
]
}
Example: Texture set definition with Basis Universal SuperCompressed texture in KTX2 container format (Mobile: jpg+ktx2)
JPEG texture will be at /layers/0/nodes/{nodes[i].material.resource}/textures/0
. Same texture in KTX format will be at /layers/0/nodes/{nodes[i].material.resource}/textures/1
{
"formats": [
{
"name": "0",
"format": "jpg"
},
{
"name": "1",
"format": "ktx2"
}
]
}
{
"formats": [
{
"name": "0",
"format": "jpg"
},
{
"name": "0_0_1",
"format": "dds"
},
{
"name": "0_0_2",
"format": "ktx-etc2"
},
,
{
"name": "1",
"format": "Ktx2"
}
],
"atlas": true
}