Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Prepare(IDeviceContext, IWorld, BufferSlice<Vector3>, float, int)

Prepare the integrator.
Read time 1 minuteLast updated 11 days ago

Definition

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

Parameters

Device context.

world

The integration World that Unity uses to ray trace against, when integrating validity.

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.

Remarks

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