| BillboardNormal Enumeration |
Defines the normal vector of a billboard.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public enum BillboardNormal
Public Enumeration BillboardNormal
public enum class BillboardNormal
Members
| Member name | Value | Description |
---|
| ViewPlaneAligned | 0 |
The billboard normal is parallel to the view vector of the camera, but points in the
opposite direction (= towards the camera). The billboard is always parallel to the view
plane (screen) and rotates when the orientation of the camera changes.
|
| ViewpointOriented | 1 |
The billboard normal vector points from the center of the billboard towards the camera
(viewpoint). The billboard always faces the camera and rotates when the position of the
camera changes.
|
| Custom | 2 |
The billboard normal is specified explicitly.
The billboard normal is specified differently depending on the type of billboard:
- Billboards -
The normal vector of a regular billboard is given by the BillboardNode. The
normal vector is the local z-axis (0, 0, 1) of the scene node.
- Particles -
The normal vector of particles is defined by a particle parameter. The
ParticleSystem needs to have a uniform or varying particle parameter called
"Normal".
|
Remarks
Billboards are oriented, textured polygons. The billboard orientation is usually defined by
two vectors: the normal vector and the axis vector. The normal vector of a billboard is the
vector that points away from the billboard plane, usually towards the viewpoint (camera). The
BillboardNormal enumeration defines which normal vector is used for rendering.
See Also