public interface Mtl
| Modifier and Type | Method and Description |
|---|---|
Float |
getAniso()
Returns the anisotropy of the material,
or
null if it was not specified |
Float |
getAnisor()
Returns the anisotropy rotation of the material,
or
null if it was not specified |
String |
getBump()
Returns the name of the bump map of the material,
or
null if it has no map. |
TextureOptions |
getBumpOptions()
Returns the bump map options of the material,
or
null if it has no options. |
Float |
getD()
Returns the opacity of the material,
or
null if it was not specified |
String |
getDecal()
Returns the name of the decal map of the material,
or
null if it has no map. |
TextureOptions |
getDecalOptions()
Returns the decal map options of the material,
or
null if it has no options. |
String |
getDisp()
Returns the name of the displacement map of the material,
or
null if it has no map. |
TextureOptions |
getDispOptions()
Returns the displacement map options of the material,
or
null if it has no options. |
Integer |
getIllum()
Returns the illumination mode (
-illum) of the material,
or null if it was was not specified |
FloatTuple |
getKa()
Returns the ambient component of the material,
or
null if it was not specified |
FloatTuple |
getKd()
Returns the diffuse component of the material,
or
null if it was not specified |
FloatTuple |
getKe()
Returns the emissive component of the material,
or
null if it was not specified |
FloatTuple |
getKs()
Returns the specular component of the material,
or
null if it was not specified |
String |
getMapD()
Returns the name of the opacity map of the material,
or
null if it has no map. |
TextureOptions |
getMapDOptions()
Returns the opacity map options of the material,
or
null if it has no options. |
String |
getMapKa()
Returns the name of the ambient map of the material,
or
null if it has no such map. |
TextureOptions |
getMapKaOptions()
Returns the ambient map options of the material,
or
null if it has no options. |
String |
getMapKd()
Returns the name of the diffuse map of the material,
or
null if it has no such map. |
TextureOptions |
getMapKdOptions()
Returns the diffuse map options of the material,
or
null if it has no options. |
String |
getMapKe()
Returns the name of the emissive map of the material,
or
null if it has no such map. |
TextureOptions |
getMapKeOptions()
Returns the emissive map options of the material,
or
null if it has no options. |
String |
getMapKs()
Returns the name of the specular reflectivity map of the material,
or
null if it has no such map. |
TextureOptions |
getMapKsOptions()
Returns the specular reflectivity map options of the material,
or
null if it has no options. |
String |
getMapNs()
Returns the name of the shininess map of the material,
or
null if it has no map. |
TextureOptions |
getMapNsOptions()
Returns the shininess map options of the material,
or
null if it has no options. |
String |
getMapPm()
Returns the name of the metallic map of the material,
or
null if it has no such map. |
TextureOptions |
getMapPmOptions()
Returns the metallic map options of the material,
or
null if it has no options. |
String |
getMapPr()
Returns the name of the roughness map of the material,
or
null if it has no such map. |
TextureOptions |
getMapPrOptions()
Returns the roughness map options of the material,
or
null if it has no options. |
String |
getMapPs()
Returns the name of the sheen map of the material,
or
null if it has no such map. |
TextureOptions |
getMapPsOptions()
Returns the sheen map options of the material,
or
null if it has no options. |
String |
getName()
Return the name of the material
|
Float |
getNi()
Returns the optical density, also known as index of refraction, of
the material, or
null if it was not specified |
String |
getNorm()
Returns the name of the normal map of the material,
or
null if it has no such map. |
TextureOptions |
getNormOptions()
Returns the normal map options of the material,
or
null if it has no options. |
Float |
getNs()
Returns the shininess of the material.
|
Float |
getPc()
Returns the clearcoat thickness of the material,
or
null if it was not specified |
Float |
getPcr()
Returns the clearcoat roughness of the material,
or
null if it was not specified |
Float |
getPm()
Returns the metallic component of the material,
or
null if it was not specified |
Float |
getPr()
Returns the roughness component of the material,
or
null if it was not specified |
Float |
getPs()
Returns the sheen component of the material,
or
null if it was not specified |
List<TextureOptions> |
getReflOptions()
Returns the list of
TextureOptions objects for the reflection
maps of the material. |
Float |
getSharpness()
Returns the sharpness of reflections from the reflection map,
or
null if it was was not specified |
FloatTuple |
getTf()
Returns the transmission filter of the material,
or
null if it was was not specified |
Boolean |
isHalo()
Returns whether dissolve (opacity) is dependent on the surface
orientation relative to the viewer
|
void |
setAniso(Float aniso)
Set the anisotropy of the material
|
void |
setAnisor(Float anisor)
Set the anisotropy rotation of the material
|
void |
setBump(String bump)
Set the bump map name of this material
|
void |
setBumpOptions(TextureOptions options)
Set the bump map
TextureOptions |
void |
setD(Float d)
Set the opacity of the material
|
void |
setDecal(String decal)
Set the decal map name of this material
|
void |
setDecalOptions(TextureOptions options)
Set the decal map
TextureOptions |
void |
setDisp(String disp)
Set the displacement map name of this material
|
void |
setDispOptions(TextureOptions options)
Set the displacement map
TextureOptions |
void |
setHalo(Boolean halo)
Set the halo flag
|
void |
setIllum(Integer illum)
Set the illumination mode of the material
|
void |
setKa(Float r,
Float g,
Float b)
Set the ambient part of this material
|
void |
setKd(Float r,
Float g,
Float b)
Set the diffuse part of this material
|
void |
setKe(Float r,
Float g,
Float b)
Set the emissive part of this material
|
void |
setKs(Float r,
Float g,
Float b)
Set the specular part of this material
|
void |
setMapD(String mapD)
Set the opacity map name of this material
|
void |
setMapDOptions(TextureOptions options)
Set the opacity map
TextureOptions |
void |
setMapKa(String mapKa)
Set the ambient map name of this material
|
void |
setMapKaOptions(TextureOptions options)
Set the ambient map
TextureOptions |
void |
setMapKd(String mapKd)
Set the diffuse map name of this material
|
void |
setMapKdOptions(TextureOptions options)
Set the diffuse map
TextureOptions |
void |
setMapKe(String mapKe)
Set the emissive map name of this material
|
void |
setMapKeOptions(TextureOptions options)
Set the emissive map
TextureOptions |
void |
setMapKs(String mapKs)
Set the specular reflectivity map name of this material
|
void |
setMapKsOptions(TextureOptions options)
Set the specular reflectivity map
TextureOptions |
void |
setMapNs(String mapNs)
Set the shininess map name of this material
|
void |
setMapNsOptions(TextureOptions options)
Set the shininess map
TextureOptions |
void |
setMapPm(String mapPm)
Set the metallic map name of this material
|
void |
setMapPmOptions(TextureOptions options)
Set the metallic map
TextureOptions |
void |
setMapPr(String mapPr)
Set the roughness map name of this material
|
void |
setMapPrOptions(TextureOptions options)
Set the roughness map
TextureOptions |
void |
setMapPs(String mapPs)
Set the sheen map name of this material
|
void |
setMapPsOptions(TextureOptions options)
Set the sheen map
TextureOptions |
void |
setNi(Float ni)
Set the optical density of the material
|
void |
setNorm(String norm)
Set the normal map name of this material
|
void |
setNormOptions(TextureOptions options)
Set the normal map
TextureOptions |
void |
setNs(Float ns)
Set the shininess of this material,
or
null if it was not specified |
void |
setPc(Float pc)
Set the clearcoat thickness of the material
|
void |
setPcr(Float pcr)
Set the clearcoat roughness of the material
|
void |
setPm(Float pm)
Set the metallic part of this material
|
void |
setPr(Float pr)
Set the roughness part of this material
|
void |
setPs(Float ps)
Set the sheen part of this material
|
void |
setSharpness(Float sharpness)
Set the sharpness of reflections
|
void |
setTf(Float r,
Float g,
Float b)
Set the transmission filter of this material
|
String getName()
Integer getIllum()
-illum) of the material,
or null if it was was not specifiedvoid setIllum(Integer illum)
illum - The illumination mode of the material.Float getNi()
null if it was not specifiedvoid setNi(Float ni)
ni - The optical densityFloatTuple getTf()
null if it was was not specifiedvoid setTf(Float r, Float g, Float b)
r - The red componentg - The green componentb - The blue componentFloat getSharpness()
null if it was was not specifiedvoid setSharpness(Float sharpness)
sharpness - The sharpnessFloatTuple getKa()
null if it was not specifiedvoid setKa(Float r, Float g, Float b)
r - The red componentg - The green componentb - The blue componentString getMapKa()
null if it has no such map.void setMapKa(String mapKa)
mapKa - The ambient map name of this materialTextureOptions getMapKaOptions()
null if it has no options.TextureOptionsvoid setMapKaOptions(TextureOptions options)
TextureOptionsoptions - The ambient map TextureOptionsFloatTuple getKd()
null if it was not specifiedvoid setKd(Float r, Float g, Float b)
r - The red componentg - The green componentb - The blue componentString getMapKd()
null if it has no such map.void setMapKd(String mapKd)
mapKd - The diffuse map name of this materialTextureOptions getMapKdOptions()
null if it has no options.TextureOptionsvoid setMapKdOptions(TextureOptions options)
TextureOptionsoptions - The diffuse map TextureOptionsFloatTuple getKs()
null if it was not specifiedvoid setKs(Float r, Float g, Float b)
r - The red componentg - The green componentb - The blue componentString getMapKs()
null if it has no such map.void setMapKs(String mapKs)
mapKs - The specular reflectivity map name of this materialTextureOptions getMapKsOptions()
null if it has no options.TextureOptionsvoid setMapKsOptions(TextureOptions options)
TextureOptionsoptions - The specular reflectivity map TextureOptionsFloat getNs()
void setNs(Float ns)
null if it was not specifiedns - The shininess of this materialString getMapNs()
null if it has no map.void setMapNs(String mapNs)
mapNs - The shininess map name of this materialTextureOptions getMapNsOptions()
null if it has no options.TextureOptionsvoid setMapNsOptions(TextureOptions options)
TextureOptionsoptions - The shininess map TextureOptionsFloat getD()
null if it was not specifiedvoid setD(Float d)
d - The opacity of the materialBoolean isHalo()
void setHalo(Boolean halo)
halo - The halo flagString getMapD()
null if it has no map.void setMapD(String mapD)
mapD - The opacity map name of this materialTextureOptions getMapDOptions()
null if it has no options.TextureOptionsvoid setMapDOptions(TextureOptions options)
TextureOptionsoptions - The opacity map TextureOptionsString getBump()
null if it has no map.void setBump(String bump)
bump - The bump map name of this materialTextureOptions getBumpOptions()
null if it has no options.TextureOptionsvoid setBumpOptions(TextureOptions options)
TextureOptionsoptions - The bump map TextureOptionsString getDisp()
null if it has no map.void setDisp(String disp)
disp - The displacement map name of this materialTextureOptions getDispOptions()
null if it has no options.TextureOptionsvoid setDispOptions(TextureOptions options)
TextureOptionsoptions - The displacement map TextureOptionsString getDecal()
null if it has no map.void setDecal(String decal)
decal - The decal map name of this materialTextureOptions getDecalOptions()
null if it has no options.TextureOptionsvoid setDecalOptions(TextureOptions options)
TextureOptionsoptions - The decal map TextureOptionsList<TextureOptions> getReflOptions()
TextureOptions objects for the reflection
maps of the material. This will never be null, but may
be an empty list if no reflection maps have been defined.TextureOptionsFloat getPr()
null if it was not specifiedvoid setPr(Float pr)
pr - The roughnessString getMapPr()
null if it has no such map.void setMapPr(String mapPr)
mapPr - The roughness map name of this materialTextureOptions getMapPrOptions()
null if it has no options.TextureOptionsvoid setMapPrOptions(TextureOptions options)
TextureOptionsoptions - The roughness map TextureOptionsFloat getPm()
null if it was not specifiedvoid setPm(Float pm)
pm - The metallic partString getMapPm()
null if it has no such map.void setMapPm(String mapPm)
mapPm - The metallic map name of this materialTextureOptions getMapPmOptions()
null if it has no options.TextureOptionsvoid setMapPmOptions(TextureOptions options)
TextureOptionsoptions - The metallic map TextureOptionsFloat getPs()
null if it was not specifiedvoid setPs(Float ps)
ps - The sheen partString getMapPs()
null if it has no such map.void setMapPs(String mapPs)
mapPs - The sheen map name of this materialTextureOptions getMapPsOptions()
null if it has no options.TextureOptionsvoid setMapPsOptions(TextureOptions options)
TextureOptionsoptions - The sheen map TextureOptionsFloat getPc()
null if it was not specifiedvoid setPc(Float pc)
pc - The clearcoat thicknessFloat getPcr()
null if it was not specifiedvoid setPcr(Float pcr)
pcr - The clearcoat roughnessFloatTuple getKe()
null if it was not specifiedvoid setKe(Float r, Float g, Float b)
r - The red componentg - The green componentb - The blue componentString getMapKe()
null if it has no such map.void setMapKe(String mapKe)
mapKe - The emissive map name of this materialTextureOptions getMapKeOptions()
null if it has no options.TextureOptionsvoid setMapKeOptions(TextureOptions options)
TextureOptionsoptions - The emissive map TextureOptionsFloat getAniso()
null if it was not specifiedvoid setAniso(Float aniso)
aniso - The anisotropyFloat getAnisor()
null if it was not specifiedvoid setAnisor(Float anisor)
anisor - The anisotropy rotationString getNorm()
null if it has no such map.void setNorm(String norm)
norm - The normal map name of this materialTextureOptions getNormOptions()
null if it has no options.TextureOptionsvoid setNormOptions(TextureOptions options)
TextureOptionsoptions - The normal map TextureOptionsCopyright © 2023. All rights reserved.