UImportanceSamplingLibrary::RandomSobolCell2D

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 FVector2D RandomSobolCell2D
(
    int32 Index,
    int32 NumCells,
    FVector2D Cell,
    FVector2D Seed
)

Returns

Sobol-distributed random 2D position in the given grid cell

Parameters

Parameter

Description

Index

Which sequential point in the cell (starting at 0)

NumCells

Size of cell grid, 1 to 32768. Rounded up to the next power of two

Cell

Give a point from this integer grid cell

Seed

Random 2D seed (components in the range 0-1) to randomize across multiple sequences

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