UImportanceSamplingLibrary::MakeImportanceTexture

Create an [FImportanceTexture](API\Runtime\Engine\Kismet\FImportanceTexture) object for texture-driven importance sampling from a 2D RGBA8 texture

Windows
MacOS
Linux

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

Syntax

static FImportanceTexture MakeImportanceTexture
(
    UTexture2D * Texture,
    TEnumAsByte< EImportanceWeight::Type > WeightingFunc
)

Remarks

Create an FImportanceTexture object for texture-driven importance sampling from a 2D RGBA8 texture

Returns

new ImportanceTexture object for use with ImportanceSample

Parameters

Parameter

Description

Texture

Texture object to use. Must be RGBA8 format.

WeightingFunc

How to turn the texture data into probability weights

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss