| ScatteringSkyNodeGetFogColor Method (Int32, Single) |
Approximates the
Fog color by sampling the sky horizon colors.
Namespace: DigitalRune.Graphics.SceneGraphAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public Vector3F GetFogColor(
int numberOfSamples,
float elevation
)
Public Function GetFogColor (
numberOfSamples As Integer,
elevation As Single
) As Vector3F
public:
Vector3F GetFogColor(
int numberOfSamples,
float elevation
)
member GetFogColor :
numberOfSamples : int *
elevation : float32 -> Vector3F
Parameters
- numberOfSamples
- Type: SystemInt32
The number of samples. - elevation
- Type: SystemSingle
The elevation angle at which to sample. The angle is specified in radians and is usually
in the range [0, π/2]. Use 0 to sample exactly at the horizon. Use positive values to sample
above the horizon.
Return Value
Type:
Vector3FThe fog color.
Remarks You might need to desaturate the fog color.
See Also