Packagecom.yogurt3d.core.materials.shaders
Classpublic class ShaderEnvMapping
InheritanceShaderEnvMapping Inheritance Shader Inheritance Object



Public Properties
 PropertyDefined By
  alpha : Number
ShaderEnvMapping
 Inheritedkey : String
Key string of a shader.
Shader
  m_alphaConsts : ShaderConstants
ShaderEnvMapping
  normalMap : TextureMap
ShaderEnvMapping
 Inheritedparams : ShaderParameters
Returns the shader parameters.
Shader
  reflectivityMap : TextureMap
ShaderEnvMapping
 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
  
ShaderEnvMapping(_cubeMap:CubeTextureMap, _normalMap:TextureMap = null, _reflectivityMap:TextureMap = null, _alpha:Number = 1.0)
ShaderEnvMapping
 Inherited
Shader
  
getFragmentProgram(_lightType:String):ByteArray
[override]
ShaderEnvMapping
  
getProgram(_context3D:Context3D, _lightType:String, _meshType:String = null):Program3D
[override]
ShaderEnvMapping
  
getVertexProgram(_meshKey:String):ByteArray
[override]
ShaderEnvMapping
Property Detail
alphaproperty
alpha:Number


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
m_alphaConstsproperty 
public var m_alphaConsts:ShaderConstants

normalMapproperty 
normalMap:TextureMap


Implementation
    public function get normalMap():TextureMap
    public function set normalMap(value:TextureMap):void
reflectivityMapproperty 
reflectivityMap:TextureMap


Implementation
    public function get reflectivityMap():TextureMap
    public function set reflectivityMap(value:TextureMap):void
Constructor Detail
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)
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, _meshType:String = null):Program3D

Parameters

_context3D:Context3D
 
_lightType:String
 
_meshType:String (default = null)

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

Parameters

_meshKey:String

Returns
ByteArray