raytracer.objects
Class Material
java.lang.Object
|
+--raytracer.objects.NamedObject
|
+--raytracer.objects.Material
- public class Material
- extends NamedObject
Method Summary |
Color |
getDiffuseColor()
|
Color |
getReflection()
|
float |
getRefractionIndex()
|
Color |
getSpecularColor()
|
float |
getSpecularExponent()
|
Color |
getTransmission()
|
void |
setDiffuse(float r,
float g,
float b)
|
void |
setReflection(float r,
float g,
float b)
|
void |
setSpecular(float r,
float g,
float b,
float exp)
|
void |
setTransmission(float r,
float g,
float b,
float idx)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Material
public Material()
setDiffuse
public void setDiffuse(float r,
float g,
float b)
setSpecular
public void setSpecular(float r,
float g,
float b,
float exp)
setReflection
public void setReflection(float r,
float g,
float b)
setTransmission
public void setTransmission(float r,
float g,
float b,
float idx)
getDiffuseColor
public Color getDiffuseColor()
getReflection
public Color getReflection()
getRefractionIndex
public float getRefractionIndex()
getSpecularColor
public Color getSpecularColor()
getSpecularExponent
public float getSpecularExponent()
getTransmission
public Color getTransmission()