Texture processed for importance sampling Holds marginal PDF of the rows, as well as the PDF of each row 更多...
#include <ImportanceSamplingLibrary.h>
Public 成员函数 | |
| void | ImportanceSample (const FVector2D &Rand, int Samples, float Intensity, FVector2D &SamplePosition, FLinearColor &SampleColor, float &SampleIntensity, float &SampleSize) const |
| Distribute sample points proportional to Texture2D luminance. 更多... | |
Texture processed for importance sampling Holds marginal PDF of the rows, as well as the PDF of each row
| void FImportanceTexture::ImportanceSample | ( | const FVector2D & | Rand, |
| int | Samples, | ||
| float | Intensity, | ||
| FVector2D & | SamplePosition, | ||
| FLinearColor & | SampleColor, | ||
| float & | SampleIntensity, | ||
| float & | SampleSize | ||
| ) | const |
Distribute sample points proportional to Texture2D luminance.
| Rand | - Random 2D point with components evenly distributed between 0 and 1 |
| Samples | - Total number of samples that will be used |
| Intensity | - Overall target intensity scale @outparam SamplePosition - Importance sampled 2D output texture coordinate (0-1) @outparam SampleColor - Representative color near Position from MIP level for SampleSize @outparam SampleIntensity - Intensity of individual point @outparam SampleSize - Local density of points near Position (scaled for 1x1 texture space) |