File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11Change Log / Ray Tracing in One Weekend
22====================================================================================================
33
4- # v4.0.2 (2024-10-01 )
4+ # v4.0.2 (in progress )
55
66### Common
77
88### In One Weekend
9+ - Fix -- Fix equation for refracted rays of non-unit length (#1644 )
910
1011### The Next Week
1112
Original file line number Diff line number Diff line change 33103310
33113311If we solve for $\mathbf{R'}_{\bot}$ and $\mathbf{R'}_{\parallel}$ we get:
33123312
3313- $$ \mathbf{R'}_{\bot} = \frac{\eta}{\eta'} (\mathbf{R} + \ cos\theta \mathbf{n}) $$
3313+ $$ \mathbf{R'}_{\bot} = \frac{\eta}{\eta'} (\mathbf{R} + |\mathbf{R}| \ cos( \theta) \mathbf{n}) $$
33143314 $$ \mathbf{R'}_{\parallel} = -\sqrt{1 - |\mathbf{R'}_{\bot}|^2} \mathbf{n} $$
33153315
33163316You can go ahead and prove this for yourself if you want, but we will treat it as fact and move on.
You can’t perform that action at this time.
0 commit comments