Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > FImportanceTexture
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/ImportanceSamplingLibrary.h |
Include | #include "Kismet/ImportanceSamplingLibrary.h" |
Source | /Engine/Source/Runtime/Engine/Private/Kismet/ImportanceSamplingLibrary.cpp |
void ImportanceSample
&40;
const FVector2D & Rand,
int Samples,
float Intensity,
FVector2D & SamplePosition,
FLinearColor & SampleColor,
float & SampleIntensity,
float & SampleSize
&41; const
Remarks
Distribute sample points proportional to Texture2D luminance.
Parameters
Name | Description |
---|---|
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 SamplePosition - Importance sampled 2D output texture coordinate (0-1) SampleColor - Representative color near Position from MIP level for SampleSize SampleIntensity - Intensity of individual point SampleSize - Local density of points near Position (scaled for 1x1 texture space) |