public interface Mtl
| Modifier and Type | Method and Description |
|---|---|
float |
getD()
Returns the opacity of the material
|
FloatTuple |
getKa()
Returns the ambient component of the material
|
FloatTuple |
getKd()
Returns the diffuse component of the material
|
FloatTuple |
getKs()
Returns the specular component of the material
|
String |
getMapKd()
Returns the name of the diffuse map of the material,
or null if it has not map.
|
String |
getName()
Return the name of the material
|
float |
getNs()
Returns the shininess of the material.
|
void |
setD(float d)
Set the opacity of the material
|
void |
setKa(float ka0,
float ka1,
float ka2)
Set the ambient part of this material
|
void |
setKd(float kd0,
float kd1,
float kd2)
Set the diffuse part of this material
|
void |
setKs(float ks0,
float ks1,
float ks2)
Set the specular part of this material
|
void |
setMapKd(String mapKd)
Set the diffuse map name of this material
|
void |
setNs(float ns)
Set the shininess of this material
|
String getName()
FloatTuple getKa()
void setKa(float ka0,
float ka1,
float ka2)
ka0 - The ambient component 0ka1 - The ambient component 1ka2 - The ambient component 2FloatTuple getKs()
void setKs(float ks0,
float ks1,
float ks2)
ks0 - The specular component 0ks1 - The specular component 1ks2 - The specular component 2FloatTuple getKd()
void setKd(float kd0,
float kd1,
float kd2)
kd0 - The diffuse component 0kd1 - The diffuse component 1kd2 - The diffuse component 2String getMapKd()
void setMapKd(String mapKd)
mapKd - The diffuse map name of this materialfloat getNs()
void setNs(float ns)
ns - The shininess of this materialfloat getD()
void setD(float d)
d - The opacity of the materialCopyright © 2018. All rights reserved.