Commit 0f18110
committed
Handle the case when surface normal looks away from the camera
This can happen on very bumpy surfaces that are simulated only by normal
maps. In real life these points should be hidden by the relief of the
surface, but in render they are often visible.
They shouldn't be rendered as shaded as it's done for the light-normal
angle, because they can still be lit, but the angle should be clamped
from below.1 parent 47371ad commit 0f18110
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
0 commit comments