public class PbrSpecularMaterial extends Material
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAP_SPECULAR_GLOSSINESS
The texture map for specular glossiness
|
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
name, properties
Constructor and Description |
---|
PbrSpecularMaterial()
Constructor of the
PbrSpecularMaterial |
Modifier and Type | Method and Description |
---|---|
Vector3 |
getDiffuse()
Gets the diffuse color of the material, default value is (1, 1, 1)
|
TextureBase |
getDiffuseTexture()
Gets the texture for diffuse
|
Vector3 |
getEmissiveColor()
Gets the emissive color, default value is (0, 0, 0)
|
TextureBase |
getEmissiveTexture()
Gets the texture for emissive
|
double |
getGlossinessFactor()
Gets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1]
|
TextureBase |
getNormalTexture()
Gets the texture of normal mapping
|
Vector3 |
getSpecular()
Gets the specular color of the material, default value is (1, 1, 1).
|
TextureBase |
getSpecularGlossinessTexture()
Gets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
|
double |
getTransparency()
Gets the transparency factor.
|
void |
setDiffuse(Vector3 value)
Sets the diffuse color of the material, default value is (1, 1, 1)
|
void |
setDiffuseTexture(TextureBase value)
Sets the texture for diffuse
|
void |
setEmissiveColor(Vector3 value)
Sets the emissive color, default value is (0, 0, 0)
|
void |
setEmissiveTexture(TextureBase value)
Sets the texture for emissive
|
void |
setGlossinessFactor(double value)
Sets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1]
|
void |
setNormalTexture(TextureBase value)
Sets the texture of normal mapping
|
void |
setSpecular(Vector3 value)
Sets the specular color of the material, default value is (1, 1, 1).
|
void |
setSpecularGlossinessTexture(TextureBase value)
Sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
|
void |
setTransparency(double value)
Sets the transparency factor.
|
getTexture, iterator, setTexture, toString
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public static final java.lang.String MAP_SPECULAR_GLOSSINESS
public PbrSpecularMaterial()
PbrSpecularMaterial
public double getTransparency()
public void setTransparency(double value)
value
- New valuepublic TextureBase getNormalTexture()
public void setNormalTexture(TextureBase value)
value
- New valuepublic TextureBase getSpecularGlossinessTexture()
public void setSpecularGlossinessTexture(TextureBase value)
value
- New valuepublic double getGlossinessFactor()
public void setGlossinessFactor(double value)
value
- New valuepublic Vector3 getSpecular()
public void setSpecular(Vector3 value)
value
- New valuepublic TextureBase getDiffuseTexture()
public void setDiffuseTexture(TextureBase value)
value
- New valuepublic Vector3 getDiffuse()
public void setDiffuse(Vector3 value)
value
- New valuepublic TextureBase getEmissiveTexture()
public void setEmissiveTexture(TextureBase value)
value
- New valuepublic Vector3 getEmissiveColor()
public void setEmissiveColor(Vector3 value)
value
- New value