修正不同纹理宽高比例下uv单位值

This commit is contained in:
caizhitao
2020-06-23 15:15:55 +08:00
parent 97d4af5d69
commit eb0023a3c4
9 changed files with 315 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "a4aa4d0b-7260-4512-928b-2e21a404fa74",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 320,
"height": 640,
"platformSettings": {},
"subMetas": {
"giraffe_1": {
"ver": "1.0.4",
"uuid": "ca4c5d38-6446-45f6-88fc-2300852051f9",
"rawTextureUuid": "a4aa4d0b-7260-4512-928b-2e21a404fa74",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 10,
"trimY": 0,
"width": 300,
"height": 640,
"rawWidth": 320,
"rawHeight": 640,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

BIN
assets/textures/sushi_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1,36 @@
{
"ver": "2.3.4",
"uuid": "83e0e28c-7599-4754-a59f-a169cbd5cbcd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 640,
"height": 320,
"platformSettings": {},
"subMetas": {
"sushi_1": {
"ver": "1.0.4",
"uuid": "8eb18f86-2d97-4fbf-8d69-c5dd52df4a13",
"rawTextureUuid": "83e0e28c-7599-4754-a59f-a169cbd5cbcd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0.5,
"offsetY": -3.5,
"trimX": 1,
"trimY": 20,
"width": 639,
"height": 287,
"rawWidth": 640,
"rawHeight": 320,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}