Package | away3d.materials.methods |
Class | public class FresnelSpecularMethod |
Inheritance | FresnelSpecularMethod CompositeSpecularMethod BasicSpecularMethod LightingMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
basedOnSurface : Boolean
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. | FresnelSpecularMethod | ||
baseMethod : BasicSpecularMethod
The base specular method on which this method's shading is based. | CompositeSpecularMethod | ||
fresnelPower : Number
The power used in the Fresnel equation. | FresnelSpecularMethod | ||
gloss : Number [override]
The sharpness of the specular highlight. | CompositeSpecularMethod | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
normalReflectance : Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction. | FresnelSpecularMethod | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [override] [read-only]
Any passes required that render to a texture used by this method. | 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 | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a ShadingMethodBase object into the current object. | BasicSpecularMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompositeSpecularMethod | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
basedOnSurface | property |
basedOnSurface:Boolean
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.
public function get basedOnSurface():Boolean
public function set basedOnSurface(value:Boolean):void
fresnelPower | property |
fresnelPower:Number
The power used in the Fresnel equation. Higher values make the fresnel effect more pronounced. Defaults to 5.
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 ) — The specular method to which the fresnel equation. Defaults to BasicSpecularMethod.
|
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 |
override arcane function initConstants(vo:MethodVO):void
Initializes unchanging shader constants using the data from a MethodVO.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|