OmegaEngine API  1.0.3
Public Member Functions | Properties | List of all members
OmegaEngine.Graphics.PointLight Class Reference

A light source that has a fixed position and shines uniformly in all directions. More...

Inheritance diagram for OmegaEngine.Graphics.PointLight:
OmegaEngine.Graphics.LightSource OmegaEngine.IPositionableOffset OmegaEngine.IPositionable

Public Member Functions

 PointLight ()
 Creates a new point light with a Range of 1000 and no attenuation More...
 
- Public Member Functions inherited from OmegaEngine.Graphics.LightSource
override string ToString ()
 

Properties

bool DirectionalForShader [get, set]
 Shall this light source be converted to a pseudo-directional source for each individual PositionableRenderable before passing it to shaders? More...
 
DoubleVector3 Position [get, set]
 The position of the light source More...
 
Vector3 Shift [get, set]
 Stores an offset used by game logic positioning code. Ignore by the engine itself! More...
 
float Range [get, set]
 The maximum distance at which the light source has an effect. More...
 
Attenuation Attenuation [get, set]
 Factors describing the attenuation of light intensity over distance. More...
 
- Properties inherited from OmegaEngine.Graphics.LightSource
string Name [get, set]
 Text value to make it easier to identify a particular camera More...
 
bool Enabled [get, set]
 Shall the light source affect its surroundings? More...
 
Color Diffuse [get, set]
 The diffuse color this light source emits More...
 
Color Specular [get, set]
 The specular color this light source emits More...
 
Color Ambient [get, set]
 The ambient color this light source emits More...
 
- Properties inherited from OmegaEngine.IPositionableOffset
DoubleVector3 Offset [get, set]
 A value to be subtracted from IPositionable.Position in order gain IPositionableOffset.EffectivePosition More...
 
Vector3 EffectivePosition [get]
 The sum of IPositionable.Position and IPositionableOffset.EffectivePosition More...
 
- Properties inherited from OmegaEngine.IPositionable
DoubleVector3 Position [get, set]
 The object's position More...
 

Additional Inherited Members

- Protected Member Functions inherited from OmegaEngine.Graphics.LightSource
 LightSource ()
 Creates a new light source with a full white Diffuse component, a slight gray Specular component and no Ambient component More...
 

Detailed Description

A light source that has a fixed position and shines uniformly in all directions.

Constructor & Destructor Documentation

◆ PointLight()

OmegaEngine.Graphics.PointLight.PointLight ( )
inline

Creates a new point light with a Range of 1000 and no attenuation

Property Documentation

◆ Attenuation

Attenuation OmegaEngine.Graphics.PointLight.Attenuation
getset

Factors describing the attenuation of light intensity over distance.

◆ DirectionalForShader

bool OmegaEngine.Graphics.PointLight.DirectionalForShader
getset

Shall this light source be converted to a pseudo-directional source for each individual PositionableRenderable before passing it to shaders?

◆ Position

DoubleVector3 OmegaEngine.Graphics.PointLight.Position
getset

The position of the light source

◆ Range

float OmegaEngine.Graphics.PointLight.Range
getset

The maximum distance at which the light source has an effect.

◆ Shift

Vector3 OmegaEngine.Graphics.PointLight.Shift
getset

Stores an offset used by game logic positioning code. Ignore by the engine itself!


The documentation for this class was generated from the following file: