| Package | away3d.materials |
| Class | public class WhiteShadingBitmapMaterial |
| Inheritance | WhiteShadingBitmapMaterial CenterLightingMaterial flash.events.EventDispatcher |
| Implements | IUVMaterial |
| Property | Defined by | ||
|---|---|---|---|
![]() | ak : Number = 20
Coefficient for shininess level
| CenterLightingMaterial | |
![]() | ambient_brightness : Number = 1
Coefficient for ambient light level
| CenterLightingMaterial | |
| bitmap : BitmapData [read-only]
Returns the bitmapData object being used as the material texture.
| WhiteShadingBitmapMaterial | ||
![]() | diffuse_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 | ||
![]() | specular_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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
WhiteShadingBitmapMaterial
(bitmap:BitmapData, init:Object = null)
Creates a new
WhiteShadingBitmapMaterial object. | WhiteShadingBitmapMaterial | ||
|
Default method for adding a materialresize event listener
| WhiteShadingBitmapMaterial | ||
|
doubleStepTo(limit:int):void
| WhiteShadingBitmapMaterial | ||
|
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| WhiteShadingBitmapMaterial | ||
|
Default method for removing a materialresize event listener
| WhiteShadingBitmapMaterial | ||
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | CenterLightingMaterial | |
![]() |
Called once per render loop when material is visible.
| CenterLightingMaterial | |
| bitmap | property |
bitmap:BitmapData [read-only]Returns the bitmapData object being used as the material texture.
Implementation public function get bitmap():BitmapData
| height | property |
height:Number [read-only]Returns the height of the bitmapData being used as the material texture.
Implementation public function get height():Number
| repeat | property |
public var repeat:Boolean
Determines if texture bitmap will tile in uv-space
| smooth | property |
public var smooth:Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen
| visible | property |
visible:Boolean [read-only]Indicates whether the material is visible
Implementation public function get visible():Boolean
| width | property |
width:Number [read-only]Returns the width of the bitmapData being used as the material texture.
Implementation public function get width():Number
| WhiteShadingBitmapMaterial | () | constructor |
public function WhiteShadingBitmapMaterial(bitmap:BitmapData, init:Object = null)
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.
|
smooth:Boolean (default = false) | |
repeat:Boolean (default = false) |
| addOnResize | () | method |
public function addOnResize(listener:Function):void
Default method for adding a materialresize event listener
Parameterslistener:Function — The listener function
|
| doubleStepTo | () | method |
public function doubleStepTo(limit:int):void
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.
Parametersu:Number — The u (horizontal) texture coordinate.
|
|
v:Number — The v (verical) texture coordinate.
|
uint — The argb pixel value.
|
| removeOnResize | () | method |
public function removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
Parameterslistener:Function — The listener function
|