Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/SHMath.h |
Include | #include "Math/SHMath.h" |
Syntax
template<int32 MaxSHOrder>
class TSHVectorRGB
Remarks
A vector of colored spherical harmonic coefficients.
Variables
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TSHVectorRGB () |
||
![]() |
TSHVectorRGB
(
const TSHVectorRGB< OtherOrder >& Other |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddAmbient
(
const FLinearColor& Intensity |
Adds ambient lighting. |
![]() |
void | AddIncomingRadiance
(
const FLinearColor& IncomingRadiance, |
Adds an impulse to the SH environment. |
![]() |
void | ApplyWindowing
(
float Lambda |
|
![]() ![]() |
bool | ||
![]() ![]() |
FLinearColor | CalcIntegral () |
Calculates the integral of the function over the surface of the sphere. |
![]() |
void | Desaturate
(
float DesaturateFraction |
|
![]() ![]() |
TSHVector< MaxSHOrder > | GetLuminance () |
Calculates greyscale spherical harmonic coefficients. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
TSHVectorRGB & | operator*=
(
const float& Scalar |
In-place scalar multiplication operator. |
![]() |
TSHVectorRGB & | operator+=
(
const TSHVectorRGB& InB |
In-place addition operator. |
![]() |
TSHVectorRGB & | operator-=
(
const TSHVectorRGB& InB |
In-place subtraction operator. |