public class PhongMaterial extends LambertMaterial
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
Constructor and Description |
---|
PhongMaterial()
Initializes a new instance of the
PhongMaterial class. |
PhongMaterial(String name)
Initializes a new instance of the
PhongMaterial class. |
Modifier and Type | Method and Description |
---|---|
Vector3 |
getReflectionColor()
Gets the reflection color.
|
double |
getReflectionFactor()
Gets the attenuation of the reflection color.
|
double |
getShininess()
Gets the shininess, this controls the specular highlight's size.
|
Vector3 |
getSpecularColor()
Gets the specular color.
|
double |
getSpecularFactor()
Gets the specular factor.
|
void |
setReflectionColor(Vector3 value)
Sets the reflection color.
|
void |
setReflectionFactor(double value)
Sets the attenuation of the reflection color.
|
void |
setShininess(double value)
Sets the shininess, this controls the specular highlight's size.
|
void |
setSpecularColor(Vector3 value)
Sets the specular color.
|
void |
setSpecularFactor(double value)
Sets the specular factor.
|
getAmbientColor, getDiffuseColor, getEmissiveColor, getTransparency, getTransparentColor, setAmbientColor, setDiffuseColor, setEmissiveColor, setTransparency, setTransparentColor
getTexture, setTexture, toString
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public PhongMaterial()
PhongMaterial
class.public PhongMaterial(String name)
PhongMaterial
class.name
- Namepublic Vector3 getSpecularColor()
public void setSpecularColor(Vector3 value)
value
- New valuepublic double getSpecularFactor()
public void setSpecularFactor(double value)
value
- New valuepublic double getShininess()
public void setShininess(double value)
value
- New valuepublic Vector3 getReflectionColor()
public void setReflectionColor(Vector3 value)
value
- New valuepublic double getReflectionFactor()
public void setReflectionFactor(double value)
value
- New value