#include <osg/Vec4f>
Go to the source code of this file.
- Author
- Jakub Kroupal (original Atmospheric plug-in)
-
Rastislav Tisovcik (revised Clouds ability)
- Version
- 2.0
- Date
- 2008 (Atmospheric), January 2011 - February 2011 (Clouds)
void clampColor |
( |
osg::Vec4f & |
color, |
|
|
float |
maximum |
|
) |
| |
Clamps the color in case some of its values are larger than the given maximum.
- Parameters
-
color | Color to be clamped. |
maximum | Threshold value; color channels larger than maximum will be clamped to it, smaller values will be preserved. |
float interpolationLinear |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
t |
|
) |
| |
Linear interpolation of two values.
- Parameters
-
a | The first value to interpolate. |
b | The second value to interpolate. |
t | Value on the interval. T = 0.0 returns as a result value A, T = 1.0 returns as a result value B |
Returns a pseudo-random float value from the interval <0, 1.0)
- Returns
- Pseudo-random float value
unsigned int randGauss |
( |
unsigned int |
cislo, |
|
|
unsigned int |
n |
|
) |
| |
Returns a pseudo-random unsigned integer value based on Gauss distribution
- Parameters
-
[in] | number | Maximum value of the number |
[in] | n | Number of iterations |
- Returns
- Pseudo-random number based on Gauss distribution