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



Public Properties
 PropertyDefined By
  alpha : Number
ShaderEnvMapping
 Inheritedattributes : Vector.<EVertexAttribute>
[read-only]
Shader
  envMap : CubeTextureMap
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
  texture : TextureMap
ShaderEnvMapping
Public Methods
 MethodDefined By
  
ShaderEnvMapping(_cubeMap:CubeTextureMap, _normalMap:TextureMap = null, _reflectivityMap:TextureMap = null, _alpha:Number = 1.0)
ShaderEnvMapping
 Inherited
Shader
  
getFragmentProgram(_lightType:ELightType = null):ByteArray
[override]
ShaderEnvMapping
  
getProgram(_context3D:Context3D, _lightType:ELightType = null, _meshType:String = null):Program3D
[override]
ShaderEnvMapping
  
getVertexProgram(_meshKey:String, _lightType:ELightType = null):ByteArray
[override]
ShaderEnvMapping
Property Detail
alphaproperty
alpha:Number


Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
envMapproperty 
envMap:CubeTextureMap


Implementation
    public function get envMap():CubeTextureMap
    public function set envMap(value:CubeTextureMap):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
textureproperty 
texture:TextureMap


Implementation
    public function get texture():TextureMap
    public function set texture(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:ELightType = null):ByteArray

Parameters

_lightType:ELightType (default = null)

Returns
ByteArray
getProgram()method 
override public function getProgram(_context3D:Context3D, _lightType:ELightType = null, _meshType:String = null):Program3D

Parameters

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

Returns
Program3D
getVertexProgram()method 
override public function getVertexProgram(_meshKey:String, _lightType:ELightType = null):ByteArray

Parameters

_meshKey:String
 
_lightType:ELightType (default = null)

Returns
ByteArray