Packageaway3d.materials.shaders
Classpublic class SpecularDot3Shader
InheritanceSpecularDot3Shader Inheritance AbstractShader Inheritance LayerMaterial Inheritance ColorMaterial Inheritance WireColorMaterial Inheritance WireframeMaterial Inheritance Material Inheritance flash.events.EventDispatcher

Diffuse Dot3 shader class for directional lighting.

See also

away3d.lights.DirectionalLight3D


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
Determines the alpha value of the material
WireColorMaterial
  bitmap : BitmapData
Returns the bitmapData object being used as the shader DOT3 map.
SpecularDot3Shader
 InheritedblendMode : String
Defines a blendMode value for the shader bitmap.
AbstractShader
 Inheritedcolor : uint
24 bit color value representing the material color
WireColorMaterial
 Inheriteddebug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
ColorMaterial
  height : Number
[read-only] Returns the height of the bitmapData being used as the shader DOT3 map.
SpecularDot3Shader
 Inheritedid : int
[read-only] Unique identifier
Material
  shininess : Number
The exponential dropoff value used for specular highlights.
SpecularDot3Shader
 Inheritedsmooth : Boolean
Determines if the shader bitmap is smoothed (bilinearly filtered) when drawn to screen
AbstractShader
  specular : uint
Coefficient for specular light level.
SpecularDot3Shader
  tangentSpace : Boolean
Determines if the DOT3 mapping is rendered in tangent space (true) or object space (false).
SpecularDot3Shader
 Inheritedthickness : Number
Determines the thickness value of the wire
WireframeMaterial
 Inheritedvisible : Boolean
[override] [read-only] Indicates whether the material is visible
WireColorMaterial
  width : Number
[read-only] Returns the width of the bitmapData being used as the shader DOT3 map.
SpecularDot3Shader
 InheritedwireAlpha : Number
Determines the alpha value of the wire
WireframeMaterial
 InheritedwireColor : uint
24 bit color value representing the wire color
WireframeMaterial
Protected Properties
 PropertyDefined By
 Inherited_alpha : Number
WireColorMaterial
 Inherited_color : uint
WireColorMaterial
 Inherited_debug : Boolean
ColorMaterial
 Inherited_endIndex : uint
AbstractShader
 Inherited_generated : Boolean
AbstractShader
 Inheritedini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
WireframeMaterial
 Inherited_screenIndices : Vector.<int>
AbstractShader
 Inherited_screenUVTs : Vector.<Number>
AbstractShader
 Inherited_screenVertices : Vector.<Number>
AbstractShader
 Inherited_startIndex : uint
AbstractShader
 Inherited_thickness : Number
WireframeMaterial
 Inherited_uvs : Vector.<UV>
AbstractShader
 Inherited_wireAlpha : Number
WireframeMaterial
 Inherited_wireColor : uint = 0x0
WireframeMaterial
Public Methods
 MethodDefined By
  
SpecularDot3Shader(bitmap:BitmapData, init:Object = null)
Creates a new SpecularDot3Shader object.
SpecularDot3Shader
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Material
 Inherited
clone(material:Material = null):Material
[override] Duplicates the material properties to another material object.
ColorMaterial
  
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
SpecularDot3Shader
  
invalidateFaces(source:Object3D = null, view:View3D = null):void
SpecularDot3Shader
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Material
  
updateFaces(source:Object3D = null, view:View3D = null):void
SpecularDot3Shader
Protected Methods
 MethodDefined By
 Inherited
calcMapping(priIndex:uint, map:Matrix):Matrix
AbstractShader
  
calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number>
[override]
SpecularDot3Shader
 Inherited
WireframeMaterial
 Inherited
getMapping(priIndex:uint):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
AbstractShader
 Inherited
getUVData(priIndex:uint):Vector.<Number>
AbstractShader
  
renderShader(priIndex:uint):void
[override] Renders the shader to the specified face.
SpecularDot3Shader
Events
 Event Summary Defined By
 InheritedDispatched when the any visual aspect of the material changes.Material
Property Detail
bitmapproperty
bitmap:BitmapData

Returns the bitmapData object being used as the shader DOT3 map.


Implementation
    public function get bitmap():BitmapData
    public function set bitmap(value:BitmapData):void
heightproperty 
height:Number  [read-only]

Returns the height of the bitmapData being used as the shader DOT3 map.


Implementation
    public function get height():Number
shininessproperty 
shininess:Number

The exponential dropoff value used for specular highlights.


Implementation
    public function get shininess():Number
    public function set shininess(value:Number):void
specularproperty 
specular:uint

Coefficient for specular light level.


Implementation
    public function get specular():uint
    public function set specular(value:uint):void
tangentSpaceproperty 
public var tangentSpace:Boolean

Determines if the DOT3 mapping is rendered in tangent space (true) or object space (false).

widthproperty 
width:Number  [read-only]

Returns the width of the bitmapData being used as the shader DOT3 map.


Implementation
    public function get width():Number
Constructor Detail
SpecularDot3Shader()Constructor
public function SpecularDot3Shader(bitmap:BitmapData, init:Object = null)

Creates a new SpecularDot3Shader object.

Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's DOT3 map.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Method Detail
calcUVT()method
override protected function calcUVT(priIndex:uint, uvt:Vector.<Number>):Vector.<Number>

Parameters

priIndex:uint
 
uvt:Vector.<Number>

Returns
Vector.<Number>
getPixel32()method 
public function getPixel32(u:Number, v:Number):uint

Returns the argb value of the bitmapData pixel at the given u v coordinate.

Parameters

u:Number — The u (horizontal) texture coordinate.
 
v:Number — The v (verical) texture coordinate.

Returns
uint — The argb pixel value.
invalidateFaces()method 
public function invalidateFaces(source:Object3D = null, view:View3D = null):void

Parameters

source:Object3D (default = null)
 
view:View3D (default = null)

renderShader()method 
override protected function renderShader(priIndex:uint):void

Renders the shader to the specified face.

Parameters

priIndex:uint — The index of the primitive being rendered.

updateFaces()method 
public function updateFaces(source:Object3D = null, view:View3D = null):void

Parameters

source:Object3D (default = null)
 
view:View3D (default = null)