Rebel Fork Framework
|
Spherical harmonics, optimized for dot products. More...
#include <Urho3D/Math/SphericalHarmonics.h>
Public Member Functions | |
SphericalHarmonicsDot9 ()=default | |
Construct default. | |
SphericalHarmonicsDot9 (const Vector3 &color) | |
Construct from color in linear color space. | |
SphericalHarmonicsDot9 (const Color &color) | |
Construct from color in linear color space. | |
SphericalHarmonicsDot9 (SphericalHarmonicsColor9 sh) | |
Construct from spherical harmonics. | |
Vector3 | Evaluate (const Vector3 &dir) const |
Evaluate at given direction. | |
Vector3 | EvaluateAverage () const |
Evaluate average. | |
SphericalHarmonicsDot9 & | operator+= (const SphericalHarmonicsDot9 &rhs) |
Accumulate spherical harmonics (inplace). | |
SphericalHarmonicsDot9 & | operator+= (const Vector3 &rhs) |
Accumulate spherical harmonics with constant value. | |
SphericalHarmonicsDot9 & | operator*= (float rhs) |
Scale spherical harmonics (inplace). | |
SphericalHarmonicsDot9 | operator* (float rhs) const |
Scale spherical harmonics. | |
Color | GetDebugColor () const |
Return color for SH debug rendering. | |
Public Attributes | |
Vector4 | Ar_ |
Dot product with (Nx, Ny, Nz, 1), red channel. | |
Vector4 | Ag_ |
Dot product with (Nx, Ny, Nz, 1), green channel. | |
Vector4 | Ab_ |
Dot product with (Nx, Ny, Nz, 1), blue channel. | |
Vector4 | Br_ |
Dot product with (Nx*Ny, Ny*Nz, Nz*Nz, Nz*Nx), red channel. | |
Vector4 | Bg_ |
Dot product with (Nx*Ny, Ny*Nz, Nz*Nz, Nz*Nx), green channel. | |
Vector4 | Bb_ |
Dot product with (Nx*Ny, Ny*Nz, Nz*Nz, Nz*Nx), blue channel. | |
Vector4 | C_ |
Color, multiplied by (Nx*Nx - Ny*Ny). W is always 1.0f. | |
Static Public Attributes | |
static const SphericalHarmonicsDot9 | ZERO |
Zero harmonics. | |
Spherical harmonics, optimized for dot products.