ID3DXPRTEngine::SetMinMaxIntersection

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
);

Parameters

fMin
[in] Minimum intersection distance. Must be positive and less than fMax.
fMax
[in] Maximum intersection distance. If 0.0f, the previous value will be used; otherwise, must be greater than fMin.

Return Values

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.

Remarks

This method cannot be used in precomputed radiance transfer (PRT) simulations that run in the GPU. See ID3DXPRTEngine::ComputeDirectLightingSHGPU.

Requirements

Header: Declared in D3dx9mesh.h.