Packageaway3d.materials.methods
Classpublic class LightingMethodBase
InheritanceLightingMethodBase Inheritance ShadingMethodBase
SubclassesBasicDiffuseMethod, BasicSpecularMethod

LightingMethodBase provides an abstract base method for shading methods that uses lights. Used for diffuse and specular shaders only.

Public Properties
 PropertyDefined by
 Inheritedpasses : Vector
Any passes required that render to a texture used by this method.
ShadingMethodBase
 InheritedviewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Protected Properties
 PropertyDefined by
 Inherited_globalPosVertexReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_mipmap : Boolean = true
ShadingMethodBase
 Inherited_needsGlobalPos : Boolean
ShadingMethodBase
 Inherited_needsNormals : Boolean
ShadingMethodBase
 Inherited_needsProjection : Boolean
ShadingMethodBase
 Inherited_needsUV : Boolean
ShadingMethodBase
 Inherited_needsView : Boolean
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_numLights : int
ShadingMethodBase
 Inherited_passes : Vector
ShadingMethodBase
 Inherited_projectionReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_repeat : Boolean
ShadingMethodBase
 Inherited_smooth : Boolean = true
ShadingMethodBase
 Inherited_uvFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Public Methods
 MethodDefined by
  
LightingMethodBase
(needsNormals:Boolean, needsView:Boolean, needsGlobalPos:Boolean)
Create a new ShadingMethodBase object.
LightingMethodBase
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
ShadingMethodBase
Protected Methods
 MethodDefined by
 Inherited
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Property detail
_modulateMethodproperty
arcane var _modulateMethod:Function

A method that is exposed to wrappers in case the strength needs to be controlled

Constructor detail
LightingMethodBase()constructor
public function LightingMethodBase(needsNormals:Boolean, needsView:Boolean, needsGlobalPos:Boolean)Parameters
needsNormals:Boolean — Defines whether or not the method requires normals.
 
needsView:Boolean — Defines whether or not the method requires the view direction.
 
needsGlobalPos:Boolean
Init Parameters
Wiki link
Click to go to the wiki page for 'away3d.materials.methods.LightingMethodBase'

Code examples

Comments