From 1bfdbbf531dfc049ad9f01a431c3f7c0a5c17e28 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 3 Nov 2012 10:03:46 +0100 Subject: [PATCH] Ambient occlusion calcualator now actually uses the return value from isVoxelTransparent. --- .../include/PolyVoxCore/AmbientOcclusionCalculator.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h b/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h index 7d215c92..3de70fa6 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h +++ b/library/PolyVoxCore/include/PolyVoxCore/AmbientOcclusionCalculator.h @@ -56,12 +56,8 @@ namespace PolyVox bool operator()(const SimpleVolume::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;