Package | away3d.materials |
Class | public class TransformBitmapMaterial |
Inheritance | TransformBitmapMaterial ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Subclasses | AnimatedBitmapMaterial, BitmapFileMaterial, MovieMaterial |
Property | Defined By | ||
---|---|---|---|
![]() | alpha : Number [override]
Defines an alpha value for the texture bitmap. | BitmapMaterial | |
![]() | bitmap : BitmapData
Defines the bitmapData object being used as the material texture. | BitmapMaterial | |
![]() | blendMode : String
Defines a blendMode value for the texture bitmap. | BitmapMaterial | |
![]() | color : uint [override]
Defines a colored tint for the texture bitmap. | BitmapMaterial | |
![]() | colorTransform : ColorTransform
Defines a colortransform for the texture bitmap. | BitmapMaterial | |
![]() | debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines. | ColorMaterial | |
globalProjection : Boolean
Determines whether a projected texture uses offsetX, offsetY and projectionVector values relative to scene cordinates. | TransformBitmapMaterial | ||
![]() | height : Number [read-only]
Returns the height of the bitmapData being used as the material texture. | BitmapMaterial | |
![]() | id : int [read-only]
Unique identifier
| Material | |
offsetX : Number
Offsets the x coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
offsetY : Number
Offsets the y coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
projectionVector : Vector3D
Projects the texture in object space, ignoring the uv coordinates of the vertex objects. | TransformBitmapMaterial | ||
![]() | repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | |
rotation : Number
Rotates the texture in uv-space
| TransformBitmapMaterial | ||
scaleX : Number
Scales the x coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
scaleY : Number
Scales the y coordinates of the texture in uv-space
| TransformBitmapMaterial | ||
![]() | showNormals : Boolean
Displays the normals per face in pink lines. | BitmapMaterial | |
![]() | smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen. | BitmapMaterial | |
![]() | thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | |
throughProjection : Boolean
Determines whether a projected texture is visble on the faces pointing away from the projection. | TransformBitmapMaterial | ||
transform : Matrix
Transforms the texture in uv-space
| TransformBitmapMaterial | ||
![]() | visible : 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 material texture. | BitmapMaterial | |
![]() | wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | |
![]() | wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined By | ||
---|---|---|---|
TransformBitmapMaterial(bitmap:BitmapData, init:Object = null)
Creates a new TransformBitmapMaterial object. | TransformBitmapMaterial | ||
![]() | addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | |
![]() | [override]
Duplicates the material properties to another material object. | ColorMaterial | |
getPixel32(u:Number, v:Number):uint [override]
Returns the argb value of the bitmapData pixel at the given u v coordinate. | TransformBitmapMaterial | ||
![]() | removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
Method | Defined By | ||
---|---|---|---|
![]() | getDefaultThickness():Number | WireframeMaterial | |
[override] | TransformBitmapMaterial | ||
![]() | BitmapMaterial | ||
![]() | renderSource(source:Object3D, containerRect:Rectangle, mapping:Matrix):void | BitmapMaterial | |
![]() | updateColorTransform():void
Updates the colortransform object applied to the texture from the color and alpha properties. | BitmapMaterial | |
![]() | BitmapMaterial | ||
![]() | updateRenderBitmap():void
Updates the texture bitmapData with the colortransform determined from the color and alpha properties. | BitmapMaterial |
globalProjection | property |
globalProjection:Boolean
Determines whether a projected texture uses offsetX, offsetY and projectionVector values relative to scene cordinates.
public function get globalProjection():Boolean
public function set globalProjection(value:Boolean):void
See also
offsetX | property |
offsetX:Number
Offsets the x coordinates of the texture in uv-space
public function get offsetX():Number
public function set offsetX(value:Number):void
offsetY | property |
offsetY:Number
Offsets the y coordinates of the texture in uv-space
public function get offsetY():Number
public function set offsetY(value:Number):void
projectionVector | property |
projectionVector:Vector3D
Projects the texture in object space, ignoring the uv coordinates of the vertex objects.
Texture renders normally when set to null
.
public function get projectionVector():Vector3D
public function set projectionVector(value:Vector3D):void
rotation | property |
rotation:Number
Rotates the texture in uv-space
public function get rotation():Number
public function set rotation(value:Number):void
scaleX | property |
scaleX:Number
Scales the x coordinates of the texture in uv-space
public function get scaleX():Number
public function set scaleX(value:Number):void
scaleY | property |
scaleY:Number
Scales the y coordinates of the texture in uv-space
public function get scaleY():Number
public function set scaleY(value:Number):void
throughProjection | property |
throughProjection:Boolean
Determines whether a projected texture is visble on the faces pointing away from the projection.
public function get throughProjection():Boolean
public function set throughProjection(value:Boolean):void
See also
transform | property |
transform:Matrix
Transforms the texture in uv-space
public function get transform():Matrix
public function set transform(value:Matrix):void
TransformBitmapMaterial | () | Constructor |
public function TransformBitmapMaterial(bitmap:BitmapData, init:Object = null)
Creates a new TransformBitmapMaterial
object.
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.
|
getPixel32 | () | method |
override 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 | |
v:Number |
uint |
getUVData | () | method |
override protected function getUVData(priIndex:uint, viewSourceObject:ViewSourceObject, renderer:Renderer):Vector.<Number>
Parameters
priIndex:uint | |
viewSourceObject:ViewSourceObject | |
renderer:Renderer |
Vector.<Number> |