Package | away3d.materials.methods |
Class | public class FresnelPlanarReflectionMethod |
Inheritance | FresnelPlanarReflectionMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
See also
Property | Defined By | ||
---|---|---|---|
alpha : Number
The reflectivity of the surface. | FresnelPlanarReflectionMethod | ||
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | EffectMethodBase | ||
fresnelPower : Number
The power used in the Fresnel equation. | FresnelPlanarReflectionMethod | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
normalDisplacement : Number
The amount of displacement caused by per-pixel normals. | FresnelPlanarReflectionMethod | ||
normalReflectance : Number
The minimum amount of reflectance, ie the reflectance when the view direction is normal to the surface or light direction. | FresnelPlanarReflectionMethod | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
texture : PlanarReflectionTexture
The PlanarReflectionTexture containing a render of the mirrored scene. | FresnelPlanarReflectionMethod |
Method | Defined By | ||
---|---|---|---|
FresnelPlanarReflectionMethod(texture:PlanarReflectionTexture, alpha:Number = 1)
Creates a new FresnelPlanarReflectionMethod object. | FresnelPlanarReflectionMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
alpha | property |
alpha:Number
The reflectivity of the surface.
public function get alpha():Number
public function set alpha(value:Number):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
normalDisplacement | property |
normalDisplacement:Number
The amount of displacement caused by per-pixel normals.
public function get normalDisplacement():Number
public function set normalDisplacement(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
texture | property |
texture:PlanarReflectionTexture
The PlanarReflectionTexture containing a render of the mirrored scene.
public function get texture():PlanarReflectionTexture
public function set texture(value:PlanarReflectionTexture):void
See also
FresnelPlanarReflectionMethod | () | Constructor |
public function FresnelPlanarReflectionMethod(texture:PlanarReflectionTexture, alpha:Number = 1)
Creates a new FresnelPlanarReflectionMethod object.
Parameterstexture:PlanarReflectionTexture — The PlanarReflectionTexture containing a render of the mirrored scene.
| |
alpha:Number (default = 1 ) — The maximum reflectivity of the surface.
|
See also
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|