LowPassFilter no longer requires convertToDensity() but instead assumes voxel types define operator+=, operator/=, etc.
This commit is contained in:
@ -76,6 +76,18 @@ namespace PolyVox
|
||||
return !(*this == rhs);
|
||||
}
|
||||
|
||||
Density<Type>& operator+=(const Density<Type>& rhs)
|
||||
{
|
||||
m_uDensity += rhs.m_uDensity;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Density<Type>& operator/=(uint32_t rhs)
|
||||
{
|
||||
m_uDensity /= rhs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
DensityType getDensity() const throw() { return m_uDensity; }
|
||||
//MaterialType getMaterial() const throw() { return 1; }
|
||||
|
||||
|
Reference in New Issue
Block a user