PrtEngine.ShadowRayIntersects Method |
Language: |
Uses efficient ray-tracing in precomputed radiance transfer (PRT) simulations to determine whether a ray intersects a mesh. Typically used to determine whether a given point is in shadow.
Visual Basic Public Function ShadowRayIntersects( _
ByVal rayPosition As Vector3, _
ByVal rayDirection As Vector3 _
) As BooleanC# public bool ShadowRayIntersects(
Vector3 rayPosition,
Vector3 rayDirection
);C++ public:
bool ShadowRayIntersects(
Vector3 rayPosition,
Vector3 rayDirection
);JScript public function ShadowRayIntersects(
rayPosition : Vector3,
rayDirection : Vector3
) : boolean;
rayPosition Microsoft.DirectX.Vector3
A Vector3 structure that specifies the point where the ray begins.rayDirection Microsoft.DirectX.Vector3
A Vector3 structure that specifies the direction of the ray.
System.Boolean
true if the ray intersects the current mesh, or false if it does not.
Use SetMinMaxIntersection to set minimum and maximum distances of intersection with the ray.
This method executes faster than ClosestRayIntersects.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center