#include <Commons.h>
Public Member Functions | |
CloudParams () | |
Put default values (which are random but quite nice). | |
Public Attributes | |
unsigned int | numSprites |
Number of sprites to create. | |
boost::filesystem::path | imagePath |
Image to use for sprites. | |
float | ratio |
Ratio between height and base of the cloud. | |
float | density |
Density of sprites ; the higher, the smaller the cloud will be for a given numSprites. | |
float | spriteSizeMin |
Minimum size of each sprite. | |
float | spriteSizeMax |
Maximum size of each sprite. | |
const osg::Vec3 | axis |
Direction the sprite should face (For SPRITE mode), or billboard axis (for BILLBOARD_AXIS mode). Useless for BILLBOARD_EYE and POINT_SPRITE. | |
osg::Vec4f | lowColor |
Color for bottom elements. | |
osg::Vec4f | hiColor |
Color for top elements. | |
float | alphaOffsetMin |
Minimum offset to apply after hi/lowColor computation (might often be negative). | |
float | alphaOffsetMax |
Maximum offset to apply after hi/lowColor computation (might often be negative). | |
float | skewVMin |
Minimum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid. | |
float | skewVMax |
Maximum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid. | |
float | skewHMin |
Minimum ellipsoid factor (0 = line, 1 = circle). | |
float | skewHMax |
Maximum ellipsoid factor (0 = line, 1 = circle). | |
float | colorScaleRand |
Random amount when selecting color (between lowColor and hiColor), in [0;1]. |
Definition at line 69 of file 3D/Commons.h.
CloudParams::CloudParams | ( | ) |
Put default values (which are random but quite nice).
Definition at line 340 of file 3D/Commons.cpp.
References density, rand(), ratio, spriteSizeMax, and spriteSizeMin.
Maximum offset to apply after hi/lowColor computation (might often be negative).
Definition at line 87 of file 3D/Commons.h.
Referenced by createCloud().
Minimum offset to apply after hi/lowColor computation (might often be negative).
Definition at line 86 of file 3D/Commons.h.
Referenced by createCloud().
const osg::Vec3 CloudParams::axis |
Direction the sprite should face (For SPRITE mode), or billboard axis (for BILLBOARD_AXIS mode). Useless for BILLBOARD_EYE and POINT_SPRITE.
Definition at line 83 of file 3D/Commons.h.
Referenced by createCloud().
Random amount when selecting color (between lowColor and hiColor), in [0;1].
Definition at line 92 of file 3D/Commons.h.
Referenced by createCloud().
float CloudParams::density |
Density of sprites ; the higher, the smaller the cloud will be for a given numSprites.
Definition at line 78 of file 3D/Commons.h.
Referenced by CloudParams(), and createCloud().
osg::Vec4f CloudParams::hiColor |
boost::filesystem::path CloudParams::imagePath |
osg::Vec4f CloudParams::lowColor |
unsigned int CloudParams::numSprites |
Number of sprites to create.
Definition at line 74 of file 3D/Commons.h.
Referenced by createCloud().
float CloudParams::ratio |
Ratio between height and base of the cloud.
Definition at line 77 of file 3D/Commons.h.
Referenced by CloudParams(), and createCloud().
float CloudParams::skewHMax |
Maximum ellipsoid factor (0 = line, 1 = circle).
Definition at line 91 of file 3D/Commons.h.
Referenced by createCloud().
float CloudParams::skewHMin |
Minimum ellipsoid factor (0 = line, 1 = circle).
Definition at line 90 of file 3D/Commons.h.
Referenced by createCloud().
float CloudParams::skewVMax |
Maximum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid.
Definition at line 89 of file 3D/Commons.h.
Referenced by createCloud().
float CloudParams::skewVMin |
Minimum reduction of the top: 0 = cloud is like a column, 1 = cloud is like a pyramid.
Definition at line 88 of file 3D/Commons.h.
Referenced by createCloud().
Maximum size of each sprite.
Definition at line 80 of file 3D/Commons.h.
Referenced by CloudParams(), and createCloud().
Minimum size of each sprite.
Definition at line 79 of file 3D/Commons.h.
Referenced by CloudParams(), and createCloud().