Added test for AmbientOcclusionCalculator.

This commit is contained in:
David Williams
2011-06-11 18:04:04 +01:00
parent 8b353fb5bc
commit ffa4fcaade
4 changed files with 125 additions and 0 deletions

View File

@ -40,6 +40,8 @@ namespace PolyVox
,m_arrayResult(arrayResult)
,m_fRayLength(fRayLength)
,m_uNoOfSamplesPerOutputElement(uNoOfSamplesPerOutputElement)
,mRandomUnitVectorIndex(0) //Although these could be uninitialised, we
,mRandomVectorIndex(0) //initialise for consistant results in the tests.
{
//Make sure that the size of the volume is an exact multiple of the size of the array.
assert(m_volInput->getWidth() % arrayResult->getDimension(0) == 0);