engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FImportanceTexture结构体 参考

Texture processed for importance sampling Holds marginal PDF of the rows, as well as the PDF of each row 更多...

#include <ImportanceSamplingLibrary.h>

Public 成员函数

void ImportanceSample (const FVector2D &Rand, int Samples, float Intensity, FVector2D &SamplePosition, FLinearColor &SampleColor, float &SampleIntensity, float &SampleSize) const
 Distribute sample points proportional to Texture2D luminance. 更多...
 

详细描述

Texture processed for importance sampling Holds marginal PDF of the rows, as well as the PDF of each row

成员函数说明

◆ ImportanceSample()

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

Distribute sample points proportional to Texture2D luminance.

参数
Rand- Random 2D point with components evenly distributed between 0 and 1
Samples- Total number of samples that will be used
Intensity- Overall target intensity scale @outparam SamplePosition - Importance sampled 2D output texture coordinate (0-1) @outparam SampleColor - Representative color near Position from MIP level for SampleSize @outparam SampleIntensity - Intensity of individual point @outparam SampleSize - Local density of points near Position (scaled for 1x1 texture space)

该结构体的文档由以下文件生成: