Packagesandy.materials.attributes
Classpublic final class CelShadeAttributes
InheritanceCelShadeAttributes Inheritance ALightAttributes

Realize a Cell shading on a material. Note: this class ignores all properties inherited from ALightAttributes!



Public Properties
 PropertyDefined by
 Inheritedambient : Number
Ambient reflection factor.
ALightAttributes
 Inheriteddiffuse : Number
Diffuse reflection factor.
ALightAttributes
 Inheritedflags : uint
Flags for the attribute.
ALightAttributes
 Inheritedgloss : Number
Specular exponent.
ALightAttributes
  lightmap : PhongAttributesLightMap
Used if a lightmap needs to be overridden.
CelShadeAttributes
 Inheritedspecular : Number
Specular reflection factor.
ALightAttributes
  spherize : Number = 0
Non-zero value adds sphere normals to actual normals for light rendering.
CelShadeAttributes
Public Methods
 MethodDefined by
  
Create the CelShadeAttributes object.
CelShadeAttributes
 Inherited
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
Draws light on shape.
ALightAttributes
 Inherited
drawOnSprite(p_oSprite:Sprite2D, p_oMaterial:Material, p_oScene:Scene3D):void
Draws light on sprite.
ALightAttributes
Property detail
lightmapproperty
public var lightmap:PhongAttributesLightMap

Used if a lightmap needs to be overridden.

spherizeproperty 
public var spherize:Number = 0

Non-zero value adds sphere normals to actual normals for light rendering. Use this with flat surfaces or cylinders.

Constructor detail
CelShadeAttributes()constructor
public function CelShadeAttributes(p_oLightMap:PhongAttributesLightMap = null)

Create the CelShadeAttributes object.

Parameters
p_oLightMap:PhongAttributesLightMap (default = null) — A lightmap that the object will use (default map has four shades of gray).

See also