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 1
1
Change Log / Ray Tracing in One Weekend
2
2
====================================================================================================
3
3
4
- # v4.0.2 (2024-10-01 )
4
+ # v4.0.2 (in progress )
5
5
6
6
### Common
7
7
8
8
### In One Weekend
9
+ - Fix -- Fix equation for refracted rays of non-unit length (#1644 )
9
10
10
11
### The Next Week
11
12
Original file line number Diff line number Diff line change 3310
3310
3311
3311
If we solve for $\mathbf{R'}_{\bot}$ and $\mathbf{R'}_{\parallel}$ we get:
3312
3312
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}) $$
3314
3314
$$ \mathbf{R'}_{\parallel} = -\sqrt{1 - |\mathbf{R'}_{\bot}|^2} \mathbf{n} $$
3315
3315
3316
3316
You 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