| Package | com.yogurt3d.core.materials.shaders |
| Class | public class ShaderEnvMapping |
| Inheritance | ShaderEnvMapping Shader Object |
| Property | Defined By | ||
|---|---|---|---|
| alpha : Number | ShaderEnvMapping | ||
![]() | key : String
Key string of a shader. | Shader | |
| m_alphaConsts : ShaderConstants | ShaderEnvMapping | ||
| normalMap : TextureMap | ShaderEnvMapping | ||
![]() | params : ShaderParameters
Returns the shader parameters. | Shader | |
| reflectivityMap : TextureMap | ShaderEnvMapping | ||
![]() | 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 | ||
|---|---|---|---|
ShaderEnvMapping(_cubeMap:CubeTextureMap, _normalMap:TextureMap = null, _reflectivityMap:TextureMap = null, _alpha:Number = 1.0) | ShaderEnvMapping | ||
![]() | disposeShaders():void | Shader | |
getFragmentProgram(_lightType:String):ByteArray [override] | ShaderEnvMapping | ||
getProgram(_context3D:Context3D, _lightType:String, _meshType:String = null):Program3D [override] | ShaderEnvMapping | ||
getVertexProgram(_meshKey:String):ByteArray [override] | ShaderEnvMapping | ||
| alpha | property |
alpha:Number public function get alpha():Number public function set alpha(value:Number):void| m_alphaConsts | property |
public var m_alphaConsts:ShaderConstants| normalMap | property |
normalMap:TextureMap public function get normalMap():TextureMap public function set normalMap(value:TextureMap):void| reflectivityMap | property |
reflectivityMap:TextureMap public function get reflectivityMap():TextureMap public function set reflectivityMap(value:TextureMap):void| ShaderEnvMapping | () | Constructor |
public function ShaderEnvMapping(_cubeMap:CubeTextureMap, _normalMap:TextureMap = null, _reflectivityMap:TextureMap = null, _alpha:Number = 1.0)Parameters
_cubeMap:CubeTextureMap | |
_normalMap:TextureMap (default = null) | |
_reflectivityMap:TextureMap (default = null) | |
_alpha:Number (default = 1.0) |
| getFragmentProgram | () | method |
override public function getFragmentProgram(_lightType:String):ByteArrayParameters
_lightType:String |
ByteArray |
| getProgram | () | method |
override public function getProgram(_context3D:Context3D, _lightType:String, _meshType:String = null):Program3DParameters
_context3D:Context3D | |
_lightType:String | |
_meshType:String (default = null) |
Program3D |
| getVertexProgram | () | method |
override public function getVertexProgram(_meshKey:String):ByteArrayParameters
_meshKey:String |
ByteArray |