Importance Sample

Importance Sample

Windows
MacOS
Linux

Distribute sample points proportional to Texture2D luminance.

Target is Importance Sampling Library

Importance Sample
Texture
Rand
X0.0
Y0.0
Samples
0
Intensity
0.0
Sample Position
X0.0
Y0.0
Sample Color
Sample Intensity
0.0
Sample Size
0.0

Inputs

Texture
Importance Texture Structure (by ref)
Rand
Vector 2D Structure (by ref)

Random 2D point with components evenly distributed between 0 and 1

Samples
Integer

Total number of samples that will be used

Intensity
Float

Total intensity for light

Outputs

Sample Position
Vector 2D Structure
Sample Color
Linear Color Structure
Sample Intensity
Float
Sample Size
Float
Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback