| Package | sandy.materials.attributes |
| Class | public final class LightAttributes |
| Inheritance | LightAttributes ALightAttributes |
To make this material attribute use by the Material object, the material must have :myMAterial.lightingEnable = true.
This attributes contains some parameters
| Property | Defined by | ||
|---|---|---|---|
![]() | ambient : Number
Ambient reflection factor.
| ALightAttributes | |
![]() | diffuse : Number
Diffuse reflection factor.
| ALightAttributes | |
![]() | flags : uint
Flags for the attribute.
| ALightAttributes | |
![]() | gloss : Number
Specular exponent.
| ALightAttributes | |
![]() | specular : Number
Specular reflection factor.
| ALightAttributes | |
| useBright : Boolean = false
Flag for lighting mode.
| LightAttributes | ||
| Method | Defined by | ||
|---|---|---|---|
|
LightAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.3)
Creates a new LightAttributes object.
| LightAttributes | ||
![]() |
Draws light on shape.
| ALightAttributes | |
![]() |
Draws light on sprite.
| ALightAttributes | |
| useBright | property |
public var useBright:Boolean = falseFlag for lighting mode.
If true, the lit objects use full light range from black to white. If false (the default) they range from black to their normal appearance.
| LightAttributes | () | constructor |
public function LightAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.3)Creates a new LightAttributes object.
Parametersp_bBright:Boolean (default = false) — The brightness (value for useBright).
|
|
p_nAmbient:Number (default = 0.3) — The ambient light value. A value between O and 1 is expected.
|