ProjectiveTextureMethod is a material method used to project a texture unto the surface of an object. This can be used for various effects apart from acting like a normal projector, such as projecting fake shadows unto a surface, the impact of light coming through a stained glass window, ...

Static variables

@:value(BlendMode.ADD)staticinlineread onlyADD:BlendMode = BlendMode.ADD

@:value(BlendMode.DIFFERENCE)staticinlineread onlyMIX:BlendMode = BlendMode.DIFFERENCE

@:value(BlendMode.MULTIPLY)staticinlineread onlyMULTIPLY:BlendMode = BlendMode.MULTIPLY

Constructor

@:value({ mode : MULTIPLY })new(projector:TextureProjector, mode:BlendMode = MULTIPLY)

Creates a new ProjectiveTextureMethod object.

Parameters:

projector

The TextureProjector object that defines the projection properties as well as the texture.

mode

The blend mode with which the texture is blended unto the surface.

See also:

  • away3d.entities.TextureProjector

Variables

Inherited Variables

Defined by EffectMethodBase

read onlyassetType:String

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ShadingMethodBase

copyFrom(method:ShadingMethodBase):Void

Copies the state from a ShadingMethodBase object into the current object.

dispose():Void

Cleans up any resources used by the current object.

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void