OmegaEngine API
1.0.3
|
Factors describing the attenuation of light intensity over distance. More...
Public Member Functions | |
Attenuation (float constant, float linear, float quadratic) | |
Creates a new attenuation structure More... | |
override string | ToString () |
bool | Equals (Attenuation other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static | operator Vector4 (Attenuation attenuation) |
Convert Attenuation into Vector4 More... | |
static | operator Attenuation (Vector4 vector) |
Convert Vector4 into Attenuation More... | |
static bool | operator== (Attenuation left, Attenuation right) |
static bool | operator != (Attenuation left, Attenuation right) |
Static Public Attributes | |
static readonly Attenuation | None = new Attenuation(1, 0, 0) |
Value for no attenuation over distance. More... | |
Properties | |
float | Constant [get] |
A constant factor multiplied with the color. More... | |
float | Linear [get] |
A constant factor multiplied with the color and the inverse distance. More... | |
float | Quadratic [get] |
A constant factor multiplied with the color and the inverse distance squared. More... | |
Factors describing the attenuation of light intensity over distance.
|
inline |
Creates a new attenuation structure
constant | A constant factor multiplied with the color. |
linear | A constant factor multiplied with the color and the inverse distance. |
quadratic | A constant factor multiplied with the color and the inverse distance squared. |
|
explicitstatic |
Convert Vector4 into Attenuation
|
explicitstatic |
Convert Attenuation into Vector4
|
static |
Value for no attenuation over distance.
|
get |
A constant factor multiplied with the color.
|
get |
A constant factor multiplied with the color and the inverse distance.
|
get |
A constant factor multiplied with the color and the inverse distance squared.