| LensFlareQuerySize Property |
Gets or sets the size of the lens flare used in the occlusion query. See remarks.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public float QuerySize { get; set; }
Public Property QuerySize As Single
Get
Set
public:
property float QuerySize {
float get ();
void set (float value);
}
member QuerySize : float32 with get, set
Property Value
Type:
Single
The size of the lens flare used in the occlusion query. The default value is 0.1 for
directional lights and 0.5 for local lights. See remarks!
Exceptions Remarks
The query size is the approximate size of the light source. This value is used in the
occlusion query to determine the visibility of the lens flare effect. The meaning of the
value depends on the type of lens flare:
- Directional lights (IsDirectional = true) -
The query size is the height of the light source relative to the viewport.
Example: QuerySize = 0.1 means that the light source is approximately 1/10 of the viewport.
- Local lights (IsDirectional = false) -
The query size is the size of the light source in world space.
Example: QuerySize = 0.5 means that the light source is 0.5 units wide.
See Also