Class DirectLightBase
Base implementation of IDirectLight.
[DataContract]
public abstract class DirectLightBase : ColorLightBase, IDirectLight, IColorLight, ILight
- Inheritance
-
DirectLightBase
- Implements
- Derived
- Inherited Members
Properties
HasBoundingBox
Gets a value indicating whether this instance has a bounding box.
public abstract bool HasBoundingBox { get; }
Property Value
- bool
true
if this instance has a bounding box; otherwise,false
.
Shadow
Gets or sets the shadow.
[DataMember(200)]
public LightShadowMap Shadow { get; protected set; }
Property Value
- LightShadowMap
The shadow.
Methods
ComputeBounds(Vector3, Vector3)
Computes the bounds of this light..
public abstract BoundingBox ComputeBounds(Vector3 position, Vector3 direction)
Parameters
Returns
- BoundingBox
BoundingBox.
ComputeScreenCoverage(RenderView, Vector3, Vector3)
Computes the screen coverage of this light in pixel.
public abstract float ComputeScreenCoverage(RenderView renderView, Vector3 position, Vector3 direction)
Parameters
renderView
RenderViewThe render view.
position
Vector3The position of the light in world space.
direction
Vector3The direction of the light in world space.
Returns
- float
The largest screen coverage width or height size in pixels of this light.