-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KHR_materials_diffuse_transmission (#1825)
* Initial draft for KHR_materials_translucency. * Added figure and code to describe BTDF. * Update KHR_materials_translucency - Move info in interaction with other extensions to translucency - Add images - Add more detailed explanation * README.md edited * Change summary images; Add review changes * Change thin transmission image; Fix font * Change summary images; Add review changes * Add translucency color parameter and examples * Optimize example image format/size * Add example description; Update brdf notation * Rename translucency -> diffuse_transmission * Change example table layout, edit descriptions * Update extensions/2.0/Khronos/KHR_materials_diffuse_transmission/schema/glTF.KHR_materials_diffuse_transmission.schema.json Co-authored-by: abwood <[email protected]> * Remove example for combined diffuse-/transmission Effect not obvious in the image * Remove all references to KHR_materials_sss * Remove extensions combination overview for now Needs better images or renderings * Update image text * Fix typo * Revise spec - Add more detailed parameter descriptions based on PR feedback + renderings - Add dragon and candle renderings as example for diffuse transmission + volume - Remove example section * Fix image table layout. Add white bg to bsdf image for better visibility. * Split up normative "material structure update" and non-normative implementation sections * Fix Appendix B url * Add exclusions; Add scene/texture attribution * Use https uri * Remove leaves image --------- Co-authored-by: SDORRA Bastian <[email protected]> Co-authored-by: Bastian Sdorra <[email protected]> Co-authored-by: abwood <[email protected]> Co-authored-by: Bastian SDORRA <[email protected]>
- Loading branch information
1 parent
2c5681a
commit fca1abd
Showing
37 changed files
with
1,395 additions
and
0 deletions.
There are no files selected for viewing
421 changes: 421 additions & 0 deletions
421
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+87.6 KB
...s/2.0/Khronos/KHR_materials_diffuse_transmission/figures/attenuation_dt_0.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
...s/2.0/Khronos/KHR_materials_diffuse_transmission/figures/attenuation_dt_0.5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+184 KB
...s/2.0/Khronos/KHR_materials_diffuse_transmission/figures/attenuation_dt_1.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.3 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/bsdf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
933 changes: 933 additions & 0 deletions
933
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/bsdf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.8 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/candle_0.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+65.2 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/candle_0.25.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/candle_0.5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_0.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.8 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_0.25.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.9 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_0.5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.8 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_0.75.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.9 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_1.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+153 KB
...nsions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_tex_0.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+155 KB
...sions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_tex_0.25.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+176 KB
...nsions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_tex_0.5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+188 KB
...sions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_tex_0.75.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+208 KB
...nsions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/color_tex_1.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+221 KB
.../2.0/Khronos/KHR_materials_diffuse_transmission/figures/dt_transmission_0.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+218 KB
...2.0/Khronos/KHR_materials_diffuse_transmission/figures/dt_transmission_0.25.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+240 KB
.../2.0/Khronos/KHR_materials_diffuse_transmission/figures/dt_transmission_0.5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+284 KB
...2.0/Khronos/KHR_materials_diffuse_transmission/figures/dt_transmission_0.75.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+328 KB
.../2.0/Khronos/KHR_materials_diffuse_transmission/figures/dt_transmission_1.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.2 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_0.0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.1 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_0.25.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.7 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_0.5.jpg
Oops, something went wrong.
Binary file added
BIN
+27.1 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_0.75.jpg
Oops, something went wrong.
Binary file added
BIN
+27.9 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_1.0.jpg
Oops, something went wrong.
Binary file added
BIN
+61.2 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_tex.jpg
Oops, something went wrong.
Binary file added
BIN
+75.4 KB
...ons/2.0/Khronos/KHR_materials_diffuse_transmission/figures/factor_tex_inlay.jpg
Oops, something went wrong.
Binary file added
BIN
+84 KB
extensions/2.0/Khronos/KHR_materials_diffuse_transmission/figures/leaves.jpg
Oops, something went wrong.
Binary file added
BIN
+481 KB
....0/Khronos/KHR_materials_diffuse_transmission/figures/translucent-roughness.png
Oops, something went wrong.
Binary file added
BIN
+68.7 KB
...s/KHR_materials_diffuse_transmission/figures/transmission-translucency_thin.jpg
Oops, something went wrong.
Binary file added
BIN
+70.6 KB
...materials_diffuse_transmission/figures/transmission-translucency_thin_angle.jpg
Oops, something went wrong.
Binary file added
BIN
+547 KB
...0/Khronos/KHR_materials_diffuse_transmission/figures/transmissive-roughness.png
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...materials_diffuse_transmission/schema/glTF.KHR_materials_diffuse_transmission.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,41 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"title": "KHR_materials_diffuse_transmission glTF extension", | ||
"type": "object", | ||
"description": "glTF extension that defines the diffuse transmission of the material.", | ||
"allOf": [ { "$ref": "glTFProperty.schema.json" } ], | ||
"properties": { | ||
"diffuseTransmissionFactor": { | ||
"type": "number", | ||
"description": "The percentage of light that is diffusely transmitted through the surface.", | ||
"default": 0.0, | ||
"minimum": 0.0, | ||
"maximum": 1.0, | ||
"gltf_detailedDescription": "The percentage of non-specularly reflected light that is transmitted through the surface via a Lambertian diffuse transmission." | ||
}, | ||
"diffuseTransmissionTexture": { | ||
"allOf": [ { "$ref": "textureInfo.schema.json" } ], | ||
"description": "A texture that defines the percentage of light transmitted through the surface.", | ||
"gltf_detailedDescription": "A texture that defines the strength of the diffuse transmission effect, stored in the alpha (A) channel. Will be multiplied by the diffuseTransmissionFactor." | ||
}, | ||
"diffuseTransmissionColorFactor": { | ||
"type": "array", | ||
"items": { | ||
"type": "number", | ||
"minimum": 0.0 | ||
}, | ||
"description": "The color of the transmitted light.", | ||
"default": [ 1.0, 1.0, 1.0 ], | ||
"minItems": 3, | ||
"maxItems": 3, | ||
"gltf_detailedDescription": "The color of the transmitted light." | ||
}, | ||
"diffuseTransmissionColorTexture": { | ||
"allOf": [ { "$ref": "textureInfo.schema.json" } ], | ||
"description": "A texture that defines the color of the transmitted light", | ||
"gltf_detailedDescription": "A texture that defines the color of the transmitted light, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by diffuseTransmissionColorFactor." | ||
}, | ||
"extensions": { }, | ||
"extras": { } | ||
} | ||
} |