Package | flare.materials.flsl |
Class | public class FLSLMaterial |
Inheritance | FLSLMaterial ![]() ![]() |
Subclasses | NullMaterial, QuadMaterial, Shader3D |
Property | Defined By | ||
---|---|---|---|
![]() | cullFace : String
The culling mode. | Material3D | |
currentPath : String [static] | FLSLMaterial | ||
![]() | depthCompare : String = lessEqual
The test comparasion to be used when depthWrite is 'true'. | Material3D | |
![]() | depthWrite : Boolean = true
Gets or sets whatever the material writes into the z-buffer. | Material3D | |
![]() | destFactor : String
The factor with which to multiply the destination color. | Material3D | |
![]() | name : String
The name of the material. | Material3D | |
programs : Vector.<FLSLProgram> | FLSLMaterial | ||
![]() | scene : Scene3D [read-only]
Gets a reference to the scene that the material is associated. | Material3D | |
semantics : Dictionary [static] | FLSLMaterial | ||
![]() | sourceFactor : String
The factor with which to multiply the source color. | Material3D | |
![]() | transparent : Boolean
Sets or gets if the material should use alpha blending. | Material3D | |
![]() | twoSided : Boolean
Sets or gets if the material should be drawn useing both sides of the surfaces. | Material3D |
Method | Defined By | ||
---|---|---|---|
FLSLMaterial(name:String, byteCode:ByteArray = null, techniqueName:String = null) | FLSLMaterial | ||
![]() |
Clones the material. | Material3D | |
![]() | dispose():void
Eliminates all the resources associated to the material. | Material3D | |
![]() | download():void
Downloads all the data uploaded to the graphics card. | Material3D | |
![]() |
Draw a mesh surface using the current material. | Material3D | |
getParamByName(name:String, index:int = 0):FLSLParam | FLSLMaterial | ||
getSamplerByName(name:String, index:int = 0):FLSLSampler | FLSLMaterial | ||
![]() |
Associates and link the material with the scene to be uploaded. | Material3D | |
![]() |
Validates that the surface is compatible with the material. | Material3D |
currentPath | property |
public static var currentPath:String
programs | property |
programs:Vector.<FLSLProgram>
public function get programs():Vector.<FLSLProgram>
public function set programs(value:Vector.<FLSLProgram>):void
semantics | property |
public static var semantics:Dictionary
FLSLMaterial | () | Constructor |
public function FLSLMaterial(name:String, byteCode:ByteArray = null, techniqueName:String = null)
name:String | |
byteCode:ByteArray (default = null )
| |
techniqueName:String (default = null )
|
getParamByName | () | method |
public function getParamByName(name:String, index:int = 0):FLSLParam
Parameters
name:String | |
index:int (default = 0 )
|
FLSLParam |
getSamplerByName | () | method |
public function getSamplerByName(name:String, index:int = 0):FLSLSampler
Parameters
name:String | |
index:int (default = 0 )
|
FLSLSampler |