C# Class Nez.DeferredLighting.PointLight

PointLights radiate light in a circle. Note that PointLights are affected by Transform.scale. The Transform.scale.X value is multiplied by the lights radius when sent to the GPU. It is expected that scale will be linear.
Inheritance: DeferredLight
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
intensity float
zPosition float

Protected Properties

Свойство Type Description
_radius float

Méthodes publiques

Méthode Description
PointLight ( ) : Microsoft.Xna.Framework
PointLight ( Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework
debugRender ( Graphics graphics ) : void

renders the bounds only if there is no collider. Always renders a square on the origin.

setIntensity ( float intensity ) : PointLight

brightness of the light

setRadius ( float radius ) : PointLight

how far does this light reach

setZPosition ( float z ) : PointLight

Method Details

PointLight() public méthode

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

PointLight() public méthode

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

debugRender() public méthode

renders the bounds only if there is no collider. Always renders a square on the origin.
public debugRender ( Graphics graphics ) : void
graphics Graphics Graphics.
Résultat void

setIntensity() public méthode

brightness of the light
public setIntensity ( float intensity ) : PointLight
intensity float Intensity.
Résultat PointLight

setRadius() public méthode

how far does this light reach
public setRadius ( float radius ) : PointLight
radius float Radius.
Résultat PointLight

setZPosition() public méthode

public setZPosition ( float z ) : PointLight
z float
Résultat PointLight

Property Details

_radius protected_oe property

protected float _radius
Résultat float

intensity public_oe property

brightness of the light
public float intensity
Résultat float

zPosition public_oe property

"height" above the scene in the z direction
public float zPosition
Résultat float