You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RayTracingInOneWeekend.jl
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Fast = false
9
9
const F = Float32
10
10
const N =8# vector width
11
11
12
-
const Point = SVector{3, F} # We use F so we dont have points of different types, otherwise Ray, Sphere become parametric types and HittableList needs to be contructed carefully to ensure same types everywhere. (can we somehow promote it)
12
+
const Point = SVector{3, F} # We use F so we dont have points of different types, otherwise Ray, Sphere become parametric types and HittableList needs to be constructed carefully to ensure same types everywhere. (can we somehow promote it)
13
13
const Spectrum = SVector{3, F}
14
14
15
15
@with_kwstruct Ray @deftype Point
@@ -87,7 +87,7 @@ function Camera(nx::Integer=400, ny=imagesize(nx, 16/9)[2], pinhole_location=Poi
87
87
u =normalize(w × up)
88
88
v = w × u
89
89
90
-
right = u * camera_width / nx
90
+
right = u * camera_width / nx
91
91
down = v * camera_height / ny
92
92
93
93
camera_centre = pinhole_location + w * focus_distance
0 commit comments