NAME
MPSIntersectionDistance - Returned intersection result which contains the distance from the ray origin to the intersection point.
SYNOPSIS
#include <MPSRayIntersectorTypes.h>
Public Attributes
float distance
Distance from the ray origin to the intersection point along the ray direction
vector such that intersection = ray.origin + ray.direction * distance. Is
negative if there is no intersection. If the intersection type is
MPSIntersectionTypeAny, is a positive value for a hit or a negative value
for a miss.
Detailed Description
Returned intersection result which contains the distance from the ray origin to the intersection point.
This type is available from the Metal Shading Language by including the MetalPerformanceShaders/MetalPerformanceShaders.h header.
Member Data Documentation
float MPSIntersectionDistance::distance
Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance. Is negative if there is no intersection. If the intersection type is MPSIntersectionTypeAny, is a positive value for a hit or a negative value for a miss.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.