Package | away3d.materials |
Class | public class TextureMaterial |
Inheritance | TextureMaterial DefaultMaterialBase MaterialBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The alpha of the surface. | TextureMaterial | ||
alphaBlending : Boolean
Indicate whether or not the material has transparency. | DefaultMaterialBase | ||
alphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have
already been premultiplied. | MaterialBase | ||
alphaThreshold : Number
The minimum alpha value for which pixels should be drawn. | DefaultMaterialBase | ||
ambient : Number
The strength of the ambient reflection. | DefaultMaterialBase | ||
ambientColor : uint
The colour of the ambient reflection. | DefaultMaterialBase | ||
ambientMethod : BasicAmbientMethod
The method to perform ambient shading. | DefaultMaterialBase | ||
ambientTexture : Texture2DBase
The texture object to use for the ambient colour. | TextureMaterial | ||
animateUVs : Boolean | TextureMaterial | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only] | MaterialBase | ||
blendMode : String
The blend mode to use when drawing this renderable. | MaterialBase | ||
bothSides : Boolean
Defines whether or not the material should perform backface culling. | MaterialBase | ||
colorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with. | DefaultMaterialBase | ||
depthCompareMode : String | MaterialBase | ||
diffuseLightSources : uint | DefaultMaterialBase | ||
diffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading. | DefaultMaterialBase | ||
extra : Object
An object to contain any extra data
| MaterialBase | ||
gloss : Number
The sharpness of the specular highlight. | DefaultMaterialBase | ||
lightPicker : LightPickerBase | MaterialBase | ||
mipmap : Boolean [override]
Indicates whether or not any used textures should use mipmapping. | DefaultMaterialBase | ||
name : String [override] | MaterialBase | ||
normalMap : Texture2DBase
The tangent space normal map to influence the direction of the surface for each texel. | DefaultMaterialBase | ||
normalMethod : BasicNormalMethod
The method to generate the (tangent-space) normal. | DefaultMaterialBase | ||
numMethods : int [read-only] | DefaultMaterialBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
repeat : Boolean
Indicates whether or not any used textures should be tiled. | MaterialBase | ||
requiresBlending : Boolean [override] [read-only]
Indicates whether or not the material requires alpha blending during rendering. | DefaultMaterialBase | ||
shadowMethod : ShadowMapMethodBase
The method to render shadows cast on this surface. | DefaultMaterialBase | ||
smooth : Boolean
Indicates whether or not any used textures should use smoothing. | MaterialBase | ||
specular : Number
The overall strength of the specular reflection. | DefaultMaterialBase | ||
specularColor : uint
The colour of the specular reflection. | DefaultMaterialBase | ||
specularLightSources : uint | DefaultMaterialBase | ||
specularMap : Texture2DBase
A specular map that defines the strength of specular reflections for each texel in the red channel, and the gloss factor in the green channel. | DefaultMaterialBase | ||
specularMethod : BasicSpecularMethod
The method to perform specular shading. | DefaultMaterialBase | ||
texture : Texture2DBase
The texture object to use for the albedo colour. | TextureMaterial | ||
uniqueId : uint [read-only]
The unique id assigned to the material by the MaterialLibrary. | MaterialBase |
Method | Defined By | ||
---|---|---|---|
TextureMaterial(texture:Texture2DBase = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)
Creates a new TextureMaterial. | TextureMaterial | ||
addMethod(method:EffectMethodBase):void
Adds a shading method to the end of the shader. | DefaultMaterialBase | ||
addMethodAt(method:EffectMethodBase, index:int):void
Adds a shading method to the end of a shader, at the specified index amongst
the methods in that section of the shader. | DefaultMaterialBase | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
dispose():void
Cleans up any resources used by the current object. | MaterialBase | ||
getMethodAt(index:int):EffectMethodBase | DefaultMaterialBase | ||
hasMethod(method:EffectMethodBase):Boolean | DefaultMaterialBase | ||
removeMethod(method:EffectMethodBase):void | DefaultMaterialBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
alpha | property |
alpha:Number
The alpha of the surface.
public function get alpha():Number
public function set alpha(value:Number):void
ambientTexture | property |
ambientTexture:Texture2DBase
The texture object to use for the ambient colour.
public function get ambientTexture():Texture2DBase
public function set ambientTexture(value:Texture2DBase):void
animateUVs | property |
animateUVs:Boolean
public function get animateUVs():Boolean
public function set animateUVs(value:Boolean):void
texture | property |
texture:Texture2DBase
The texture object to use for the albedo colour.
public function get texture():Texture2DBase
public function set texture(value:Texture2DBase):void
TextureMaterial | () | Constructor |
public function TextureMaterial(texture:Texture2DBase = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)
Creates a new TextureMaterial.
Parameterstexture:Texture2DBase (default = null )
| |
smooth:Boolean (default = true )
| |
repeat:Boolean (default = false )
| |
mipmap:Boolean (default = true )
|