--- layout: stdlib-reference --- # ObjectRayDirection ## Description Returns the ray direction in object space of the current instance. ## Signature
vector<float, 3> ObjectRayDirection();
## Return value
Object-space direction vector of the ray
## Remarks
Transformed by the inverse of the instance transform
## Availability and Requirements
Defined for the following targets:
#### hlsl
Available in stages: `intersection`, `closesthit`, `anyhit`.
#### glsl
Available in stages: `intersection`, `closesthit`, `anyhit`.
#### cuda
Available in stages: `intersection`, `closesthit`, `anyhit`.
#### spirv
Available in stages: `intersection`, `closesthit`, `anyhit`.
Requires capability: `spvRayTracingKHR`.