C# Class Nez.DeferredLighting.AreaLight

AreaLights work like DirLights except they only affect a specific area specified by the width/height. Note that Transform.scale will affect the size of an AreaLight.
Inheritance: DeferredLight
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
direction Vector3
intensity float

Public Methods

Method Description
AreaLight ( float width, float height ) : Microsoft.Xna.Framework
setDirection ( Vector3 direction ) : AreaLight
setHeight ( float height ) : AreaLight
setIntensity ( float intensity ) : AreaLight
setWidth ( float width ) : AreaLight

Method Details

AreaLight() public method

public AreaLight ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
return Microsoft.Xna.Framework

setDirection() public method

public setDirection ( Vector3 direction ) : AreaLight
direction Vector3
return AreaLight

setHeight() public method

public setHeight ( float height ) : AreaLight
height float
return AreaLight

setIntensity() public method

public setIntensity ( float intensity ) : AreaLight
intensity float
return AreaLight

setWidth() public method

public setWidth ( float width ) : AreaLight
width float
return AreaLight

Property Details

direction public_oe property

direction of the light
public Vector3 direction
return Vector3

intensity public_oe property

brightness of the light
public float intensity
return float