| Package | alternativa.engine3d.materials |
| Class | public class DevMaterial |
| Inheritance | DevMaterial SurfaceMaterial Material |
parameterType property.
| Property | Defined by | ||
|---|---|---|---|
![]() | alpha : Number material opacity
| Material | |
![]() | blendMode : String Color blending mode.
| Material | |
| color : uint Fill color.
| DevMaterial | ||
| maxMobility : int End of mobility interval for polygons' mobility visualization.
| DevMaterial | ||
| maxParameterValue : Number Maximum value of indicated parameter.
| DevMaterial | ||
| minMobility : int Beginning of mobility interval for polygons' mobility visualization.
| DevMaterial | ||
| normalsColor : uint Color of normals.
| DevMaterial | ||
| parameterType : int Type of indicated parameter.
| DevMaterial | ||
| showNormals : Boolean Set value to
true | DevMaterial | ||
![]() | surface : Surface
Surface material.
| SurfaceMaterial | |
| wireColor : uint Whire line color.
| DevMaterial | ||
| wireThickness : Number Wire line thickness.
| DevMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
DevMaterial(parameterType:uint = 0, color:uint = 0xFFFFFF, maxParameterValue:Number = 20, showNormals:Boolean = false, normalsColor:uint = 0x00FFFF, minMobility:int = 0, maxMobility:int = 255, alpha:Number = 1, blendMode:String, wireThickness:Number = -1, wireColor:uint = 0)
Create an instance of class.
| DevMaterial | ||
|
Clone material.
| DevMaterial | ||
| Constant | Defined by | ||
|---|---|---|---|
| BSP_DEPTH : int = 0 [static] The value of the
parameterType property which enables polygons' BSP-tree depth visualization. | DevMaterial | ||
| DEGENERATE_POLY : int = 4 [static] The value of the
parameterType property which enables degenerate polygons visualization. | DevMaterial | ||
| FRAGMENTATION : int = 2 [static] The value of the
parameterType property which enables faces' fragmentation visualization. | DevMaterial | ||
| MOBILITY : int = 1 [static] The value of the
parameterType property which enables polygons' mobility visualization. | DevMaterial | ||
| NON_PLANAR_POLY : int = 5 [static] The value of the
parameterType property which enables visualization of non-planar polygons. | DevMaterial | ||
| NO_UV_MAPPING : int = 3 [static] The value of the
parameterType property which tells material to show faces without UV-coordinates. | DevMaterial | ||
| color | property |
color:uint [read-write]Fill color.
Implementation public function get color():uint
public function set color(value:uint):void
| maxMobility | property |
maxMobility:int [read-write]End of mobility interval for polygons' mobility visualization.
Implementation public function get maxMobility():int
public function set maxMobility(value:int):void
| maxParameterValue | property |
maxParameterValue:Number [read-write]Maximum value of indicated parameter.
Implementation public function get maxParameterValue():Number
public function set maxParameterValue(value:Number):void
| minMobility | property |
minMobility:int [read-write]Beginning of mobility interval for polygons' mobility visualization.
Implementation public function get minMobility():int
public function set minMobility(value:int):void
| normalsColor | property |
normalsColor:uint [read-write]Color of normals.
The default value is 0x00FFFF.
public function get normalsColor():uint
public function set normalsColor(value:uint):void
| parameterType | property |
parameterType:int [read-write]Type of indicated parameter.
Implementation public function get parameterType():int
public function set parameterType(value:int):void
| showNormals | property |
showNormals:Boolean [read-write]Set value to true to show normals of polygons.
public function get showNormals():Boolean
public function set showNormals(value:Boolean):void
| wireColor | property |
wireColor:uint [read-write]Whire line color.
Implementation public function get wireColor():uint
public function set wireColor(value:uint):void
| wireThickness | property |
wireThickness:Number [read-write]Wire line thickness. Lines are not drawn if thickness is negative.
Implementation public function get wireThickness():Number
public function set wireThickness(value:Number):void
| DevMaterial | () | constructor |
public function DevMaterial(parameterType:uint = 0, color:uint = 0xFFFFFF, maxParameterValue:Number = 20, showNormals:Boolean = false, normalsColor:uint = 0x00FFFF, minMobility:int = 0, maxMobility:int = 255, alpha:Number = 1, blendMode:String, wireThickness:Number = -1, wireColor:uint = 0)Create an instance of class.
ParametersparameterType:uint (default = 0) — type of indicated parameter |
|
color:uint (default = 0xFFFFFF) — fill color |
|
maxParameterValue:Number (default = 20) — maximum value of indicated parameter |
|
showNormals:Boolean (default = false) — set value to true |
|
normalsColor:uint (default = 0x00FFFF) — color of normals |
|
minMobility:int (default = 0) — beginning of mobility interval for polygons' mobility visualization |
|
maxMobility:int (default = 255) — end of mobility interval for polygons' mobility visualization |
|
alpha:Number (default = 1) — transparency |
|
blendMode:String — color blending mode |
|
wireThickness:Number (default = -1) — wire line thickness |
|
wireColor:uint (default = 0) — wire line color |
| clone | () | method |
public override function clone():MaterialClone material.
ReturnsMaterial — a clone of the material object |
| BSP_DEPTH | constant |
public static const BSP_DEPTH:int = 0The value of the parameterType property which enables polygons' BSP-tree depth visualization. Polygons that are deeper in BSP-tree are painted with lighter color.
| DEGENERATE_POLY | constant |
public static const DEGENERATE_POLY:int = 4The value of the parameterType property which enables degenerate polygons visualization. Degenerate polygons are shown with red outline five pixels width.
| FRAGMENTATION | constant |
public static const FRAGMENTATION:int = 2The value of the parameterType property which enables faces' fragmentation visualization. The more fragmented faces are lighter.
| MOBILITY | constant |
public static const MOBILITY:int = 1The value of the parameterType property which enables polygons' mobility visualization. The more fragmented faces are painted with lighter color.
| NON_PLANAR_POLY | constant |
public static const NON_PLANAR_POLY:int = 5The value of the parameterType property which enables visualization of non-planar polygons. A polygon is treated as non-planar if it has a vertex whose distance from the polygon's plane is greater than value of the maxParameterValue property. Non-planar polygons are filled with red color and outlined by red line.
| NO_UV_MAPPING | constant |
public static const NO_UV_MAPPING:int = 3The value of the parameterType property which tells material to show faces without UV-coordinates. Such faces are filled with red color.