Package | flare.materials |
Class | public class FLSLMaterial |
Inheritance | FLSLMaterial ![]() ![]() |
Subclasses | NullMaterial, Shader3D, TextureMaterial |
Property | Defined By | ||
---|---|---|---|
![]() | cullFace : String
The culling mode. | Material3D | |
![]() | 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 | |
![]() | 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, programs:Vector.<FLSLProgram> = 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 | ||
getTextueByName(name:String, index:int = 0):Texture3D | FLSLMaterial | ||
setTextueByName(name:String, value:Texture3D, index:int = 0):void | FLSLMaterial | ||
![]() |
Uploads the necesary data to the graphics card. | Material3D |
programs | property |
programs:Vector.<FLSLProgram>
public function get programs():Vector.<FLSLProgram>
public function set programs(value:Vector.<FLSLProgram>):void
FLSLMaterial | () | Constructor |
public function FLSLMaterial(name:String, programs:Vector.<FLSLProgram> = null)
name:String | |
programs:Vector.<FLSLProgram> (default = null )
|
getParamByName | () | method |
public function getParamByName(name:String, index:int = 0):FLSLParam
Parameters
name:String | |
index:int (default = 0 )
|
FLSLParam |
getTextueByName | () | method |
public function getTextueByName(name:String, index:int = 0):Texture3D
Parameters
name:String | |
index:int (default = 0 )
|
Texture3D |
setTextueByName | () | method |
public function setTextueByName(name:String, value:Texture3D, index:int = 0):void
Parameters
name:String | |
value:Texture3D | |
index:int (default = 0 )
|