org.osm2world.core.target.common.material
public abstract class Material extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Material.AmbientOcclusion |
static class |
Material.Interpolation |
static class |
Material.Shadow |
static class |
Material.Transparency |
Modifier and Type | Field and Description |
---|---|
protected float |
ambientFactor |
protected Material.AmbientOcclusion |
ambientOcclusion |
protected TextureData |
bumpMap |
protected int |
bumpMapInd |
protected Color |
color |
protected float |
diffuseFactor |
protected Material.Interpolation |
interpolation
Interpolation of normals
|
protected Material.Shadow |
shadow |
protected int |
shininess |
protected float |
specularFactor |
protected List<TextureData> |
textureDataList |
protected Material.Transparency |
transparency |
Constructor and Description |
---|
Material(Material.Interpolation interpolation,
Color color) |
Material(Material.Interpolation interpolation,
Color color,
float ambientFactor,
float diffuseFactor,
float specularFactor,
int shininess,
Material.Transparency transparency,
Material.Shadow shadow,
Material.AmbientOcclusion ao,
List<TextureData> textureDataList) |
Material(Material.Interpolation interpolation,
Color color,
Material.Transparency transparency,
List<TextureData> textureDataList) |
Modifier and Type | Method and Description |
---|---|
Color |
ambientColor() |
Material |
brighter() |
Material |
darker() |
Color |
diffuseColor() |
float |
getAmbientFactor() |
Material.AmbientOcclusion |
getAmbientOcclusion() |
TextureData |
getBumpMap() |
int |
getBumpMapInd() |
Color |
getColor() |
float |
getDiffuseFactor() |
Material.Interpolation |
getInterpolation() |
int |
getNumTextureLayers() |
Material.Shadow |
getShadow() |
int |
getShininess() |
float |
getSpecularFactor() |
List<TextureData> |
getTextureDataList() |
Material.Transparency |
getTransparency() |
boolean |
hasBumpMap() |
Material |
makeSmooth() |
static Color |
multiplyColor(Color c,
float factor) |
String |
toString() |
protected void |
updateBumpMap() |
Material |
withAddedLayers(List<TextureData> textureLayers)
returns a material that is the same as this one,
except with additional texture data layers stacked on top
|
protected Material.Interpolation interpolation
protected Color color
protected float ambientFactor
protected float diffuseFactor
protected float specularFactor
protected int shininess
protected Material.Transparency transparency
protected Material.Shadow shadow
protected Material.AmbientOcclusion ambientOcclusion
protected List<TextureData> textureDataList
protected TextureData bumpMap
protected int bumpMapInd
public Material(Material.Interpolation interpolation, Color color, float ambientFactor, float diffuseFactor, float specularFactor, int shininess, Material.Transparency transparency, Material.Shadow shadow, Material.AmbientOcclusion ao, List<TextureData> textureDataList)
public Material(Material.Interpolation interpolation, Color color, Material.Transparency transparency, List<TextureData> textureDataList)
public Material(Material.Interpolation interpolation, Color color)
protected void updateBumpMap()
public Material.Interpolation getInterpolation()
public Color getColor()
public float getAmbientFactor()
public float getDiffuseFactor()
public float getSpecularFactor()
public int getShininess()
public Color ambientColor()
public Color diffuseColor()
public Material brighter()
public Material darker()
public static final Color multiplyColor(Color c, float factor)
public Material makeSmooth()
public Material withAddedLayers(List<TextureData> textureLayers)
public Material.Transparency getTransparency()
public Material.Shadow getShadow()
public Material.AmbientOcclusion getAmbientOcclusion()
public List<TextureData> getTextureDataList()
public int getNumTextureLayers()
public boolean hasBumpMap()
public TextureData getBumpMap()
public int getBumpMapInd()
public String toString()
toString
in class Object