description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the minimum and maximum distances of intersection between 3D objects. |
da825c70-0c55-4303-b78a-a761ba037182 |
ID3DXPRTEngine::SetMinMaxIntersection method (D3DX9Mesh.h) |
reference |
05/31/2018 |
|
|
|
|
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(
[in] FLOAT fMin ,
[in] FLOAT fMax
);
-
fMin [in]
-
Type: FLOAT
Minimum intersection distance. Must be positive and less than fMax.
-
fMax [in]
-
Type: FLOAT
Maximum intersection distance. If 0.0f, the previous value will be used; otherwise, must be greater than fMin.
Type: HRESULT
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.
Requirement | Value |
---|---|
Header |
|
Library |
|