Package | away3d.materials.methods |
Class | public class FresnelSpecularMethod |
Inheritance | FresnelSpecularMethod CompositeSpecularMethod BasicSpecularMethod LightingMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
fresnelPower : Number | FresnelSpecularMethod | ||
gloss : 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 | ||
passes : Vector.<MaterialPassBase> [override] [read-only]
Any passes required that render to a texture used by this method. | CompositeSpecularMethod | ||
shadingModel : String [override]
The model used by the specular shader
| CompositeSpecularMethod | ||
specular : Number [override]
The overall strength of the specular highlights. | CompositeSpecularMethod | ||
specularColor : uint
The colour of the specular reflection of the surface. | BasicSpecularMethod | ||
texture : Texture2DBase [override]
The bitmapData that encodes the specular highlight strength per texel in the red channel, and the sharpness
in the green channel. | CompositeSpecularMethod |
Method | Defined By | ||
---|---|---|---|
FresnelSpecularMethod(basedOnSurface:Boolean = true, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new FresnelSpecularMethod object. | FresnelSpecularMethod | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a BasicSpecularMethod object into the current object. | BasicSpecularMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompositeSpecularMethod |
fresnelPower | property |
fresnelPower:Number
public function get fresnelPower():Number
public function set fresnelPower(value:Number):void
normalReflectance | property |
normalReflectance:Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction.
public function get normalReflectance():Number
public function set normalReflectance(value:Number):void
FresnelSpecularMethod | () | Constructor |
public function FresnelSpecularMethod(basedOnSurface:Boolean = true, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new FresnelSpecularMethod object.
ParametersbasedOnSurface: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 )
|
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 |
String |
initConstants | () | method |