Package | away3d.materials.methods |
Class | public class ProjectiveTextureMethod |
Inheritance | ProjectiveTextureMethod ShadingMethodBase |
Property | Defined by | ||
---|---|---|---|
mode : String | ProjectiveTextureMethod | ||
passes : Vector
Any passes required that render to a texture used by this method.
| ShadingMethodBase | ||
projector : TextureProjector | ProjectiveTextureMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined by | ||
---|---|---|---|
Creates a new BasicDiffuseMethod object.
| ProjectiveTextureMethod | ||
Copies the state from a ShadingMethodBase object into the current object.
| ShadingMethodBase | ||
dispose(deep:Boolean):void
Cleans up any resources used by the current object.
| ShadingMethodBase |
Constant | Defined by | ||
---|---|---|---|
ADD : String = "add" [static]
| ProjectiveTextureMethod | ||
MIX : String = "mix" [static]
| ProjectiveTextureMethod | ||
MULTIPLY : String = "multiply" [static]
| ProjectiveTextureMethod |
mode | property |
mode:String
[read-write]Implementation
public function get mode():String
public function set mode(value:String):void
projector | property |
projector:TextureProjector
[read-write]Implementation
public function get projector():TextureProjector
public function set projector(value:TextureProjector):void
ProjectiveTextureMethod | () | constructor |
public function ProjectiveTextureMethod(projector:TextureProjector, mode:String = "multiply")
Parameters
projector:TextureProjector |
|
mode:String (default = "multiply ")
|
activate | () | method |
arcane override function activate(context:Context3D, contextIndex:uint):void
Sets the render state for this method.
Parameterscontext: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.
ParametersregCache:ShaderRegisterCache — The register cache used during the compilation.
|
|
targetReg:ShaderRegisterElement |
String |
getVertexCode | () | method |
arcane override function getVertexCode(regCache:ShaderRegisterCache):String
Parameters
regCache:ShaderRegisterCache |
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 |
ADD | constant |
public static const ADD:String = "add"
MIX | constant |
public static const MIX:String = "mix"
MULTIPLY | constant |
public static const MULTIPLY:String = "multiply"