Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/ImportanceSamplingLibrary.h |
Include |
#include "Kismet/ImportanceSamplingLibrary.h" |
struct FImportanceTexture
Texture processed for importance sampling Holds marginal PDF of the rows, as well as the PDF of each row
Name | Description | ||
---|---|---|---|
|
TArray< float > |
ConditionalCDF |
Unnormalized cumulative probability of each pixel in a row (Size.Y row CDFs of Size.X+1) First entry of each row is zero, final entry in each row is the CDF normalization factor for that row |
|
TArray< float > |
MarginalCDF |
Unnormalized cumulative density of the image by rows (Size.Y+1) First entry is zero, final entry is the CDF normalization factor |
|
int |
NumMips |
Active number of MIP levels |
|
Size |
Active texture dimensions, capped to 1024 x 1024 |
|
|
TWeakObjectPtr<... |
Texture |
Original texture object for Break function. |
|
TextureData |
Packed copy of MIP level data for filtered sampling (capped to 1024x1024) local copy seems better than allocating and copying the same data temporarily for each sample |
|
|
TEnumAsByte< EI... |
Weighting |
Original importance weight for Break function. |
Name | Description | |
---|---|---|
|
FImportanceTexture() |
Default constructor, must Initialize before use |
|
FImportanceTexture ( |
Constructor with initialization |
Name | Description | ||
---|---|---|---|
|
GetColorBilinear |
Return color of texel at given MIP level, clamped to available Mip levels |
|
|
GetColorTrilinear ( |
Return color interpolated between MIP levels |
|
|
ImportanceSample ( |
Distribute sample points proportional to Texture2D luminance. |
|
|
float |
ImportanceWeight ( |
Importance probability weight for given texel |
|
Initialize ( |
Allocate and compute PDF arrays for a texture |