|
|
|
@ -844,6 +844,8 @@ Vector3 CubeSurface::Private::applyCosinePowerFilter(const Vector3 & filterDir,
|
|
|
|
|
return color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "nvthread/ParallelFor.h"
|
|
|
|
|
|
|
|
|
|
struct ApplyAngularFilterContext {
|
|
|
|
@ -1023,6 +1025,20 @@ CubeSurface CubeSurface::fastResample(int size, EdgeFixup fixupMethod) const
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CubeSurface::_irradianceFilter(int size, EdgeFixup fixupMethod) {
|
|
|
|
|
*this = irradianceFilter(size, fixupMethod);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CubeSurface::_cosinePowerFilter(int size, float cosinePower, EdgeFixup fixupMethod) {
|
|
|
|
|
*this = cosinePowerFilter(size, cosinePower, fixupMethod);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CubeSurface::_fastResample(int size, EdgeFixup fixupMethod) {
|
|
|
|
|
*this = fastResample(size, fixupMethod);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CubeSurface::toLinear(float gamma)
|
|
|
|
|
{
|
|
|
|
|
if (isNull()) return;
|
|
|
|
|