Click or drag to resize
DigitalRuneLensFlare Class
Defines a lens flare effect.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsLensFlare

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class LensFlare : INamedObject

The LensFlare type exposes the following members.

Constructors
  NameDescription
Public methodLensFlare
Initializes a new instance of the LensFlare class.
Top
Methods
  NameDescription
Public methodClone
Creates a new LensFlare that is a clone (deep copy) of the current instance.
Protected methodCloneCore
Makes the instance a clone (deep copy) of the specified LensFlare.
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the LensFlare derived class.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnGetSizeAndIntensity
Called when the size and intensity of a lens flare is determined.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyElements
Gets the elements of the lens flare.
Public propertyIntensity
Gets or sets the intensity of the lens flare.
Public propertyIsDirectional
Gets a value indicating whether the lens flare is caused by a directional light, such as the sun. (Directional lights are treated as if placed at an infinite distance. See remarks.)
Public propertyName
Gets or sets the name of the lens flare effect.
Public propertyQuerySize
Gets or sets the size of the lens flare used in the occlusion query. See remarks.
Public propertySize
Gets or sets the height of the lens flare relative to the viewport.
Top
Remarks

A lens flare is an effect caused by a camera lens when looking at bright light. A lens flare usually consists of multiple elements which move across the screen depending on the position of the light source: bloom and halo around the light source, light streaks, secondary rings, hexagonal patterns caused by the lens' aperture blades. The elements (e.g. a ring, a halo) is defined by creating a LensFlareElement and adding it to the Elements collection.

A LensFlareNode needs to be created to define the position and orientation of a lens flare within a 3D scene.

The property IsDirectional defines whether the light is caused by a directional light (such as the sun) or a local light source. The light direction is defined by the forward direction of the LensFlareNode.

Cloning:
LensFlares are cloneable. When Clone is called all properties including the Elements are duplicated (deep copy).

See Also