public class TextureSlot
extends java.lang.Object
Material, can be enumerated through material instance.
Example:
var mat = new LambertMaterial();
var tex = new Texture();
tex.setFileName("diffuse.png");
mat.setTexture(Material.MAP_DIFFUSE, tex);
for(var slot : mat)
{
System.out.printf("Texture slot %s = %s", slot.getSlotName(), slot.getTexture());
}
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getSlotName()
The slot name that indicates where this texture will be bounded to.
|
TextureBase |
getTexture()
The texture that will be bounded to the material.
|
public java.lang.String getSlotName()
public TextureBase getTexture()