Spot | |
public class SpotLight : PointLight, ISpotLight, IPointLight, ILight, IDirectionalLight
The SpotLight type exposes the following members.
| Name | Description | |
|---|---|---|
| SpotLight | Initializes a new instance of the SpotLight class. | |
| SpotLight(Vector3, Vector3, Single) | Initializes a new instance of the SpotLight class. | |
| SpotLight(Vector3, Vector3, Single, Single, Single) | Initializes a new instance of the SpotLight class. |
| Name | Description | |
|---|---|---|
| Direction | Gets or sets a Vector3 that specifies the direction of this light. | |
| FallOff | Gets or sets a fallout value that specifies how the light intensity attenuates between inner and outer cone. Default value is 2.0. | |
| InnerConeAngle | Gets or sets an inner cone angle in degrees. Default value is 40. | |
| OuterConeAngle | Gets or sets an outer cone angle in degrees. Default value is 50. |
| Name | Description | |
|---|---|---|
| GetNormalizedDirection | Returns the Direction vector normalized to unit length. | |
| GetSpotLightPhi | Returns the Cos value of half of OuterConeAngle. This value is calculated by: phi = MathF.Cos(OuterConeAngle * MathF.PI / 360f). | |
| GetSpotLightTheta | Returns the Cos value of half of InnerConeAngle. This value is calculated by: theta = MathF.Cos(InnerConeAngle * MathF.PI / 360f). | |
| ToString |
Returns a string that represents the current object.
(Overrides PointLightToString) |
| Name | Description | |
|---|---|---|
| DefaultFallout | Default FallOff value for SpotLight |