Package | flare.materials |
Class | public class Shader3D |
Inheritance | Shader3D ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | blendMode : int | Material3D | |
![]() | byteCode : ByteArray
Sets or gets the flsl byteCode associated with the material. | FLSLMaterial | |
![]() | cullFace : String
The culling mode. | Material3D | |
![]() | currentTextuesPath : String [static]
FLSL shaders can request textures to be loaded, they ussualy are placed in the same directory as the flsl compiled file. | 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 | |
enableLights : Boolean
Sets or gets if the material is affected by scene lights. | Shader3D | ||
filters : Array | Shader3D | ||
![]() | flags : uint
An engine defined variable to store different material properties. | Material3D | |
globalFilters : Array [static] | Shader3D | ||
libs : Array | Shader3D | ||
![]() | name : String
The name of the material. | Material3D | |
![]() | params : Dictionary
Contains a collection of flsl public declarations. | FLSLMaterial | |
postLightFilters : Array | Shader3D | ||
![]() | programs : Vector.<FLSLProgram>
Get or sets a collection of FLSLProgram structures to be used by this material. | FLSLMaterial | |
![]() | scene : Scene3D [read-only]
Gets a reference to the scene that the material is associated. | Material3D | |
![]() | semantics : Array [static]
Semantics are used to bind static data into specific flsl parameters. | FLSLMaterial | |
![]() | source : String | FLSLMaterial | |
![]() | sourceFactor : String
The factor with which to multiply the source color. | Material3D | |
![]() | techniqueName : String
The name of the thecnique to use. | FLSLMaterial | |
transform : FLSLFilter | Shader3D | ||
![]() | 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 | ||
---|---|---|---|
Shader3D(name:String, filters:Array = null, enableLights:Boolean = true, transform:FLSLFilter = null) | Shader3D | ||
![]() | build():void
Compiles the material if it isn't already compiled. | FLSLMaterial | |
![]() | [override]
Creates a clone of the FLSLMaterial. | FLSLMaterial | |
dispose():void [override] | Shader3D | ||
![]() | download():void
Downloads all the data uploaded to the graphics card. | Material3D | |
![]() |
Draw a mesh surface using the current material. | Material3D | |
Shader3D | |||
getFilterByClass(filterClass:Class):* | Shader3D | ||
![]() | getTechniqueNames():Array
Retirms all technique names available in the current shader. | FLSLMaterial | |
![]() | rebuild():void
Forces to recompile the material. | FLSLMaterial | |
removeFilterByClass(filterClass:Class):Boolean | Shader3D | ||
![]() | setTechnique(name:String = null):void | FLSLMaterial | |
![]() |
Associates and link the material with the scene to be uploaded. | Material3D | |
![]() |
Validates that the surface is compatible with the material. | Material3D |
Constant | Defined By | ||
---|---|---|---|
![]() | BLEND_ADDITIVE : int = 1 [static] | Material3D | |
![]() | BLEND_ALPHA_BLENDED : int = 2 [static] | Material3D | |
![]() | BLEND_MULTIPLY : int = 3 [static] | Material3D | |
![]() | BLEND_NONE : int = 0 [static] | Material3D | |
![]() | BLEND_SCREEN : int = 4 [static] | Material3D | |
![]() | FLAG_MASK : uint [static] | Material3D | |
![]() | FLAG_SKIN1 : uint [static] | Material3D | |
![]() | FLAG_SKIN2 : uint [static] | Material3D | |
![]() | FLAG_SKIN3 : uint [static] | Material3D | |
![]() | FLAG_SKIN4 : uint [static] | Material3D | |
VERTEX_NORMAL : FLSLFilter [static] | Shader3D | ||
VERTEX_SKIN : FLSLFilter [static] | Shader3D |
enableLights | property |
enableLights:Boolean
Sets or gets if the material is affected by scene lights.
public function get enableLights():Boolean
public function set enableLights(value:Boolean):void
filters | property |
filters:Array
public function get filters():Array
public function set filters(value:Array):void
globalFilters | property |
public static var globalFilters:Array
libs | property |
public var libs:Array
postLightFilters | property |
postLightFilters:Array
public function get postLightFilters():Array
public function set postLightFilters(value:Array):void
transform | property |
transform:FLSLFilter
public function get transform():FLSLFilter
public function set transform(value:FLSLFilter):void
Shader3D | () | Constructor |
public function Shader3D(name:String, filters:Array = null, enableLights:Boolean = true, transform:FLSLFilter = null)
name:String | |
filters:Array (default = null )
| |
enableLights:Boolean (default = true )
| |
transform:FLSLFilter (default = null )
|
dispose | () | method |
override public function dispose():void
duplicate | () | method |
getFilterByClass | () | method |
public function getFilterByClass(filterClass:Class):*
Parameters
filterClass:Class |
* |
removeFilterByClass | () | method |
public function removeFilterByClass(filterClass:Class):Boolean
Parameters
filterClass:Class |
Boolean |
VERTEX_NORMAL | Constant |
public static const VERTEX_NORMAL:FLSLFilter
VERTEX_SKIN | Constant |
public static const VERTEX_SKIN:FLSLFilter