-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from AnalyticalGraphicsInc/clear-coat
Add KHR_materials_clearcoat schema
- Loading branch information
Showing
6 changed files
with
73 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
58 changes: 58 additions & 0 deletions
58
schemas/gltf-2.0/extensions/KHR_materials_clearcoat/glTF.KHR_materials_clearcoat.schema.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,58 @@ | ||
{ | ||
"$schema" : "http://json-schema.org/draft-04/schema", | ||
"title" : "KHR_materials_clearcoat glTF extension", | ||
"type" : "object", | ||
"description" : "glTF extension that defines the clearcoat material layer.", | ||
"allOf" : [ | ||
{ | ||
"$ref" : "../../glTFProperty.schema.json" | ||
} | ||
], | ||
"properties" : { | ||
"clearcoatFactor" : { | ||
"type" : "number", | ||
"description" : "The clearcoat layer intensity (aka opacity) of the material. A value of 0.0 means the material has no clearcoat layer enabled.", | ||
"default" : 0, | ||
"minimum" : 0, | ||
"maximum" : 1, | ||
"short_description" : "The clearcoat layer intensity." | ||
}, | ||
"clearcoatTexture" : { | ||
"allOf" : [ | ||
{ | ||
"$ref" : "../../textureInfo.schema.json" | ||
} | ||
], | ||
"description" : "The clearcoat layer intensity texture. These values are sampled from the R channel. The values are linear. Use value 1.0 if no texture is supplied.", | ||
"short_description" : "The clearcoat layer intensity texture." | ||
}, | ||
"clearcoatRoughnessFactor" : { | ||
"type" : "number", | ||
"description" : "The clearcoat layer roughness of the material.", | ||
"default" : 0, | ||
"minimum" : 0, | ||
"maximum" : 1, | ||
"short_description" : "The clearcoat layer roughness." | ||
}, | ||
"clearcoatRoughnessTexture" : { | ||
"allOf" : [ | ||
{ | ||
"$ref" : "../../textureInfo.schema.json" | ||
} | ||
], | ||
"description" : "The clearcoat layer roughness texture. These values are sampled from the G channel. The values are linear. Use value 1.0 if no texture is supplied.", | ||
"short_description" : "The clearcoat layer roughness texture." | ||
}, | ||
"clearcoatNormalTexture" : { | ||
"allOf" : [ | ||
{ | ||
"$ref" : "../../material.normalTextureInfo.schema.json" | ||
} | ||
], | ||
"description" : "A tangent space normal map for the clearcoat layer. If desired, this may be a reference to the same normal map used by the base material. If not supplied, no normal mapping is applied to the clear coat layer.", | ||
"short_description" : "The clearcoat normal map texture." | ||
}, | ||
"extensions" : {}, | ||
"extras" : {} | ||
} | ||
} |
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