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/Vendor/EXT_materials_specular_edge_color/README.md
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Here is the same comparison for colored specular, increasing from [0,0,0] to [1,
89
89
#### EXT_materials_specular_edge_color
90
90

91
91
92
-
The specular color factor is allowed to be set to values greater than [1, 1, 1]. Thus, the reflection amount can go beyond what is determined by the index of refraction (IOR). To still ensure energy conservation, the product of specular color factor, specular color texture, and f0 reflectance from IOR is clamped to 1. Please refer to [Implementation](#Implementation) for an example on where to place the clamping operation.
92
+
In OpenPBR, specular_weight can exceed 1.0 but not specular_color. In KHR_materials_specular, the opposite is true. In this extension, we inherit the same properties so proper clamping needs to be used to ensure energy conservation and compatibility with OpenPBR. For specular color factor values greater than 1.0, we increase the specular factor by that amount and then normalize the specular color factor. This new weight is then clamped so that the fresnel mix does not result in diffuse dropping below 0.0 or specular going above 1.0. Please refer to [Implementation](#Implementation) for an example on where to place the clamping operations.
93
93
94
94
### Conductors
95
95
@@ -117,9 +117,13 @@ From the OpenPBR specs:
117
117
```
118
118
function fresnel_mix(specular_color, ior, weight, base, layer) {
0 commit comments