View source
class TextureMultiPassMaterial
package away3d.materials
extends MultiPassMaterialBase › MaterialBase › NamedAssetBase
Available on all platforms
TextureMultiPassMaterial is a multi-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 TextureMultiPassMaterial.
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 |