Package | away3d.materials.methods |
Class | public class FresnelSpecularMethod |
Inheritance | FresnelSpecularMethod ![]() ![]() ![]() ![]() ![]() ![]() |
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 | FresnelSpecularMethod | ||
![]() | gloss : Number [override]
The sharpness of the specular highlight. | CompositeSpecularMethod | |
![]() | 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 BasicSpecularMethod 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
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 |