LightSettings Class

Directional light definition.
Public Class LightSettings
This language is not supported or no code example is available.
public class LightSettings
This language is not supported or no code example is available.
Name Description
Public property Active Gets or sets the light status.
Public property Color Gets or sets the light color.
Public property ConstantAttenuation Gets or sets the constant attenuation (point and spot lights only).
Public property Direction Gets or sets the light direction.
Public property LinearAttenuation Gets or sets the linear attenuation (point and spot lights only).
Public property Position Gets or sets the position of the spot or point light.
Public property QuadraticAttenuation Gets or sets the quadratic attenuation (point and spot lights only).
Public property Specular Gets or sets the light specular color.
Public property SpotExponent Gets or sets the exponent that determines how the light is focused inside the spot light cone (range [0, 128]).
Public property SpotHalfAngle Gets or sets the half angle of the spot light cone in radians (range [0, PI/2]).
Public property Stationary Gets or sets the light behavior. Set false to mimic the Sun.
Public property Type Gets or sets the light type.
Public property YieldShadow When true the light yields realistic shadows (Only one shadow is supported).
Top
Methods
 
Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetLightDirection(double[], out float[], out float[]) Gets the light direction.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ShouldSerialize(LightSettings)
Public method ToString Returns a string that represents the current object. (inherited from Object).
Top
devDept.Graphics.LightSettings

.NET Framework

Supported in: 4.8

In this article

Definition