Packageaway3d.materials
Classpublic class WhiteShadingBitmapMaterial
InheritanceWhiteShadingBitmapMaterial Inheritance CenterLightingMaterial Inheritance flash.events.EventDispatcher
ImplementsIUVMaterial

Bitmap material with flat white lighting

Public Properties
 PropertyDefined by
 Inheritedak : Number = 20
Coefficient for shininess level
CenterLightingMaterial
 Inheritedambient_brightness : Number = 1
Coefficient for ambient light level
CenterLightingMaterial
  bitmap : BitmapData
[read-only] Returns the bitmapData object being used as the material texture.
WhiteShadingBitmapMaterial
 Inheriteddiffuse_brightness : Number = 1
Coefficient for diffuse light level
CenterLightingMaterial
  height : Number
[read-only] Returns the height of the bitmapData being used as the material texture.
WhiteShadingBitmapMaterial
  repeat : Boolean
Determines if texture bitmap will tile in uv-space
WhiteShadingBitmapMaterial
  smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen
WhiteShadingBitmapMaterial
 Inheritedspecular_brightness : Number = 1
Coefficient for specular light level
CenterLightingMaterial
  visible : Boolean
[read-only] Indicates whether the material is visible
WhiteShadingBitmapMaterial
  width : Number
[read-only] Returns the width of the bitmapData being used as the material texture.
WhiteShadingBitmapMaterial
Protected Properties
 PropertyDefined by
 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.
CenterLightingMaterial
Public Methods
 MethodDefined by
  
WhiteShadingBitmapMaterial
(bitmap:BitmapData, init:Object = null)
Creates a new WhiteShadingBitmapMaterial object.
WhiteShadingBitmapMaterial
  
addOnResize(listener:Function):void
Default method for adding a materialresize event listener
WhiteShadingBitmapMaterial
  
doubleStepTo(limit:int):void
WhiteShadingBitmapMaterial
  
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
WhiteShadingBitmapMaterial
  
removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
WhiteShadingBitmapMaterial
 Inherited
Sends data from the material coupled with data from the DrawTriangle primitive to the render session.
CenterLightingMaterial
 Inherited
updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
CenterLightingMaterial
Property detail
bitmapproperty
bitmap:BitmapData  [read-only]

Returns the bitmapData object being used as the material texture.

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

Returns the height of the bitmapData being used as the material texture.

Implementation
    public function get height():Number
repeatproperty 
public var repeat:Boolean

Determines if texture bitmap will tile in uv-space

smoothproperty 
public var smooth:Boolean

Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen

visibleproperty 
visible:Boolean  [read-only]

Indicates whether the material is visible

Implementation
    public function get visible():Boolean
widthproperty 
width:Number  [read-only]

Returns the width of the bitmapData being used as the material texture.

Implementation
    public function get width():Number
Constructor detail
WhiteShadingBitmapMaterial()constructor
public function WhiteShadingBitmapMaterial(bitmap:BitmapData, init:Object = null)Parameters
bitmap:BitmapData — The bitmapData object to be used as the material's texture.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Method detail
addOnResize()method
public function addOnResize(listener:Function):void

Default method for adding a materialresize event listener

Parameters
listener:Function — The listener function
doubleStepTo()method 
public function doubleStepTo(limit:int):void Parameters
limit:int
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.
removeOnResize()method 
public function removeOnResize(listener:Function):void

Default method for removing a materialresize event listener

Parameters
listener:Function — The listener function
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments