文档

Unity Engine

Unity Engine

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

Prepare the integrator.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

Device context.

world

World.

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.