| Property | Defined By | ||
|---|---|---|---|
| attributes : Vector.<EVertexAttribute> [read-only] | Shader | ||
| key : String
Key string of a shader. | Shader | ||
| params : ShaderParameters
Returns the shader parameters. | Shader | ||
| Method | Defined By | ||
|---|---|---|---|
Shader()
Constructor of the shader class. | Shader | ||
disposeShaders():void | Shader | ||
getFragmentProgram(_lightType:ELightType = null):ByteArray | Shader | ||
getProgram(_context3D:Context3D, _lightType:ELightType = null, _meshKey:String):Program3D
Returns the Program3D object for this shader. | Shader | ||
getVertexProgram(_meshKey:String, _lightType:ELightType = null):ByteArray | Shader | ||
| attributes | property |
attributes:Vector.<EVertexAttribute> [read-only] public function get attributes():Vector.<EVertexAttribute>| key | property |
key:StringKey string of a shader. This key is used to cache Program3D objects, when the same shader is used several times. This key must be unique for every shader program you write. So this means if the AGAL changes you must change the key accordingly.
public function get key():String public function set key(value:String):void| m_attributes | property |
YOGURT3D_INTERNAL var m_attributes:Vector.<EVertexAttribute>| m_params | property |
YOGURT3D_INTERNAL var m_params:ShaderParameters| params | property |
params:ShaderParametersReturns the shader parameters.
public function get params():ShaderParameters public function set params(value:ShaderParameters):voidSee also
| Shader | () | Constructor |
public function Shader()Constructor of the shader class. You must call this constructor using super() from your own class that extends Shader.
| disposeShaders | () | method |
public function disposeShaders():void
| getFragmentProgram | () | method |
public function getFragmentProgram(_lightType:ELightType = null):ByteArray
Parameters
_lightType:ELightType (default = null) |
ByteArray —
|
| getProgram | () | method |
public function getProgram(_context3D:Context3D, _lightType:ELightType = null, _meshKey:String):Program3DReturns the Program3D object for this shader. \n This function uses it's parameters to determine to fetch the appropiate Program3D object.\n
Parameters
_context3D:Context3D | |
_lightType:ELightType (default = null) | |
_meshKey:String |
Program3D —
|
| getVertexProgram | () | method |
public function getVertexProgram(_meshKey:String, _lightType:ELightType = null):ByteArray
Parameters
_meshKey:String | |
_lightType:ELightType (default = null) |
ByteArray —
|