Standard constructor.
Syntax
'Declaration
Public Function New( _
ByVal As Vector3D, _
ByVal As Color, _
ByVal As Color, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal yieldShadow As Boolean, _
ByVal As lightType, _
ByVal As Point3D, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double, _
ByVal As Double _
)
public LightSettings(
Vector3D ,
Color ,
Color ,
bool ,
bool ,
bool yieldShadow,
lightType ,
Point3D ,
double ,
double ,
double ,
double ,
double
)
Parameters
- direction
- Direction
- color
- Color
- specular
- Specular color
- stationary
- Light behaviour, set false to mimic the Sun
- active
- Light status
- yieldShadow
- When true the light yields shadows
- type
- Light type
- position
- Position of the light (spot or point lights only)
- spotHalfAngle
- Half angle of the spot light cone in radians (range 0 - PI/2) (spot lights only)
- spotExponent
- Exponent that determines how the light is focused inside the spot light cone (spot lights only)
- constantAttenuation
- Constant attenuation (point and spot lights only)
- linearAttenuation
- Linear attenuation (point and spot lights only)
- quadraticAttenuation
- Quadratic attenuation (point and spot lights only)
See Also