Commit Graph

10 Commits

Author SHA1 Message Date
Matthew Gordon 1f84cde760 Make default material sampling cosine-weighted instead of uniform 2021-10-05 09:13:08 -04:00
Matthew Gordon 45cf4fa487 Implement importance sampling for materials 2020-09-12 11:53:01 -04:00
Matthew Gordon 7c82605d98 Add SmoothTransparentDialectric material 2020-09-12 10:01:33 -04:00
Matthew Gordon 87f62eedb0 Add photon parameter to Material::sample(), other changes to integrate() 2020-09-12 09:45:21 -04:00
Matthew Gordon 773ca99ac1 Very inefficient first-pass at global illumination 2020-09-09 20:39:32 -04:00
Matthew Gordon 2494a30aef Cast rays for single light wavelengths instead of RGB values
Colours are wrong because Spectrum class isn't implemented.

Also there's a lot of other cleanup that needs to be done.
2020-09-05 22:45:43 -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 e1c91919b8 Add RgbSamplesBsdfMaterial (not working yet) 2020-06-19 00:04:01 -04:00
Matthew Gordon cb67362ad4 Break material module up into multiple files 2020-06-11 22:28:53 -04:00