Creates a new ProjectiveTextureMethod object.
The TextureProjector object that defines the projection properties as well as the texture.
The blend mode with which the texture is blended unto the surface.
adapter is used to provide MovieClip to scripts taken from different platforms setter typically managed by factory. getter defaults to AwayJS class
A unique id for the asset, used to identify assets in an associative array
The original name used for this asset in the resource (e.g. file) in which
it was found. This may not be the same as name
, which may
have changed due to of a name conflict.
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!
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!
The TextureProjector object that defines the projection properties as well as the texture.
The TextureProjector object that defines the projection properties as well as the texture.
Add an event listener
Copies the state from a ShadingMethodBase object into the current object.
Dispatch an event
Cleans up any resources used by the current object.
check if an object has an event listener assigned to it
Marks the shader program as invalid, so it will be recompiled before the next render.
Remove an event listener
Generated using TypeDoc
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, ...