Packagecom.yogurt3d.core.materials.shaders
Classpublic class ShaderAmbient
InheritanceShaderAmbient Inheritance Shader Inheritance Object

Ambient pass for multi-pass rendering pipeline.



Public Properties
 PropertyDefined By
  alphaTexture : TextureMap
[write-only]
ShaderAmbient
 Inheritedkey : String
Key string of a shader.
Shader
  opacity : Number
[write-only]
ShaderAmbient
 Inheritedparams : ShaderParameters
Returns the shader parameters.
Shader
 InheritedrequiresBoneData : Boolean
Flag indicating the shader requires bone indices and bone weights for selected mesh.\n BoneIndices are loaded into va4 and va5 on the gpu program, total of 8 influences.\n BoneWeights are loaded into va6 and va7 on the gpu program, total of 8 influences.\n If flag is set to false, no vertex attributes are loaded on 4,5,6,7\n
Shader
 InheritedrequiresLight : Boolean
Shader
 InheritedrequiresShadowCastingLight : Boolean
Shader
 InheritedrequiresTangents : Boolean
Flag indicating the shader requires bone indices and bone weights for selected mesh.\n BoneIndices are loaded into va4 and va5 on the gpu program, total of 8 influences.\n
Shader
Public Methods
 MethodDefined By
  
ShaderAmbient(_alpha:Number = 1)
ShaderAmbient
 Inherited
Shader
  
getFragmentProgram(_lightType:String):ByteArray
[override]
ShaderAmbient
  
getProgram(_context3D:Context3D, _lightType:String, _meshKey:String):Program3D
[override]
ShaderAmbient
  
getVertexProgram(_meshKey:String):ByteArray
[override]
ShaderAmbient
Property Detail
alphaTextureproperty
alphaTexture:TextureMap  [write-only]


Implementation
    public function set alphaTexture(value:TextureMap):void
opacityproperty 
opacity:Number  [write-only]


Implementation
    public function set opacity(value:Number):void
Constructor Detail
ShaderAmbient()Constructor
public function ShaderAmbient(_alpha:Number = 1)



Parameters
_alpha:Number (default = 1)
Method Detail
getFragmentProgram()method
override public function getFragmentProgram(_lightType:String):ByteArray

Parameters

_lightType:String

Returns
ByteArray
getProgram()method 
override public function getProgram(_context3D:Context3D, _lightType:String, _meshKey:String):Program3D

Parameters

_context3D:Context3D
 
_lightType:String
 
_meshKey:String

Returns
Program3D
getVertexProgram()method 
override public function getVertexProgram(_meshKey:String):ByteArray

Parameters

_meshKey:String

Returns
ByteArray