| Package | com.yogurt3d.core.materials.shaders |
| Class | public class ShaderAmbient |
| Inheritance | ShaderAmbient Shader Object |
| Property | Defined By | ||
|---|---|---|---|
| alphaTexture : TextureMap [write-only] | ShaderAmbient | ||
![]() | key : String
Key string of a shader. | Shader | |
| opacity : Number [write-only] | ShaderAmbient | ||
![]() | params : ShaderParameters
Returns the shader parameters. | Shader | |
![]() | requiresBoneData : 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 | |
![]() | requiresLight : Boolean | Shader | |
![]() | requiresShadowCastingLight : Boolean | Shader | |
![]() | requiresTangents : 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 | |
| Method | Defined By | ||
|---|---|---|---|
ShaderAmbient(_alpha:Number = 1) | ShaderAmbient | ||
![]() | disposeShaders():void | Shader | |
getFragmentProgram(_lightType:String):ByteArray [override] | ShaderAmbient | ||
getProgram(_context3D:Context3D, _lightType:String, _meshKey:String):Program3D [override] | ShaderAmbient | ||
getVertexProgram(_meshKey:String):ByteArray [override] | ShaderAmbient | ||
| alphaTexture | property |
alphaTexture:TextureMap [write-only] public function set alphaTexture(value:TextureMap):void| opacity | property |
opacity:Number [write-only] public function set opacity(value:Number):void| ShaderAmbient | () | Constructor |
public function ShaderAmbient(_alpha:Number = 1)_alpha:Number (default = 1) |
| getFragmentProgram | () | method |
override public function getFragmentProgram(_lightType:String):ByteArrayParameters
_lightType:String |
ByteArray |
| getProgram | () | method |
override public function getProgram(_context3D:Context3D, _lightType:String, _meshKey:String):Program3DParameters
_context3D:Context3D | |
_lightType:String | |
_meshKey:String |
Program3D |
| getVertexProgram | () | method |
override public function getVertexProgram(_meshKey:String):ByteArrayParameters
_meshKey:String |
ByteArray |