RayTMin

A float representing the current parametric starting point for the ray.

Syntax

float RayTMin();

Remarks

RayTMin defines the starting point of the ray according to the following formula: Origin + (Direction * RayTMin). Origin and Direction may be in either world or object space, which results in either a world or an object space starting point.

RayTMin is specified in the call to TraceRay, and is constant for the duration of that call.

This function can be called from the following raytracing shader types:

See also

Direct3D 12 Raytracing HLSL Reference