Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix another graphical error showing a black box
Is needed in addition to JoeyDeVries#92 to fix all graphical errors. Happens due to divide by 0 when `roughness = 0.0` and `NdotH = 1.0`. Also use max to clamp similar fix for specular calculation instead of addition to fix the formula in normal cases
- Loading branch information