Packageaway3d.materials
Classpublic class TextureMaterial
InheritanceTextureMaterial Inheritance DefaultMaterialBase Inheritance MaterialBase Inheritance NamedAssetBase Inheritance flash.events.EventDispatcher

TextureMaterial is a material that uses a texture as the surface's diffuse colour.



Public Properties
 PropertyDefined By
  alpha : Number
The alpha of the surface.
TextureMaterial
 InheritedalphaBlending : Boolean
Indicate whether or not the material has transparency.
DefaultMaterialBase
 InheritedalphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have already been premultiplied.
MaterialBase
 InheritedalphaThreshold : Number
The minimum alpha value for which pixels should be drawn.
DefaultMaterialBase
 Inheritedambient : Number
The strength of the ambient reflection.
DefaultMaterialBase
 InheritedambientColor : uint
The colour of the ambient reflection.
DefaultMaterialBase
 InheritedambientMethod : BasicAmbientMethod
The method to perform ambient shading.
DefaultMaterialBase
  ambientTexture : Texture2DBase
The texture object to use for the ambient colour.
TextureMaterial
  animateUVs : Boolean
TextureMaterial
 InheritedassetFullPath : Array
[read-only]
NamedAssetBase
 InheritedassetNamespace : String
[read-only]
NamedAssetBase
 InheritedassetType : String
[read-only]
MaterialBase
 InheritedblendMode : String
The blend mode to use when drawing this renderable.
MaterialBase
 InheritedbothSides : Boolean
Defines whether or not the material should perform backface culling.
MaterialBase
 InheritedcolorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with.
DefaultMaterialBase
 InheriteddepthCompareMode : String
MaterialBase
 InheriteddiffuseLightSources : uint
DefaultMaterialBase
 InheriteddiffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading.
DefaultMaterialBase
 Inheritedextra : Object
An object to contain any extra data
MaterialBase
 Inheritedgloss : Number
The sharpness of the specular highlight.
DefaultMaterialBase
 InheritedlightPicker : LightPickerBase
MaterialBase
 Inheritedmipmap : Boolean
[override] Indicates whether or not any used textures should use mipmapping.
DefaultMaterialBase
 Inheritedname : String
[override]
MaterialBase
 InheritednormalMap : Texture2DBase
The tangent space normal map to influence the direction of the surface for each texel.
DefaultMaterialBase
 InheritednormalMethod : BasicNormalMethod
The method to generate the (tangent-space) normal.
DefaultMaterialBase
 InheritednumMethods : int
[read-only]
DefaultMaterialBase
 InheritedoriginalName : String
[read-only] The original name used for this asset in the resource (e.g.
NamedAssetBase
 Inheritedrepeat : Boolean
Indicates whether or not any used textures should be tiled.
MaterialBase
 InheritedrequiresBlending : Boolean
[override] [read-only] Indicates whether or not the material requires alpha blending during rendering.
DefaultMaterialBase
 InheritedshadowMethod : ShadowMapMethodBase
The method to render shadows cast on this surface.
DefaultMaterialBase
 Inheritedsmooth : Boolean
Indicates whether or not any used textures should use smoothing.
MaterialBase
 Inheritedspecular : Number
The overall strength of the specular reflection.
DefaultMaterialBase
 InheritedspecularColor : uint
The colour of the specular reflection.
DefaultMaterialBase
 InheritedspecularLightSources : uint
DefaultMaterialBase
 InheritedspecularMap : 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
 InheritedspecularMethod : BasicSpecularMethod
The method to perform specular shading.
DefaultMaterialBase
  texture : Texture2DBase
The texture object to use for the albedo colour.
TextureMaterial
 InheriteduniqueId : uint
[read-only] The unique id assigned to the material by the MaterialLibrary.
MaterialBase
Protected Properties
 PropertyDefined By
 Inherited_depthCompareMode : String = less
MaterialBase
 Inherited_depthPass : DepthMapPass
MaterialBase
 Inherited_distancePass : DistanceMapPass
MaterialBase
 Inherited_mipmap : Boolean = true
MaterialBase
 Inherited_numPasses : uint
MaterialBase
 Inherited_passes : Vector.<MaterialPassBase>
MaterialBase
 Inherited_repeat : Boolean
MaterialBase
 Inherited_screenPass : DefaultScreenPass
DefaultMaterialBase
 Inherited_smooth : Boolean = true
MaterialBase
Public Methods
 MethodDefined By
  
TextureMaterial(texture:Texture2DBase = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)
Creates a new TextureMaterial.
TextureMaterial
 Inherited
Adds a shading method to the end of the shader.
DefaultMaterialBase
 Inherited
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
 Inherited
assetPathEquals(name:String, ns:String):Boolean
NamedAssetBase
 Inherited
dispose():void
Cleans up any resources used by the current object.
MaterialBase
 Inherited
DefaultMaterialBase
 Inherited
hasMethod(method:EffectMethodBase):Boolean
DefaultMaterialBase
 Inherited
DefaultMaterialBase
 Inherited
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void
NamedAssetBase
Protected Methods
 MethodDefined By
 Inherited
Adds a pass to the material
MaterialBase
 Inherited
Clears all passes in the material.
MaterialBase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_NAMESPACE : String = default
[static]
NamedAssetBase
Property Detail
alphaproperty
alpha:Number

The alpha of the surface.


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
ambientTextureproperty 
ambientTexture:Texture2DBase

The texture object to use for the ambient colour.


Implementation
    public function get ambientTexture():Texture2DBase
    public function set ambientTexture(value:Texture2DBase):void
animateUVsproperty 
animateUVs:Boolean


Implementation
    public function get animateUVs():Boolean
    public function set animateUVs(value:Boolean):void
textureproperty 
texture:Texture2DBase

The texture object to use for the albedo colour.


Implementation
    public function get texture():Texture2DBase
    public function set texture(value:Texture2DBase):void
Constructor Detail
TextureMaterial()Constructor
public function TextureMaterial(texture:Texture2DBase = null, smooth:Boolean = true, repeat:Boolean = false, mipmap:Boolean = true)

Creates a new TextureMaterial.

Parameters
texture:Texture2DBase (default = null)
 
smooth:Boolean (default = true)
 
repeat:Boolean (default = false)
 
mipmap:Boolean (default = true)