Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UImportanceSamplingLibrary
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 |
static FImportanceTexture MakeImportanceTexture
&40;
UTexture2D &42; Texture,
TEnumAsByte< EImportanceWeight::Type > WeightingFunc
&41;
Remarks
Create an FImportanceTexture object for texture-driven importance sampling from a 2D RGBA8 texture new ImportanceTexture object for use with ImportanceSample
Parameters
Name | Description |
---|---|
Texture | Texture object to use. Must be RGBA8 format. |
WeightingFunc | How to turn the texture data into probability weights |