| Package | away3d.materials.methods |
| Class | public class ProjectiveTextureMethod |
| Inheritance | ProjectiveTextureMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | assetType : String [read-only] | EffectMethodBase | |
| mode : String
The blend mode with which the texture is blended unto the object. | ProjectiveTextureMethod | ||
![]() | name : String | NamedAssetBase | |
![]() | originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | |
![]() | 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 | ||
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | 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 | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | |
| Constant | Defined By | ||
|---|---|---|---|
| ADD : String = add [static] | ProjectiveTextureMethod | ||
![]() | DEFAULT_NAMESPACE : String = default [static] | NamedAssetBase | |
| MIX : String = mix [static] | ProjectiveTextureMethod | ||
| MULTIPLY : String = multiply [static] | ProjectiveTextureMethod | ||
| mode | property |
mode:StringThe 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:TextureProjectorThe TextureProjector object that defines the projection properties as well as the texture.
public function get projector():TextureProjector public function set projector(value:TextureProjector):voidSee 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):voidParameters
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