Fix up the dielectric, and output as PNG (#4)

This commit is contained in:
Patrick Stevens
2021-04-18 11:43:10 +01:00
committed by GitHub
parent 5c1b634539
commit 52aa652306
12 changed files with 348 additions and 76 deletions

View File

@@ -30,6 +30,7 @@ module Camera =
/// View angle is in radians (specified arbitrarily)
let makeBasic
(samplesPerPixel : int)
(focalLength : float)
(aspectRatio : float)
(origin : Point)
@@ -51,5 +52,5 @@ module Camera =
View = view
ViewportXAxis = xAxis
ViewportYAxis = yAxis
SamplesPerPixel = 60
SamplesPerPixel = samplesPerPixel
}