Rebel Fork Framework
Urho3D::SphericalHarmonicsDot9 Struct Reference

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.
 
SphericalHarmonicsDot9operator+= (const SphericalHarmonicsDot9 &rhs)
 Accumulate spherical harmonics (inplace).
 
SphericalHarmonicsDot9operator+= (const Vector3 &rhs)
 Accumulate spherical harmonics with constant value.
 
SphericalHarmonicsDot9operator*= (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.
 

Detailed Description

Spherical harmonics, optimized for dot products.


The documentation for this struct was generated from the following files: