HitObject.GetRayTCurrent

Description

Returns the parametric ending point (T value at hit/miss). Valid if the hit object represents a hit or a miss. DXR 1.3 and OptiX.

Signature

float HitObject.GetRayTCurrent();

Availability and Requirements

Defined for the following targets:

hlsl

Available in stages: raygen, closesthit, miss.

Requires capability: ser_hlsl_native.

cuda

Available in stages: raygen, closesthit, miss.