Added control over the number of samples taken in the ambient occlusion calculator.
This commit is contained in:
@ -32,7 +32,7 @@ namespace PolyVox
|
||||
class AmbientOcclusionCalculator
|
||||
{
|
||||
public:
|
||||
AmbientOcclusionCalculator(Volume<VoxelType>* volInput, Array<3, uint8_t>* arrayResult, Region region, float fRayLength);
|
||||
AmbientOcclusionCalculator(Volume<VoxelType>* volInput, Array<3, uint8_t>* arrayResult, Region region, float fRayLength, uint8_t uNoOfSamplesPerOutputElement);
|
||||
~AmbientOcclusionCalculator();
|
||||
|
||||
void execute(void);
|
||||
@ -44,6 +44,8 @@ namespace PolyVox
|
||||
Array<3, uint8_t>* m_arrayResult;
|
||||
float m_fRayLength;
|
||||
|
||||
uint8_t m_uNoOfSamplesPerOutputElement;
|
||||
|
||||
uint16_t mRandomUnitVectorIndex;
|
||||
uint16_t mRandomVectorIndex;
|
||||
uint16_t mIndexIncreament;
|
||||
|
Reference in New Issue
Block a user