class TextureProjector
package away3d.entities
extends ObjectContainer3D › Object3D › NamedAssetBase
Available on all platforms
TextureProjector is an object in the scene that can be used to project textures onto geometry. To do so, the object's material must have a ProjectiveTextureMethod method added to it with a TextureProjector object passed in the constructor. 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, ...
See also:
away3d.materials.methods.ProjectiveTextureMethod
Constructor
new(texture:Texture2DBase)
Creates a new TextureProjector object.
Parameters:
texture | The texture to be projected on the geometry. Since any point that is projected out of the range of the projector's cone is clamped to the texture's edges, the edges should be entirely neutral. |
|---|