Skip to content

Commit

Permalink
Merge pull request #1698 from MiiBond/KHR_materials_transmission_v1
Browse files Browse the repository at this point in the history
KHR_materials_transmission
  • Loading branch information
emackey authored Aug 26, 2020
2 parents 7bdfbfe + b936cf2 commit a93a287
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 0 deletions.
233 changes: 233 additions & 0 deletions extensions/2.0/Khronos/KHR_materials_transmission/README.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "KHR_materials_transmission glTF extension",
"type": "object",
"description": "glTF extension that defines the optical transmission of a material.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"transmissionFactor": {
"type": "number",
"description": "The base percentage of light transmitted through the surface.",
"default": 0.0,
"minimum": 0.0,
"maximum": 1.0,
"gltf_detailedDescription": "The base percentage of non-specularly reflected light that is transmitted through the surface. i.e. of the light that penetrates a surface (isn't specularly reflected), this is the percentage that is transmitted and not diffusely re-emitted."
},
"transmissionTexture": {
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
"description": "A texture that defines the transmission percentage of the surface, sampled from the R channel. These values are linear, and will be multiplied by transmissionFactor.",
"gltf_detailedDescription": "A texture that defines the transmission percentage of the surface, sampled from the R channel. These values are linear, and will be multiplied by transmissionFactor. This indicates the percentage of non-specularly reflected light that is transmitted through the surface. i.e. of the light that penetrates a surface (isn't specularly reflected), this is the percentage is transmitted and not diffusely re-emitted."
},
"extensions": { },
"extras": { }
}
}

0 comments on commit a93a287

Please sign in to comment.