C# Class Nez.DeferredLighting.DirLight

directional light with a shortended name to avoid clashes with the XNA DirectionalLight. This light type has only a direction and is never culled. It is a global light and the only light that produces specular highlights.
Inheritance: DeferredLight
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
direction Vector3
specularIntensity float
specularPower float

Méthodes publiques

Méthode Description
DirLight ( ) : Microsoft.Xna.Framework
DirLight ( Color color ) : Microsoft.Xna.Framework
DirLight ( Color color, Vector3 lightDirection ) : Microsoft.Xna.Framework
debugRender ( Graphics graphics ) : void

we dont want to render our bounds so we just render a direction

setDirection ( Vector3 direction ) : DirLight
setSpecularIntensity ( float specularIntensity ) : DirLight
setSpecularPower ( float specularPower ) : DirLight

Method Details

DirLight() public méthode

public DirLight ( ) : Microsoft.Xna.Framework
Résultat Microsoft.Xna.Framework

DirLight() public méthode

public DirLight ( Color color ) : Microsoft.Xna.Framework
color Color
Résultat Microsoft.Xna.Framework

DirLight() public méthode

public DirLight ( Color color, Vector3 lightDirection ) : Microsoft.Xna.Framework
color Color
lightDirection Vector3
Résultat Microsoft.Xna.Framework

debugRender() public méthode

we dont want to render our bounds so we just render a direction
public debugRender ( Graphics graphics ) : void
graphics Graphics Graphics.
Résultat void

setDirection() public méthode

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

setSpecularIntensity() public méthode

public setSpecularIntensity ( float specularIntensity ) : DirLight
specularIntensity float
Résultat DirLight

setSpecularPower() public méthode

public setSpecularPower ( float specularPower ) : DirLight
specularPower float
Résultat DirLight

Property Details

direction public_oe property

direction of the light
public Vector3 direction
Résultat Vector3

specularIntensity public_oe property

specular intensity. 0 - 1 range
public float specularIntensity
Résultat float

specularPower public_oe property

specular power. this is the exponent passed to pow() of the projection from 0,0,-1 to the light-to-normal
public float specularPower
Résultat float