Package | away3d.materials |
Class | public class WhiteShadingBitmapMaterial |
Inheritance | WhiteShadingBitmapMaterial ![]() ![]() |
Implements | IUVMaterial |
Property | Defined by | ||
---|---|---|---|
![]() | 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 | ||
![]() | shininess : Number = 20
Coefficient for shininess level
| CenterLightingMaterial | |
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 | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| CenterLightingMaterial | |
Clears facematerial value objects when bitmap requires updating
| WhiteShadingBitmapMaterial | ||
doubleStepTo(limit:int):void
| WhiteShadingBitmapMaterial | ||
WhiteShadingBitmapMaterial | |||
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
| WhiteShadingBitmapMaterial | ||
Invalidates facematerial value objects when texturemapping requires updating
| WhiteShadingBitmapMaterial | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| CenterLightingMaterial | |
![]() |
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 |
Method | Defined by | ||
---|---|---|---|
Calculates the mapping matrix required to draw the triangle texture to screen.
| WhiteShadingBitmapMaterial |
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)
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.
|
smooth:Boolean (default = false) | |
repeat:Boolean (default = false) |
clearFaces | () | method |
public function clearFaces(source:Object3D = null, view:View3D = null):void
Clears facematerial value objects when bitmap requires updating
Parameterssource:Object3D (default = null ) — [optional] The parent 3d object of the face.
|
|
view:View3D (default = null ) — [optional] The view rendering the draw triangle.
|
doubleStepTo | () | method |
public function doubleStepTo(limit:int):void
Parameters
limit:int |
getFaceMaterialVO | () | method |
public function getFaceMaterialVO(faceVO:FaceVO, source:Object3D = null, view:View3D = null):FaceMaterialVO
Parameters
faceVO:FaceVO |
|
source:Object3D (default = null )
|
|
view:View3D (default = null )
|
FaceMaterialVO |
getMapping | () | method |
protected function getMapping(tri:DrawTriangle):Matrix
Calculates the mapping matrix required to draw the triangle texture to screen.
Parameterstri:DrawTriangle — The data object holding all information about the triangle to be drawn.
|
Matrix — The required matrix object.
|
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.
|
invalidateFaces | () | method |
public function invalidateFaces(source:Object3D = null, view:View3D = null):void
Invalidates facematerial value objects when texturemapping requires updating
Parameterssource:Object3D (default = null ) — [optional] The parent 3d object of the face.
|
|
view:View3D (default = null ) — [optional] The view rendering the draw triangle.
|