Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

RadeonRaysProbeIntegrator.Prepare

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void Prepare(LightTransport.IDeviceContext context, LightTransport.IWorld world, BufferSlice<Vector3> positions, float pushoff, int bounceCount);

Parameters

world World.
positions BufferSlice containing the probe positions to integrate.
pushoff The offset to add to the rays traced from each probe position. You can use this parameter to prevent self-intersections when 32 bit floating point precision is an issue, for instance when integrating a large open world.
bounceCount Number of light bounces.

Description

Prepare the integrator.

The preparation can take a significant time if the world is large or OpenCL kernels haven't been written to cache yet.