public class PbrMaterial extends Material
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
name, properties
Constructor and Description |
---|
PbrMaterial()
Construct a default PBR material instance
|
PbrMaterial(java.awt.Color albedo)
Construct a default PBR material with specified albedo color value.
|
Modifier and Type | Method and Description |
---|---|
Vector3 |
getAlbedo()
Gets the base color of the material
|
TextureBase |
getAlbedoTexture()
Gets the texture for albedo
|
Vector3 |
getEmissiveColor()
Gets the emissive color
|
TextureBase |
getEmissiveTexture()
Gets the texture for emissive
|
double |
getMetallicFactor()
Gets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
|
TextureBase |
getMetallicRoughness()
Gets the texture for metallic(in R channel) and roughness(in G channel)
|
TextureBase |
getNormalTexture()
Gets the texture of normal mapping
|
double |
getOcclusionFactor()
Gets the factor of ambient occlusion
|
TextureBase |
getOcclusionTexture()
Gets the texture for ambient occlusion
|
double |
getRoughnessFactor()
Gets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth
|
TextureBase |
getSpecularTexture()
Gets the texture for specular color
|
double |
getTransparency()
Gets the transparency factor.
|
void |
setAlbedo(Vector3 value)
Sets the base color of the material
|
void |
setAlbedoTexture(TextureBase value)
Sets the texture for albedo
|
void |
setEmissiveColor(Vector3 value)
Sets the emissive color
|
void |
setEmissiveTexture(TextureBase value)
Sets the texture for emissive
|
void |
setMetallicFactor(double value)
Sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
|
void |
setMetallicRoughness(TextureBase value)
Sets the texture for metallic(in R channel) and roughness(in G channel)
|
void |
setNormalTexture(TextureBase value)
Sets the texture of normal mapping
|
void |
setOcclusionFactor(double value)
Sets the factor of ambient occlusion
|
void |
setOcclusionTexture(TextureBase value)
Sets the texture for ambient occlusion
|
void |
setRoughnessFactor(double value)
Sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth
|
void |
setSpecularTexture(TextureBase value)
Sets the texture for specular color
|
void |
setTransparency(double value)
Sets the transparency factor.
|
getTexture, iterator, setTexture, toString
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public PbrMaterial()
public PbrMaterial(java.awt.Color albedo)
albedo
- The default albedo color valuepublic double getTransparency()
public void setTransparency(double value)
value
- New valuepublic TextureBase getNormalTexture()
public void setNormalTexture(TextureBase value)
value
- New valuepublic TextureBase getSpecularTexture()
public void setSpecularTexture(TextureBase value)
value
- New valuepublic TextureBase getAlbedoTexture()
public void setAlbedoTexture(TextureBase value)
value
- New valuepublic Vector3 getAlbedo()
public void setAlbedo(Vector3 value)
value
- New valuepublic TextureBase getOcclusionTexture()
public void setOcclusionTexture(TextureBase value)
value
- New valuepublic double getOcclusionFactor()
public void setOcclusionFactor(double value)
value
- New valuepublic double getMetallicFactor()
public void setMetallicFactor(double value)
value
- New valuepublic double getRoughnessFactor()
public void setRoughnessFactor(double value)
value
- New valuepublic TextureBase getMetallicRoughness()
public void setMetallicRoughness(TextureBase value)
value
- New valuepublic TextureBase getEmissiveTexture()
public void setEmissiveTexture(TextureBase value)
value
- New valuepublic Vector3 getEmissiveColor()
public void setEmissiveColor(Vector3 value)
value
- New value