Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/ImportanceSamplingLibrary.h |
Include |
#include "Kismet/ImportanceSamplingLibrary.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Kismet/ImportanceSamplingLibrary.cpp |
static FImportanceTexture MakeImportanceTexture
(
UTexture2D * Texture,
TEnumAsByte< EImportanceWeight::Type > WeightingFunc
)
Create an FImportanceTexture object for texture-driven importance sampling from a 2D RGBA8 texture
new ImportanceTexture object for use with ImportanceSample
Parameter |
Description |
---|---|
Texture |
Texture object to use. Must be RGBA8 format. |
WeightingFunc |
How to turn the texture data into probability weights |