public class Material extends CommonDataStore
| Modifier and Type | Field and Description |
|---|---|
static Texture |
DEFAULT_NORMAL |
static org.slf4j.Logger |
LOGGER |
static Texture |
MISSING_TEXTURE |
protected ShaderSuit |
shader |
protected boolean |
wireframe |
| Constructor and Description |
|---|
Material()
Creates a Material with the default PhongShaderSuit
|
Material(ShaderSuit shader)
Creates a Material with a given ShaderSuit
Use the parameter less constructor to get the default ShaderSuit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
asWireframe(boolean wireframe) |
Color |
getColor() |
ShaderSuit |
getShader() |
Texture |
getTexture(String name)
Retrieve a Texture
|
boolean |
isWireframe() |
void |
setColor(Color color) |
void |
setShader(ShaderSuit shader) |
addColor, addFloat, addInteger, addMatrix, addTexture, addVector, getColor, getFloat, getInteger, getMatrix, getVector, hasColor, hasFloat, hasInteger, hasMatrix, hasTexture, hasVectorpublic static final org.slf4j.Logger LOGGER
public static Texture DEFAULT_NORMAL
public static Texture MISSING_TEXTURE
protected boolean wireframe
protected ShaderSuit shader
public Material(ShaderSuit shader)
shader - ShaderSuit to render objects withpublic Material()
public Texture getTexture(String name)
DataStoregetTexture in interface DataStoregetTexture in class CommonDataStorename - keyDataStore.getTexture(String)public void setColor(Color color)
public Color getColor()
public void asWireframe(boolean wireframe)
@Generated(value="lombok") public boolean isWireframe()
@Generated(value="lombok") public ShaderSuit getShader()
@Generated(value="lombok") public void setShader(ShaderSuit shader)
Copyright © 2015. All rights reserved.