Packagecom.gestureworks.cml.away3d.interfaces
Interfacepublic interface IMaterial

Implements Material objects.



Public Properties
 PropertyDefined By
  assetType : String
[read-only] Returns asssets type.
IMaterial
  bothSides : Boolean
Defines whether or not the material should cull triangles facing away from the camera.
IMaterial
  lightPicker : LightPickerBase
The light picker used by the material to provide lights to the material if it supports lighting.
IMaterial
  mipmap : Boolean
Indicates whether or not any used textures should use mipmapping.
IMaterial
  repeat : Boolean
Indicates whether or not any used textures should be tiled.
IMaterial
  smooth : Boolean
Indicates whether or not any used textures should use smoothing.
IMaterial
Public Methods
 MethodDefined By
  
dispose():void
Cleans up resources owned by the material, including passes.
IMaterial
Property Detail
assetTypeproperty
assetType:String  [read-only]

Returns asssets type.


Implementation
    public function get assetType():String
bothSidesproperty 
bothSides:Boolean

Defines whether or not the material should cull triangles facing away from the camera.


Implementation
    public function get bothSides():Boolean
    public function set bothSides(value:Boolean):void
lightPickerproperty 
lightPicker:LightPickerBase

The light picker used by the material to provide lights to the material if it supports lighting.


Implementation
    public function get lightPicker():LightPickerBase
    public function set lightPicker(value:LightPickerBase):void

See also

away3d.materials.lightpickers.LightPickerBase
away3d.materials.lightpickers.StaticLightPicker
mipmapproperty 
mipmap:Boolean

Indicates whether or not any used textures should use mipmapping. Defaults to true.


Implementation
    public function get mipmap():Boolean
    public function set mipmap(value:Boolean):void
repeatproperty 
repeat:Boolean

Indicates whether or not any used textures should be tiled. If set to false, texture samples are clamped to the texture's borders when the uv coordinates are outside the [0, 1] interval.


Implementation
    public function get repeat():Boolean
    public function set repeat(value:Boolean):void
smoothproperty 
smooth:Boolean

Indicates whether or not any used textures should use smoothing.


Implementation
    public function get smooth():Boolean
    public function set smooth(value:Boolean):void
Method Detail
dispose()method
public function dispose():void

Cleans up resources owned by the material, including passes. Textures are not owned by the material since they could be used by other materials and will not be disposed.