Packageaway3d.materials.methods
Classpublic class FresnelSpecularMethod
InheritanceFresnelSpecularMethod Inheritance CompositeSpecularMethod Inheritance BasicSpecularMethod Inheritance LightingMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher

FresnelSpecularMethod provides a specular shading method that is stronger on shallow view angles.



Public Properties
 PropertyDefined By
  fresnelPower : Number
FresnelSpecularMethod
 Inheritedgloss : Number
[override] The sharpness of the specular highlight.
CompositeSpecularMethod
  normalReflectance : Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction.
FresnelSpecularMethod
 Inheritedpasses : Vector.<MaterialPassBase>
[override] [read-only] Any passes required that render to a texture used by this method.
CompositeSpecularMethod
 InheritedshadingModel : String
[override] The model used by the specular shader
CompositeSpecularMethod
 Inheritedspecular : Number
[override] The overall strength of the specular highlights.
CompositeSpecularMethod
 InheritedspecularColor : uint
The colour of the specular reflection of the surface.
BasicSpecularMethod
 Inheritedtexture : Texture2DBase
[override] The bitmapData that encodes the specular highlight strength per texel in the red channel, and the sharpness in the green channel.
CompositeSpecularMethod
Protected Properties
 PropertyDefined By
 Inherited_isFirstLight : Boolean
BasicSpecularMethod
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_sharedRegisters : ShaderRegisterData
ShadingMethodBase
 Inherited_specularDataRegister : ShaderRegisterElement
BasicSpecularMethod
 Inherited_specularTexData : ShaderRegisterElement
BasicSpecularMethod
 Inherited_specularTextureRegister : ShaderRegisterElement
BasicSpecularMethod
 Inherited_totalLightColorReg : ShaderRegisterElement
BasicSpecularMethod
 Inherited_useTexture : Boolean
BasicSpecularMethod
Public Methods
 MethodDefined By
  
FresnelSpecularMethod(basedOnSurface:Boolean = true, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new FresnelSpecularMethod object.
FresnelSpecularMethod
 Inherited
[override] Copies the state from a BasicSpecularMethod object into the current object.
BasicSpecularMethod
 Inherited
dispose():void
[override] Cleans up any resources used by the current object.
CompositeSpecularMethod
Protected Methods
 MethodDefined By
 Inherited
getTex2DSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, uvReg:ShaderRegisterElement = null, forceWrap:String = null):String
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Property Detail
fresnelPowerproperty
fresnelPower:Number


Implementation
    public function get fresnelPower():Number
    public function set fresnelPower(value:Number):void
normalReflectanceproperty 
normalReflectance:Number

The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction.


Implementation
    public function get normalReflectance():Number
    public function set normalReflectance(value:Number):void
Constructor Detail
FresnelSpecularMethod()Constructor
public function FresnelSpecularMethod(basedOnSurface:Boolean = true, baseSpecularMethod:BasicSpecularMethod = null)

Creates a new FresnelSpecularMethod object.

Parameters
basedOnSurface:Boolean (default = true) — Defines whether the fresnel effect should be based on the view angle on the surface (if true), or on the angle between the light and the view.
 
baseSpecularMethod:BasicSpecularMethod (default = null)
Method Detail
activate()method
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void

Parameters

vo:MethodVO
 
stage3DProxy:Stage3DProxy

cleanCompilationData()method 
override arcane function cleanCompilationData():void

getFragmentPreLightingCode()method 
override arcane function getFragmentPreLightingCode(vo:MethodVO, regCache:ShaderRegisterCache):String

Parameters

vo:MethodVO
 
regCache:ShaderRegisterCache

Returns
String
initConstants()method 
override arcane function initConstants(vo:MethodVO):void

Parameters

vo:MethodVO