Commit Graph

14 Commits

Author SHA1 Message Date
d06dbdf054 Bit renaming. Old Array class is gone, and is replaced by the Array2D class which has also been renamed to Array. 2014-08-24 22:30:50 +02:00
bb87e9e628 Fix Ambient Occlusion Calculator to accept functors, functions and lambdas
By changing the 'pass by value' to be a 'pass by const reference' (and
adding some const qualifiers) the calculator can take any of the three
types.

Performance could be improved further using C++11 perfect forwarding to
pass the function on without changing a thing. I added a comment to remind
us of this.

Also added a test for passing a function and a (commented out) test for
passing a lambda.
2012-10-28 15:41:53 +00:00
d6640f64d0 Add benchmark annotations to the tests
This will affect total running times simce some tests will be run multiple
times but it allows precise becnhmarking.
2012-10-27 21:37:54 +01:00
b86a3552e6 Tidying up unclassed ambient occlusion calculator. 2012-10-05 15:57:41 +02:00
3b61adefaa Work unclassing ambientOcclusionCalculator 2012-10-05 15:42:16 +02:00
419fa2e5d4 Work on unclassing the ambient occlusion calculation as it is currently making use of the old raycasts. 2012-10-02 21:05:09 +02:00
9db04f38bc Removed use of template template parameters from Raycast and AmbientOcclusionCalculator. 2012-05-31 13:31:42 +02:00
0e16b0d07e Raycast and ambient occlusion tests now use primitive types instead of Material/Density classes. 2012-03-27 14:32:33 +02:00
6d656ad173 Work on voxel refactoring... 2012-03-27 14:21:43 +02:00
b3b22036c1 Updated ambient occlusion tests as a result of 'abs' fixes to raycast. 2012-01-11 18:21:20 +01:00
71e9921b5f Fix test values to those on Linux 2011-06-19 13:07:57 +02:00
bb51313939 Updated unit tests results to match CDash machine. 2011-06-18 23:07:35 +01:00
c86a7f58e0 Updated the TestAmbientOcclusionCalculator reference values to match those from Linux/GCC, so that tests pass on CDash.
For some reason Windows/VS2010 gives slightly different results - this needs investigating.
2011-06-12 13:14:19 +01:00
ffa4fcaade Added test for AmbientOcclusionCalculator. 2011-06-11 18:04:04 +01:00