Package | away3d.materials.methods |
Class | public class FresnelSpecularMethod |
Inheritance | FresnelSpecularMethod WrapSpecularMethod BasicSpecularMethod LightingMethodBase ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
bitmapData : BitmapData
The bitmapData that encodes the specular highlight strength per texel in the red channel, and the sharpness
in the green channel.
| WrapSpecularMethod | ||
gloss : Number
The sharpness of the specular highlight.
| BasicSpecularMethod | ||
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
Any passes required that render to a texture used by this method.
| WrapSpecularMethod | ||
shadowRegister : ShaderRegisterElement | WrapSpecularMethod | ||
specular : Number
The overall strength of the specular highlights.
| BasicSpecularMethod | ||
specularColor : uint
The colour of the specular reflection of the surface.
| BasicSpecularMethod | ||
viewDirVaryingReg : ShaderRegisterElement | WrapSpecularMethod |
Method | Defined by | ||
---|---|---|---|
FresnelSpecularMethod
(basedOnSurface:Boolean = true, baseSpecularMethod:BasicSpecularMethod = null)
Creates a new FresnelSpecularMethod object.
| FresnelSpecularMethod | ||
Copies the state from a BasicSpecularMethod object into the current object.
| BasicSpecularMethod | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| WrapSpecularMethod | ||
invalidateBitmapData():void
Marks the texture for update next on the next render.
| WrapSpecularMethod |
normalReflectance | property |
normalReflectance:Number
[read-write]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
FresnelSpecularMethod | () | constructor |
public function FresnelSpecularMethod(basedOnSurface:Boolean = true, baseSpecularMethod:BasicSpecularMethod = null)
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 )
|
activate | () | method |
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameterscontext:Context3D — The Context3D currently used for rendering.
|
|
contextIndex:uint |
getFragmentAGALPreLightingCode | () | method |
arcane override function getFragmentAGALPreLightingCode(regCache:ShaderRegisterCache):String
Get the fragment shader code that will be needed before any per-light code is added.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
String |