Skip to content

Latest commit

 

History

History
87 lines (54 loc) · 1.99 KB

id3dxprtengine--setminmaxintersection.md

File metadata and controls

87 lines (54 loc) · 1.99 KB
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
APIRef
kbSyntax
ID3DXPRTEngine.SetMinMaxIntersection
COM
d3dx9.lib
d3dx9.dll

ID3DXPRTEngine::SetMinMaxIntersection method

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.

Syntax

HRESULT SetMinMaxIntersection(
  [in] FLOAT fMin ,
  [in] FLOAT fMax
);

Parameters

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.

Return value

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.

Remarks

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

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTEngine