Work on VolumeResampler (using real convolution).

This commit is contained in:
David Williams
2013-01-27 22:02:13 +01:00
parent d3aed35d81
commit f76be64d6b
3 changed files with 35 additions and 5 deletions

View File

@ -73,4 +73,9 @@ namespace PolyVox
v++;
return v;
}
float triangleFilter(float fInput)
{
return (std::max)(1.0f - (std::abs)(fInput), 0.0f);
}
}