class SpriteSheetMaterial
package away3d.materials
extends TextureMaterial › SinglePassMaterialBase › MaterialBase › NamedAssetBase
Available on all platforms
SpriteSheetMaterial is a material required for a SpriteSheetAnimator if you have an animation spreaded over more maps and/or have animated normalmaps, specularmaps
Constructor
new(diffuses:Vector<Texture2DBase>, ?normals:Vector<Texture2DBase>, ?speculars:Vector<Texture2DBase>, smooth:Bool = true, repeat:Bool = false, mipmap:Bool = true)
Creates a new SpriteSheetMaterial required for a SpriteSheetAnimator
(the sprite sheet maps of each textures must have power of 2 sizes)
Parameters:
diffuses | Vector.<Texture2DBase> : One or more Texture2DBase representing the diffuse information of the spritesheets. Must hold at least 1 diffuse. |
|---|---|
normals | Vector.<Texture2DBase> : One or more Texture2DBase representing the normal information of the spritesheets. Default is null. If not null, must hold same amount of textures as diffuses. |
speculars | Vector.<Texture2DBase> : One or more Texture2DBase representing the specular information of the spritesheets. Default is null. If not null, must hold same amount of textures as diffuses. |
smooth | Boolean : Material smoothing. Default is true. |
repeat | Boolean : Material repeat. Default is false. |
mipmap | Boolean : Material mipmap. Set it to false if the animation graphics have thin lines or text information in them. Default is true. |