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
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
direction Vector3
intensity float

Méthodes publiques

Méthode 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 méthode

public AreaLight ( float width, float height ) : Microsoft.Xna.Framework
width float
height float
Résultat Microsoft.Xna.Framework

setDirection() public méthode

public setDirection ( Vector3 direction ) : AreaLight
direction Vector3
Résultat AreaLight

setHeight() public méthode

public setHeight ( float height ) : AreaLight
height float
Résultat AreaLight

setIntensity() public méthode

public setIntensity ( float intensity ) : AreaLight
intensity float
Résultat AreaLight

setWidth() public méthode

public setWidth ( float width ) : AreaLight
width float
Résultat AreaLight

Property Details

direction public_oe property

direction of the light
public Vector3 direction
Résultat Vector3

intensity public_oe property

brightness of the light
public float intensity
Résultat float