-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate clearcoat normal texture texcoords (#225)
- Loading branch information
1 parent
bc2159d
commit de37778
Showing
6 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
test/ext/KHR_materials_clearcoat/data/material/different_texcoords.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"asset": { | ||
"version": "2.0" | ||
}, | ||
"extensionsUsed": [ | ||
"KHR_materials_clearcoat" | ||
], | ||
"materials": [ | ||
{ | ||
"normalTexture": { | ||
"index": 0 | ||
}, | ||
"extensions": { | ||
"KHR_materials_clearcoat": { | ||
"clearcoatNormalTexture": { | ||
"index": 1, | ||
"texCoord": 1 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"textures": [ | ||
{ | ||
}, { | ||
} | ||
] | ||
} |
44 changes: 44 additions & 0 deletions
44
test/ext/KHR_materials_clearcoat/data/material/different_texcoords.gltf.report.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"uri": "test/ext/KHR_materials_clearcoat/data/material/different_texcoords.gltf", | ||
"mimeType": "model/gltf+json", | ||
"validatorVersion": "2.0.0-dev.3.10", | ||
"issues": { | ||
"numErrors": 0, | ||
"numWarnings": 1, | ||
"numInfos": 1, | ||
"numHints": 0, | ||
"messages": [ | ||
{ | ||
"code": "KHR_MATERIALS_CLEARCOAT_CLEARCOAT_NORMAL_TEXTURE_TEXCOORD", | ||
"message": "Normal and clearcoat normal textures should use the same texture coords.", | ||
"severity": 1, | ||
"pointer": "/materials/0/extensions/KHR_materials_clearcoat/clearcoatNormalTexture" | ||
}, | ||
{ | ||
"code": "UNUSED_OBJECT", | ||
"message": "This object may be unused.", | ||
"severity": 2, | ||
"pointer": "/materials/0" | ||
} | ||
], | ||
"truncated": false | ||
}, | ||
"info": { | ||
"version": "2.0", | ||
"extensionsUsed": [ | ||
"KHR_materials_clearcoat" | ||
], | ||
"animationCount": 0, | ||
"materialCount": 1, | ||
"hasMorphTargets": false, | ||
"hasSkins": false, | ||
"hasTextures": true, | ||
"hasDefaultScene": false, | ||
"drawCallCount": 0, | ||
"totalVertexCount": 0, | ||
"totalTriangleCount": 0, | ||
"maxUVs": 0, | ||
"maxInfluences": 0, | ||
"maxAttributes": 0 | ||
} | ||
} |