| Package | away3d.materials.methods |
| Class | public class SubsurfaceScatteringDiffuseMethod |
| Inheritance | SubsurfaceScatteringDiffuseMethod CompositeDiffuseMethod BasicDiffuseMethod LightingMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | alphaThreshold : Number [override] | CompositeDiffuseMethod | |
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | baseMethod : BasicDiffuseMethod
The base diffuse method on which this method's shading is based. | CompositeDiffuseMethod | |
![]() | diffuseAlpha : Number [override]
The alpha component of the diffuse reflection. | CompositeDiffuseMethod | |
![]() | diffuseColor : uint [override]
The color of the diffuse reflection when not using a texture. | CompositeDiffuseMethod | |
![]() | name : String | NamedAssetBase | |
![]() | 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 | |
| scatterColor : uint
The colour the light becomes inside the object. | SubsurfaceScatteringDiffuseMethod | ||
| scattering : Number
The amount by which the light scatters. | SubsurfaceScatteringDiffuseMethod | ||
![]() | texture : Texture2DBase [override]
The bitmapData to use to define the diffuse reflection color per texel. | CompositeDiffuseMethod | |
![]() | _totalLightColorReg : ShaderRegisterElement | BasicDiffuseMethod | |
| translucency : Number
The translucency of the object. | SubsurfaceScatteringDiffuseMethod | ||
| Method | Defined By | ||
|---|---|---|---|
SubsurfaceScatteringDiffuseMethod(depthMapSize:int = 512, depthMapOffset:Number = 15)
Creates a new SubsurfaceScatteringDiffuseMethod object. | SubsurfaceScatteringDiffuseMethod | ||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | 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. | CompositeDiffuseMethod | |
![]() | generateMip(stage3DProxy:Stage3DProxy):void | BasicDiffuseMethod | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| scatterColor | property |
scatterColor:uintThe colour the light becomes inside the object.
public function get scatterColor():uint public function set scatterColor(value:uint):void| scattering | property |
scattering:NumberThe amount by which the light scatters. It can be used to set the translucent surface's thickness. Use low values for skin.
public function get scattering():Number public function set scattering(value:Number):void| translucency | property |
translucency:NumberThe translucency of the object.
public function get translucency():Number public function set translucency(value:Number):void| SubsurfaceScatteringDiffuseMethod | () | Constructor |
public function SubsurfaceScatteringDiffuseMethod(depthMapSize:int = 512, depthMapOffset:Number = 15)Creates a new SubsurfaceScatteringDiffuseMethod object.
ParametersdepthMapSize:int (default = 512) — The size of the depth map used.
| |
depthMapOffset:Number (default = 15) — The amount by which the rendered object will be inflated, to prevent depth map rounding errors.
|
| 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, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):StringGet the fragment shader code that will generate the code relevant to a single light.
Parameters
vo:MethodVO | |
lightDirReg:ShaderRegisterElement | |
lightColReg:ShaderRegisterElement | |
regCache:ShaderRegisterCache |
String |
| getFragmentPostLightingCode | () | method |
override arcane function getFragmentPostLightingCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
| getFragmentPreLightingCode | () | method |
override arcane function getFragmentPreLightingCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache |
String |
| getVertexCode | () | method |
override arcane function getVertexCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache |
String |
| initConstants | () | method |
| setRenderState | () | method |
override arcane function setRenderState(vo:MethodVO, renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):voidParameters
vo:MethodVO | |
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D |