Sets the minimum and maximum distances of intersection between 3D objects. These distance values can be used to control the minimum or maximum distance that objects can shadow or reflect light. For example, the method can be used to limit the shadowing of nearby features of a 3D model.
HRESULT SetMinMaxIntersection( FLOAT fMin , FLOAT fMax );
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
This method cannot be used in precomputed radiance transfer (PRT) simulations that run in the GPU. See ID3DXPRTEngine::ComputeDirectLightingSHGPU.
Header: Declared in D3dx9mesh.h.