Skip to content

Commit

Permalink
Add suggestion from Alexey regarding clamping.
Browse files Browse the repository at this point in the history
  • Loading branch information
proog128 committed Apr 6, 2021
1 parent 395c52e commit fc08213
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/2.0/Khronos/KHR_materials_specular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Thomas Dideriksen, Amazon
* Alex Wood, AGI [@abwood](https://twitter.com/abwood)
* Ed Mackey, AGI [@emackey](https://twitter.com/emackey)
* Alexey Knyazev [@lexaknyazev](https://github.com/lexaknyazev)

Copyright (C) 2018-2021 The Khronos Group Inc. All Rights Reserved. glTF is a trademark of The Khronos Group Inc.
See [Appendix](#appendix-full-khronos-copyright-statement) for full Khronos Copyright Statement.
Expand Down Expand Up @@ -101,7 +102,7 @@ As with specular factor, `base` will be weighted with the directional-dependent
![](figures/specular-color.png)
![](figures/specular-color-2.png)

The specular color factor is allowed to be set to color 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 and f0 reflectance from IOR is clamped. Please refer to [Implementation](#Implementation) for detailed instructions on where to place the clamping operation.
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.

## Implementation

Expand Down

0 comments on commit fc08213

Please sign in to comment.