UImportanceSamplingLibrary

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/ImportanceSamplingLibrary.h

Include

#include "Kismet/ImportanceSamplingLibrary.h"

Syntax

class UImportanceSamplingLibrary : public UBlueprintFunctionLibrary

Constructors

Name Description

Public function

UImportanceSamplingLibrary

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

void

 

BreakImportanceTexture

(
    const FImportanceTexture& Importan...,
    UTexture2D*& Texture,
    TEnumAsByte< EImportanceWeight::Typ...
)

Get texture used to create an ImportanceTexture object

Public function Static

void

 

ImportanceSample

(
    const FImportanceTexture& Texture,
    const FVector2D& Rand,
    int Samples,
    float Intensity,
    FVector2D& SamplePosition,
    FLinearColor& SampleColor,
    float& SampleIntensity,
    float& SampleSize
)

Distribute sample points proportional to Texture2D luminance.

Public function Static

FImportanceT...

 

MakeImportanceTexture

(
    UTexture2D* Texture,
    TEnumAsByte< EImportanceWeight::Typ...
)

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

Public function Static

FVector2D

 

NextSobolCell2D

(
    int32 Index,
    int32 NumCells,
    FVector2D PreviousValue
)

Public function Static

FVector

 

NextSobolCell3D

(
    int32 Index,
    int32 NumCells,
    FVector PreviousValue
)

Public function Static

float

 

NextSobolFloat

(
    int32 Index,
    int32 Dimension,
    float PreviousValue
)

Public function Static

FVector2D

 

RandomSobolCell2D

(
    int32 Index,
    int32 NumCells,
    FVector2D Cell,
    FVector2D Seed
)

Public function Static

FVector

 

RandomSobolCell3D

(
    int32 Index,
    int32 NumCells,
    FVector Cell,
    FVector Seed
)

Public function Static

float

 

RandomSobolFloat

(
    int32 Index,
    int32 Dimension,
    float Seed
)

Sobol quasi-random generator functions

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