Fermat
|
Spherical harmonics basis functions of order L
#include <sh.h>
Static Public Methods | |
template<typename Vector3 > | |
static CUGAR_HOST_DEVICE float | eval (const int32 i, const Vector3 &d) |
static CUGAR_HOST_DEVICE void | clamped_cosine (const Vector3f &normal, const float w, float *coeffs) |
static CUGAR_HOST_DEVICE void | constant (float k, float *coeffs) |
static CUGAR_HOST_DEVICE float | integral (const float *coeffs) |
template<typename Vector_type > | |
static CUGAR_HOST_DEVICE float | integral (const Vector_type &coeffs) |
static CUGAR_HOST_DEVICE void | solve (float *coeffs) |
Static Public Members | |
static const int32 | ORDER = L |
static const int32 | COEFFS = L*L |
|
static |
add a weighted basis expansion of a clamped cosine lobe to a given set of coefficients
normal | input normal |
w | scalar weight |
coeffs | input/output coefficients |
|
static |
return the basis expansion of a constant
k | input constant |
coeffs | output coefficients |
|
static |
evaluate the i-th coefficient at a given point
i | coefficient index |
d | direction vector |
|
inlinestatic |
return the integral of a spherical hamonics function
|
inlinestatic |
return the integral of a spherical hamonics function
|
inlinestatic |
solve the linear least squares projection for a set of coefficients
coeffs | input projection coefficients |