Package | away3d.materials.methods |
Class | public class ProjectiveTextureMethod |
Inheritance | ProjectiveTextureMethod EffectMethodBase ShadingMethodBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
mode : String
The blend mode with which the texture is blended unto the object. | ProjectiveTextureMethod | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
projector : TextureProjector
The TextureProjector object that defines the projection properties as well as the texture. | ProjectiveTextureMethod |
Method | Defined By | ||
---|---|---|---|
ProjectiveTextureMethod(projector:TextureProjector, mode:String = multiply)
Creates a new ProjectiveTextureMethod 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
The blend mode with which the texture is blended unto the object. ProjectiveTextureMethod.MULTIPLY can be used to project shadows. To prevent clamping, the texture's alpha should be white! ProjectiveTextureMethod.ADD can be used to project light, such as a slide projector or light coming through stained glass. To prevent clamping, the texture's alpha should be black! ProjectiveTextureMethod.MIX provides normal alpha blending. To prevent clamping, the texture's alpha should be transparent!
public function get mode():String
public function set mode(value:String):void
projector | property |
projector:TextureProjector
The TextureProjector object that defines the projection properties as well as the texture.
public function get projector():TextureProjector
public function set projector(value:TextureProjector):void
See also
ProjectiveTextureMethod | () | Constructor |
public function ProjectiveTextureMethod(projector:TextureProjector, mode:String = multiply)
Creates a new ProjectiveTextureMethod object.
Parametersprojector:TextureProjector — The TextureProjector object that defines the projection properties as well as the texture.
| |
mode:String (default = multiply ) — The blend mode with which the texture is blended unto the surface.
|
See also
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