View source
class TextureMaterial
package away3d.materials
extends SinglePassMaterialBase › MaterialBase › NamedAssetBase
extended by SpriteSheetMaterial
Available on all platforms
TextureMaterial is a single-pass material that uses a texture to define the surface's diffuse reflection colour (albedo).
Constructor
new(?texture:Texture2DBase, smooth:Bool = true, repeat:Bool = false, mipmap:Bool = true, anisotropy:Anisotropy = ANISOTROPIC2X)
Creates a new TextureMaterial.
Parameters:
texture | The texture used for the material's albedo color. |
|---|---|
smooth | Indicates whether the texture should be filtered when sampled. Defaults to true. |
repeat | Indicates whether the texture should be tiled when sampled. Defaults to true. |
mipmap | Indicates whether or not any used textures should use mipmapping. Defaults to true. |
anisotropy | Indicates the number of samples to use if Anisotropic mipmap filtering is applied |