Prepare(IDeviceContext, IWorld, BufferSlice<Vector3>, float, int)
Prepare the integrator.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor
public void Prepare(IDeviceContext context, IWorld world, BufferSlice<Vector3> positions, float pushoff, int bounceCount)
Parameters
Device context.
World.
BufferSlice containing the probe positions to integrate.
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.
Number of light bounces.
Remarks
The preparation can take a significant time if the world is large or OpenCL kernels haven't been written to cache yet.