| Package | sandy.materials.attributes |
| Class | public final class GouraudAttributes |
| Implements | IAttributes |
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 | ||
|---|---|---|---|
| aL : Array | GouraudAttributes | ||
| aLId : Array | GouraudAttributes | ||
| alpha : Array | GouraudAttributes | ||
| ambient : Number = 0.3
Level of ambient light, added to the scene if lighting is enabled.
| GouraudAttributes | ||
| coef : Number | GouraudAttributes | ||
| colours : Array | GouraudAttributes | ||
| id0 : int | GouraudAttributes | ||
| l_oVertex : Vertex | GouraudAttributes | ||
| matrix : Matrix | GouraudAttributes | ||
| p3x : Number | GouraudAttributes | ||
| ratios : Array | GouraudAttributes | ||
| useBright : Boolean = false
Flag for lightening mode.
| GouraudAttributes | ||
| v0 : Vertex | GouraudAttributes | ||
| v0L : Number | GouraudAttributes | ||
| v0N : Vector | GouraudAttributes | ||
| Method | Defined by | ||
|---|---|---|---|
|
GouraudAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.0)
Create the GouraudAttribute object.
| GouraudAttributes | ||
| GouraudAttributes | |||
| aL | property |
public var aL:Array
| aLId | property |
public var aLId:Array
| alpha | property |
public var alpha:Array
| ambient | property |
public var ambient:Number = 0.3Level of ambient light, added to the scene if lighting is enabled.
| coef | property |
public var coef:Number
| colours | property |
public var colours:Array
| id0 | property |
public var id0:int
| l_oVertex | property |
public var l_oVertex:Vertex
| matrix | property |
public var matrix:Matrix
| p3x | property |
public var p3x:Number
| ratios | property |
public var ratios:Array
| useBright | property |
public var useBright:Boolean = falseFlag 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.
| v0 | property |
public var v0:Vertex
| v0L | property |
public var v0L:Number
| v0N | property |
public var v0N:Vector
| GouraudAttributes | () | constructor |
public function GouraudAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.0)Create the GouraudAttribute object.
Parametersp_bBright:Boolean (default = false) — The ambient light value. A value between O and 1 is expected.
|
|
p_nAmbient:Number (default = 0.0) |
| draw | () | method |
public function draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):voidParameters
p_oGraphics:Graphics |
|
p_oPolygon:Polygon |
|
p_oMaterial:Material |
|
p_oScene:Scene3D |