Skip to content

interpolate

float  interpolate(float val, float sx, float sy)

vector  interpolate(vector val, float sx, float sy)

vector4  interpolate(vector4 val, float sx, float sy)

bsdf  interpolate(bsdf val, float sx, float sy)

These operations can be used to generate antialiasing positions within the micropolygon rendering engine.

sx and sy are random values, such as generated by nextsample. Different values of sx and sy translate into different random positions on the micropolygon.

The returned value is undefined in the raytracing engine.

vector hitP = interpolate(P, sx, sy);