Ambient occlusion calcualator now actually uses the return value from isVoxelTransparent.
This commit is contained in:
parent
46de894af1
commit
1bfdbbf531
@ -56,12 +56,8 @@ namespace PolyVox
|
||||
bool operator()(const SimpleVolume<uint8_t>::Sampler& sampler)
|
||||
{
|
||||
uint8_t sample = sampler.getVoxel();
|
||||
|
||||
bool direct = sample == 0;
|
||||
bool func = mIsVoxelTransparentCallback(sample);
|
||||
assert(direct == func);
|
||||
|
||||
return direct;
|
||||
bool func = (*(mIsVoxelTransparentCallback))(sample);
|
||||
return func;
|
||||
}
|
||||
|
||||
const IsVoxelTransparentCallback& mIsVoxelTransparentCallback;
|
||||
|
Loading…
x
Reference in New Issue
Block a user