Added note.
This commit is contained in:
parent
f76be64d6b
commit
dadcf03d8d
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user