Package | com.gestureworks.cml.away3d.interfaces |
Interface | public interface IMaterial |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
dispose():void
Cleans up resources owned by the material, including passes. | IMaterial |
assetType | property |
assetType:String
[read-only] Returns asssets type.
public function get assetType():String
bothSides | property |
bothSides:Boolean
Defines whether or not the material should cull triangles facing away from the camera.
public function get bothSides():Boolean
public function set bothSides(value:Boolean):void
lightPicker | property |
lightPicker:LightPickerBase
The light picker used by the material to provide lights to the material if it supports lighting.
public function get lightPicker():LightPickerBase
public function set lightPicker(value:LightPickerBase):void
See also
mipmap | property |
mipmap:Boolean
Indicates whether or not any used textures should use mipmapping. Defaults to true.
public function get mipmap():Boolean
public function set mipmap(value:Boolean):void
repeat | property |
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.
public function get repeat():Boolean
public function set repeat(value:Boolean):void
smooth | property |
smooth:Boolean
Indicates whether or not any used textures should use smoothing.
public function get smooth():Boolean
public function set smooth(value:Boolean):void
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.