-
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 defined tangent space (#224)
- Loading branch information
1 parent
0cdee26
commit bc2159d
Showing
18 changed files
with
304 additions
and
11 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
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
78 changes: 78 additions & 0 deletions
78
test/base/data/mesh/primitive_generated_tangent_space.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,78 @@ | ||
{ | ||
"asset": { | ||
"version": "2.0" | ||
}, | ||
"meshes": [ | ||
{ | ||
"primitives": [ | ||
{ | ||
"attributes": { | ||
"POSITION": 0, | ||
"TEXCOORD_0": 3 | ||
}, | ||
"material": 0 | ||
}, | ||
{ | ||
"attributes": { | ||
"POSITION": 0, | ||
"NORMAL": 1, | ||
"TEXCOORD_0": 3 | ||
}, | ||
"material": 0 | ||
}, | ||
{ | ||
"attributes": { | ||
"POSITION": 0, | ||
"TANGENT": 2, | ||
"TEXCOORD_0": 3 | ||
}, | ||
"material": 0 | ||
}, | ||
{ | ||
"attributes": { | ||
"POSITION": 0, | ||
"NORMAL": 1, | ||
"TANGENT": 2, | ||
"TEXCOORD_0": 3 | ||
}, | ||
"material": 0 | ||
} | ||
] | ||
} | ||
], | ||
"accessors": [ | ||
{ | ||
"type": "VEC3", | ||
"componentType": 5126, | ||
"count": 3, | ||
"min": [0, 0, 0], | ||
"max": [1, 1, 1] | ||
}, | ||
{ | ||
"type": "VEC3", | ||
"componentType": 5126, | ||
"count": 3 | ||
}, | ||
{ | ||
"type": "VEC4", | ||
"componentType": 5126, | ||
"count": 3 | ||
}, | ||
{ | ||
"type": "VEC2", | ||
"componentType": 5126, | ||
"count": 3 | ||
} | ||
], | ||
"materials": [ | ||
{ | ||
"normalTexture": { | ||
"index": 0 | ||
} | ||
} | ||
], | ||
"textures": [ | ||
{ | ||
} | ||
] | ||
} |
59 changes: 59 additions & 0 deletions
59
test/base/data/mesh/primitive_generated_tangent_space.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,59 @@ | ||
{ | ||
"uri": "test/base/data/mesh/primitive_generated_tangent_space.gltf", | ||
"mimeType": "model/gltf+json", | ||
"validatorVersion": "2.0.0-dev.3.10", | ||
"issues": { | ||
"numErrors": 0, | ||
"numWarnings": 4, | ||
"numInfos": 1, | ||
"numHints": 0, | ||
"messages": [ | ||
{ | ||
"code": "MESH_PRIMITIVE_TANGENT_WITHOUT_NORMAL", | ||
"message": "TANGENT attribute without NORMAL found.", | ||
"severity": 1, | ||
"pointer": "/meshes/0/primitives/2/attributes/TANGENT" | ||
}, | ||
{ | ||
"code": "MESH_PRIMITIVE_GENERATED_TANGENT_SPACE", | ||
"message": "Material requires a tangent space but the mesh primitive does not provide it. Runtime-generated tangent space may be non-portable across implementations.", | ||
"severity": 1, | ||
"pointer": "/meshes/0/primitives/0/material" | ||
}, | ||
{ | ||
"code": "MESH_PRIMITIVE_GENERATED_TANGENT_SPACE", | ||
"message": "Material requires a tangent space but the mesh primitive does not provide it. Runtime-generated tangent space may be non-portable across implementations.", | ||
"severity": 1, | ||
"pointer": "/meshes/0/primitives/1/material" | ||
}, | ||
{ | ||
"code": "MESH_PRIMITIVE_GENERATED_TANGENT_SPACE", | ||
"message": "Material requires a tangent space but the mesh primitive does not provide it. Runtime-generated tangent space may be non-portable across implementations.", | ||
"severity": 1, | ||
"pointer": "/meshes/0/primitives/2/material" | ||
}, | ||
{ | ||
"code": "UNUSED_OBJECT", | ||
"message": "This object may be unused.", | ||
"severity": 2, | ||
"pointer": "/meshes/0" | ||
} | ||
], | ||
"truncated": false | ||
}, | ||
"info": { | ||
"version": "2.0", | ||
"animationCount": 0, | ||
"materialCount": 1, | ||
"hasMorphTargets": false, | ||
"hasSkins": false, | ||
"hasTextures": true, | ||
"hasDefaultScene": false, | ||
"drawCallCount": 4, | ||
"totalVertexCount": 12, | ||
"totalTriangleCount": 4, | ||
"maxUVs": 1, | ||
"maxInfluences": 0, | ||
"maxAttributes": 4 | ||
} | ||
} |
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
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
Oops, something went wrong.