Package | away3d.materials.methods |
Class | public class WrapDiffuseMethod |
Inheritance | WrapDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
alphaThreshold : Number
The minimum alpha value for which pixels should be drawn. | BasicDiffuseMethod | ||
diffuseAlpha : Number
The alpha component of the diffuse reflection. | BasicDiffuseMethod | ||
diffuseColor : uint
The color of the diffuse reflection when not using a texture. | BasicDiffuseMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
scatterTexture : Texture2DBase | WrapDiffuseMethod | ||
texture : Texture2DBase
The bitmapData to use to define the diffuse reflection color per texel. | BasicDiffuseMethod | ||
_totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase | ||
wrapFactor : Number | WrapDiffuseMethod |
Method | Defined By | ||
---|---|---|---|
WrapDiffuseMethod(wrapFactor:Number = .5, scatterTexture:Texture2DBase = null)
Creates a new WrapDiffuseMethod object. | WrapDiffuseMethod | ||
copyFrom(method:ShadingMethodBase):void [override]
Copies the state from a BasicDiffuseMethod object into the current object. | BasicDiffuseMethod | ||
dispose():void [override]
Cleans up any resources used by the current object. | BasicDiffuseMethod | ||
generateMip(stage3DProxy:Stage3DProxy):void | BasicDiffuseMethod |
scatterTexture | property |
scatterTexture:Texture2DBase
public function get scatterTexture():Texture2DBase
public function set scatterTexture(value:Texture2DBase):void
wrapFactor | property |
wrapFactor:Number
public function get wrapFactor():Number
public function set wrapFactor(value:Number):void
WrapDiffuseMethod | () | Constructor |
public function WrapDiffuseMethod(wrapFactor:Number = .5, scatterTexture:Texture2DBase = null)
Creates a new WrapDiffuseMethod object.
ParameterswrapFactor:Number (default = .5 ) — A factor to indicate the amount by which the light is allowed to wrap
| |
scatterTexture:Texture2DBase (default = null ) — A texture that contains the light colour based on the angle. This can be used to change the light colour due to subsurface scattering when dot < 0
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
cleanCompilationData | () | method |
override arcane function cleanCompilationData():void
getFragmentCodePerLight | () | method |
override arcane function getFragmentCodePerLight(vo:MethodVO, lightIndex:int, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):String
Parameters
vo:MethodVO | |
lightIndex:int | |
lightDirReg:ShaderRegisterElement | |
lightColReg:ShaderRegisterElement | |
regCache:ShaderRegisterCache |
String |
getFragmentPreLightingCode | () | method |
override arcane function getFragmentPreLightingCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache |
String |
initConstants | () | method |