org.osm2world.core.target.common.material
Class Material
Object
Material
- Direct Known Subclasses:
- ConfMaterial, ImmutableMaterial
public abstract class Material
- extends Object
describes the material/surface properties of an object for lighting
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lighting
protected Material.Lighting lighting
color
protected Color color
ambientFactor
protected float ambientFactor
diffuseFactor
protected float diffuseFactor
transparency
protected Material.Transparency transparency
textureDataList
protected List<TextureData> textureDataList
Material
public Material(Material.Lighting lighting,
Color color,
float ambientFactor,
float diffuseFactor,
Material.Transparency transparency,
List<TextureData> textureDataList)
Material
public Material(Material.Lighting lighting,
Color color,
Material.Transparency transparency,
List<TextureData> textureDataList)
Material
public Material(Material.Lighting lighting,
Color color)
getLighting
public Material.Lighting getLighting()
getColor
public Color getColor()
getAmbientFactor
public float getAmbientFactor()
getDiffuseFactor
public float getDiffuseFactor()
ambientColor
public Color ambientColor()
diffuseColor
public Color diffuseColor()
brighter
public Material brighter()
darker
public Material darker()
multiplyColor
public static final Color multiplyColor(Color c,
float factor)
makeSmooth
public Material makeSmooth()
getTransparency
public Material.Transparency getTransparency()
getTextureDataList
public List<TextureData> getTextureDataList()
getNumTextureLayers
public int getNumTextureLayers()
toString
public String toString()
- Overrides:
toString
in class Object