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
Exibir arquivo Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
intensity float
zPosition float

Protected Properties

Property Type Description
_radius float

Public Methods

Method 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 method

public PointLight ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

PointLight() public method

public PointLight ( Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework
color Microsoft.Xna.Framework.Color
return Microsoft.Xna.Framework

debugRender() public method

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

setIntensity() public method

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

setRadius() public method

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

setZPosition() public method

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

Property Details

_radius protected_oe property

protected float _radius
return float

intensity public_oe property

brightness of the light
public float intensity
return float

zPosition public_oe property

"height" above the scene in the z direction
public float zPosition
return float