--- layout: stdlib-reference --- # ObjectRayOrigin ## Description Returns the ray origin in object space of the current instance. ## Signature
vector<float, 3> ObjectRayOrigin();
## Return value
Object-space position where the ray originated
## 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`.