Packagesandy.materials.attributes
Classpublic final class GouraudAttributes
ImplementsIAttributes

Realize a Gouraud shading on a material.

To make this material attribute use by the Material object, the material must have :myMAterial.lighteningEnable = true.
This attributes contains some parameters



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
GouraudAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.0)
Create the GouraudAttribute object.
GouraudAttributes
  
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
GouraudAttributes
Property detail
aLproperty
public var aL:Array
aLIdproperty 
public var aLId:Array
alphaproperty 
public var alpha:Array
ambientproperty 
public var ambient:Number = 0.3

Level of ambient light, added to the scene if lighting is enabled.

coefproperty 
public var coef:Number
coloursproperty 
public var colours:Array
id0property 
public var id0:int
l_oVertexproperty 
public var l_oVertex:Vertex
matrixproperty 
public var matrix:Matrix
p3xproperty 
public var p3x:Number
ratiosproperty 
public var ratios:Array
useBrightproperty 
public var useBright:Boolean = false

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.

v0property 
public var v0:Vertex
v0Lproperty 
public var v0L:Number
v0Nproperty 
public var v0N:Vector
Constructor detail
GouraudAttributes()constructor
public function GouraudAttributes(p_bBright:Boolean = false, p_nAmbient:Number = 0.0)

Create the GouraudAttribute object.

Parameters
p_bBright:Boolean (default = false) — The ambient light value. A value between O and 1 is expected.
 
p_nAmbient:Number (default = 0.0)
Method detail
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