Packageaway3d.materials.methods
Classpublic class ProjectiveTextureMethod
InheritanceProjectiveTextureMethod Inheritance ShadingMethodBase

Public Properties
 PropertyDefined by
  mode : String
ProjectiveTextureMethod
 Inheritedpasses : Vector
Any passes required that render to a texture used by this method.
ShadingMethodBase
  projector : TextureProjector
ProjectiveTextureMethod
 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
  
ProjectiveTextureMethod
(projector:TextureProjector, mode:String = "multiply")
Creates a new BasicDiffuseMethod object.
ProjectiveTextureMethod
 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
Public Constants
 ConstantDefined by
  ADD : String = "add"
[static]
ProjectiveTextureMethod
  MIX : String = "mix"
[static]
ProjectiveTextureMethod
  MULTIPLY : String = "multiply"
[static]
ProjectiveTextureMethod
Property detail
modeproperty
mode:String  [read-write]Implementation
    public function get mode():String
    public function set mode(value:String):void
projectorproperty 
projector:TextureProjector  [read-write]Implementation
    public function get projector():TextureProjector
    public function set projector(value:TextureProjector):void
Constructor detail
ProjectiveTextureMethod()constructor
public function ProjectiveTextureMethod(projector:TextureProjector, mode:String = "multiply")Parameters
projector:TextureProjector
 
mode:String (default = "multiply")
Init Parameters
Method detail
activate()method
arcane override function activate(context:Context3D, contextIndex:uint):void

Sets the render state for this method.

Parameters
context:Context3D — The Context3D currently used for rendering.
 
contextIndex:uint
deactivate()method 
arcane override function deactivate(context:Context3D):void Parameters
context:Context3D
getFragmentPostLightingCode()method 
arcane override function getFragmentPostLightingCode(regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String

Get the fragment shader code that should be added after all per-light code. Usually composits everything to the target register.

Parameters
regCache:ShaderRegisterCache — The register cache used during the compilation.
 
targetReg:ShaderRegisterElement

Returns
String
getVertexCode()method 
arcane override function getVertexCode(regCache:ShaderRegisterCache):String Parameters
regCache:ShaderRegisterCache

Returns
String
setRenderState()method 
arcane override function setRenderState(renderable:IRenderable, context:Context3D, contextIndex:uint, camera:Camera3D, lights:Vector):void Parameters
renderable:IRenderable
 
context:Context3D
 
contextIndex:uint
 
camera:Camera3D
 
lights:Vector
Constant detail
ADDconstant
public static const ADD:String = "add"
MIXconstant 
public static const MIX:String = "mix"
MULTIPLYconstant 
public static const MULTIPLY:String = "multiply"
Wiki link
Click to go to the wiki page for 'away3d.materials.methods.ProjectiveTextureMethod'

Code examples

Comments