Skip to content

Commit 757168f

Browse files
committed
Add KHR_materials_scatter for discussion
1 parent 4ecfc3b commit 757168f

8 files changed

Lines changed: 866 additions & 0 deletions

File tree

extensions/2.0/Khronos/KHR_materials_scatter/README.md

Lines changed: 359 additions & 0 deletions
Large diffs are not rendered by default.
697 KB
Loading
250 KB
Loading
298 KB
Loading
410 KB
Loading
914 KB
Loading

extensions/2.0/Khronos/KHR_materials_scatter/figures/volume.svg

Lines changed: 470 additions & 0 deletions
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema",
3+
"title": "KHR_materials_scatter glTF Material Extension",
4+
"type": "object",
5+
"description": "glTF extension that defines scattering properties for both thin-walled and volumetric materials.",
6+
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
7+
"properties": {
8+
"multiscatterColorFactor": {
9+
"type": "array",
10+
"items": {
11+
"type": "number",
12+
"minimum": 0.0,
13+
"maximum": 1.0
14+
},
15+
"description": "The multi-scatter color.",
16+
"default": [ 1.0, 1.0, 1.0 ],
17+
"minItems": 3,
18+
"maxItems": 3,
19+
"gltf_detailedDescription": "In volumetric mode (KHR_materials_volume present with thicknessFactor > 0), this is the multi-scatter albedo: the perceived color of the scattering medium after many internal bounces. In thin-walled mode, this is a multiplicative tint on the transmitted light. A value of [1, 1, 1] applies no tint."
20+
},
21+
"multiscatterColorTexture": {
22+
"allOf": [ { "$ref": "textureInfo.schema.json" } ],
23+
"description": "A texture that defines the multi-scatter color, stored in the RGB channels and encoded in sRGB.",
24+
"gltf_detailedDescription": "A texture that defines the multi-scatter color, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by the multiscatterColorFactor value."
25+
},
26+
"scatterAnisotropy": {
27+
"type": "number",
28+
"description": "The anisotropy of scatter events. Range is (-1, 1).",
29+
"default": 0.0,
30+
"exclusiveMinimum": -1.0,
31+
"exclusiveMaximum": 1.0,
32+
"gltf_detailedDescription": "Controls the directionality of scattered light. In volumetric mode, this is the g parameter of the Henyey-Greenstein phase function. In thin-walled mode, this biases the diffuse BTDF toward forward (positive) or backward (negative) scattering. A value of 0 gives isotropic (Lambertian) diffuse transmission."
33+
},
34+
"extensions": { },
35+
"extras": { }
36+
}
37+
}

0 commit comments

Comments
 (0)