Added note.

This commit is contained in:
David Williams 2013-01-31 21:04:01 +01:00
parent f76be64d6b
commit dadcf03d8d

View File

@ -259,6 +259,7 @@ namespace PolyVox
float weight = triangleFilter(sz - sCentreZ); float weight = triangleFilter(sz - sCentreZ);
sumOfWeights += weight; sumOfWeights += weight;
//This is wrong! There's no need to do interpolation. Just multiply the sameple by the correct kernel value.
Vector<4, float> sample = interpolatedSample(&volDownscaledXAndY, sx, sy, sz, WrapModes::Border, SrcVolumeType::VoxelType(0)); Vector<4, float> sample = interpolatedSample(&volDownscaledXAndY, sx, sy, sz, WrapModes::Border, SrcVolumeType::VoxelType(0));
vecSum += (sample * weight); vecSum += (sample * weight);