Click or drag to resize
DigitalRuneFogGetIntensity Method
Gets the fog intensity at the specified target position.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float GetIntensity(
	FogNode fogNode,
	CameraNode cameraNode,
	Vector3F targetPosition
)

Parameters

fogNode
Type: DigitalRune.Graphics.SceneGraphFogNode
The fog node.
cameraNode
Type: DigitalRune.Graphics.SceneGraphCameraNode
The camera node.
targetPosition
Type: DigitalRune.Mathematics.AlgebraVector3F
The target position.

Return Value

Type: Single
The fog intensity (0 = no fog; 1 = full fog, nothing else visible).
Exceptions
ExceptionCondition
ArgumentNullExceptionfogNode or cameraNode is .
See Also