| Package | sandy.materials.attributes |
| Class | public final class GouraudAttributes |
| Inheritance | GouraudAttributes ALightAttributes |
To make this material attribute use by the Material object, the material must have :myMAterial.lighteningEnable = 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
Flag for lightening mode.
| GouraudAttributes | ||
| Method | Defined by | ||
|---|---|---|---|
|
GouraudAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.0)
Create the GouraudAttribute object.
| GouraudAttributes | ||
![]() |
Draws light on shape.
| ALightAttributes | |
![]() |
Draws light on sprite.
| ALightAttributes | |
| useBright | property |
useBright:Boolean [read-write]Flag for lightening mode.
If true, the lit objects use full light range from black to white. If false (the default) they just range from black to their normal appearance.
Implementation public function get useBright():Boolean
public function set useBright(value:Boolean):void
| GouraudAttributes | () | constructor |
public function GouraudAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.0)Create the GouraudAttribute object.
Parametersp_bBright:Boolean (default = false) — The brightness (value for useBright).
|
|
p_nAmbient:Number (default = 0.0) — The ambient light value. A value between O and 1 is expected.
|