C# Class Nez.DeferredLighting.SpotLight

Inheritance: PointLight
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
coneAngle float

Public Methods

Method Description
SpotLight ( ) : System
SpotLight ( Color color ) : System
setConeAngle ( float coneAngle ) : SpotLight
setDirection ( Vector2 direction ) : SpotLight

wrapper for entity.transform.rotation to ease in setting up direction of spots to point at specific locations

setIntensity ( float intensity ) : SpotLight

brightness of the light

setRadius ( float radius ) : SpotLight

how far does this light reach

setZPosition ( float z ) : SpotLight

Method Details

SpotLight() public method

public SpotLight ( ) : System
return System

SpotLight() public method

public SpotLight ( Color color ) : System
color Color
return System

setConeAngle() public method

public setConeAngle ( float coneAngle ) : SpotLight
coneAngle float
return SpotLight

setDirection() public method

wrapper for entity.transform.rotation to ease in setting up direction of spots to point at specific locations
public setDirection ( Vector2 direction ) : SpotLight
direction Vector2 Direction.
return SpotLight

setIntensity() public method

brightness of the light
public setIntensity ( float intensity ) : SpotLight
intensity float Intensity.
return SpotLight

setRadius() public method

how far does this light reach
public setRadius ( float radius ) : SpotLight
radius float Radius.
return SpotLight

setZPosition() public method

public setZPosition ( float z ) : SpotLight
z float
return SpotLight

Property Details

coneAngle public_oe property

angle in degrees of the cone
public float coneAngle
return float