Matthew Gordon
eccb444721
Make ToneMapper generic over it's input type
2020-09-01 23:33:32 -04:00
Matthew Gordon
7c8baf57da
Use Array2D as storage for ImageRgbF
2020-09-01 22:44:55 -04:00
Matthew Gordon
ef0fb96f9d
Use Array2D for storage in ImageRgbU8
2020-09-01 22:26:50 -04:00
Matthew Gordon
f5b0a35635
Replace nalgebra matrix and vector classes with own classes
...
Nalgebra only used to find matrix inverse now.
2020-08-28 23:08:44 -04:00
Matthew Gordon
99cf127c9f
Change a bunch of generics that used with RealType to just use f64
2020-08-18 23:12:28 -04:00
Matthew Gordon
4451d1d71f
Add option to save image to PNG file
2020-06-20 14:53:17 -04:00
Matthew Gordon
bdd05f3527
Refactor main rendering loop to use TileIterator
...
This removes the old multithreading code, but will be using rayon
soon.
2020-02-20 16:47:15 -05:00
Matthew Gordon
d6b5c87759
Create Real trait to replace nalgebra::RealField
...
Real inherits RealField, but I want to add more to it.
2020-02-10 16:52:09 -05:00
Matthew Gordon
c0d0f81335
Replace ClampingToneMapper::new() with derive(Default)
2019-12-07 10:58:04 -05:00
Matthew Gordon
d98144ab74
Minor cleanup and tidying; no change in functionality.
2019-12-07 10:58:04 -05:00
Matthew Gordon
f58afb2ded
Apply tone mapping to image, not colours
...
Apply tone mapping and conversion from floats to bytes only on
final image. This will allow better tone mapping operators later
and for now removes NormalizedAsFloat trait constraints that were
creeping through everything.
2019-11-19 21:32:47 -05:00
Matthew Gordon
f13b585bfe
Shapes can now be colours other than gray
2019-11-19 07:43:00 -05:00
Matthew Gordon
9d47821062
Change memory layout of Image, so it's not drawn upside-down by SDL
2019-11-12 16:47:56 -05:00
Matthew Gordon
c059aebe11
Move OutputImage into it's own module
2019-11-08 07:52:38 -05:00