Package | away3d.materials.methods |
Class | public class ProjectiveTextureMethod |
Inheritance | ProjectiveTextureMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
mode : String | ProjectiveTextureMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
projector : TextureProjector | ProjectiveTextureMethod | ||
viewDirVaryingReg : ShaderRegisterElement | ShadingMethodBase |
Method | Defined By | ||
---|---|---|---|
ProjectiveTextureMethod(projector:TextureProjector, mode:String = multiply)
Creates a new BasicDiffuseMethod object. | ProjectiveTextureMethod | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():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
public function get mode():String
public function set mode(value:String):void
projector | property |
projector:TextureProjector
public function get projector():TextureProjector
public function set projector(value:TextureProjector):void
ProjectiveTextureMethod | () | Constructor |
public function ProjectiveTextureMethod(projector:TextureProjector, mode:String = multiply)
Creates a new BasicDiffuseMethod object.
Parametersprojector:TextureProjector | |
mode:String (default = multiply )
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
cleanCompilationData | () | method |
override arcane function cleanCompilationData():void
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
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):void
Parameters
vo:MethodVO | |
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
ADD | Constant |
public static const ADD:String = add
MIX | Constant |
public static const MIX:String = mix
MULTIPLY | Constant |
public static const MULTIPLY:String = multiply