You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/2.0/Khronos/KHR_materials_anisotropy/README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,22 @@ Written against the glTF 2.0 spec.
14
14
15
15
## Overview
16
16
17
+
This extension defines the anisotropic property of a material as observable with brushed metals for instance.
18
+
An assymetric specular lobe model is introduced to allow for such phenomenon.
19
+
The visually distinct feature of that lobe is the elongated appearance of the specular reflection.
20
+
For a single punctual light source, the specular reflection will eventually degenerate into a zero width line in the limit,
21
+
that is where the material is fully anisotropic, as opposed to be fully isotropic in which case the specular reflecation is radially symmetric.
22
+
23
+
## Extending Materials
17
24
18
25
```json
19
26
{
20
27
"materials": [
21
28
{
22
29
"extensions": {
23
30
"KHR_materials_anisotropy": {
31
+
"anisotropy": 0.6,
32
+
"anisotropyDirection": [0.0, 1.0, 0.0]
24
33
}
25
34
}
26
35
}
@@ -30,7 +39,21 @@ Written against the glTF 2.0 spec.
30
39
31
40
### Definition
32
41
42
+
## Anisotropy
43
+
44
+
Two new material properties are introduced: an explicit anisotropy parameter and the direction in which the specular reflection elongates relative to the surface tangents.
45
+
The anisotropy parameter is a dimensionaless number in `[-1, 1]` and forms a bijection to the roughness distribution along two orthogonal directions,
46
+
one of which is the direction parameter and the other the result of the crossing the direction and the geometric normal.
47
+
48
+
A anisotropy of `1` means that the specular reflection will elongate along the given direction,
49
+
while a value of `-1` will elongate it along the computed orthogonal direction.
0 commit comments