Package com.aspose.threed
Class PbrSpecularMaterial
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Material
-
- com.aspose.threed.PbrSpecularMaterial
-
- All Implemented Interfaces:
java.lang.Iterable<TextureSlot>
public class PbrSpecularMaterial extends Material
Material for physically based rendering based on diffuse color/specular/glossiness
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAP_SPECULAR_GLOSSINESS
The texture map for specular glossiness-
Fields inherited from class com.aspose.threed.Material
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description PbrSpecularMaterial()
Constructor of thePbrSpecularMaterial
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3
getDiffuse()
Gets the diffuse color of the material, default value is (1, 1, 1)TextureBase
getDiffuseTexture()
Gets the texture for diffuseVector3
getEmissiveColor()
Gets the emissive color, default value is (0, 0, 0)TextureBase
getEmissiveTexture()
Gets the texture for emissivedouble
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 mappingVector3
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 diffusevoid
setEmissiveColor(Vector3 value)
Sets the emissive color, default value is (0, 0, 0)void
setEmissiveTexture(TextureBase value)
Sets the texture for emissivevoid
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 mappingvoid
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.-
Methods inherited from class com.aspose.threed.Material
getTexture, iterator, setTexture, toString
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Field Detail
-
MAP_SPECULAR_GLOSSINESS
public static final java.lang.String MAP_SPECULAR_GLOSSINESS
The texture map for specular glossiness- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PbrSpecularMaterial
public PbrSpecularMaterial()
Constructor of thePbrSpecularMaterial
-
-
Method Detail
-
getTransparency
public double getTransparency()
Gets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.
-
setTransparency
public void setTransparency(double value)
Sets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.- Parameters:
value
- New value
-
getNormalTexture
public TextureBase getNormalTexture()
Gets the texture of normal mapping
-
setNormalTexture
public void setNormalTexture(TextureBase value)
Sets the texture of normal mapping- Parameters:
value
- New value
-
getSpecularGlossinessTexture
public TextureBase getSpecularGlossinessTexture()
Gets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
-
setSpecularGlossinessTexture
public void setSpecularGlossinessTexture(TextureBase value)
Sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.- Parameters:
value
- New value
-
getGlossinessFactor
public 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]
-
setGlossinessFactor
public 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]- Parameters:
value
- New value
-
getSpecular
public Vector3 getSpecular()
Gets the specular color of the material, default value is (1, 1, 1).
-
setSpecular
public void setSpecular(Vector3 value)
Sets the specular color of the material, default value is (1, 1, 1).- Parameters:
value
- New value
-
getDiffuseTexture
public TextureBase getDiffuseTexture()
Gets the texture for diffuse
-
setDiffuseTexture
public void setDiffuseTexture(TextureBase value)
Sets the texture for diffuse- Parameters:
value
- New value
-
getDiffuse
public Vector3 getDiffuse()
Gets the diffuse color of the material, default value is (1, 1, 1)
-
setDiffuse
public void setDiffuse(Vector3 value)
Sets the diffuse color of the material, default value is (1, 1, 1)- Parameters:
value
- New value
-
getEmissiveTexture
public TextureBase getEmissiveTexture()
Gets the texture for emissive
-
setEmissiveTexture
public void setEmissiveTexture(TextureBase value)
Sets the texture for emissive- Parameters:
value
- New value
-
getEmissiveColor
public Vector3 getEmissiveColor()
Gets the emissive color, default value is (0, 0, 0)
-
setEmissiveColor
public void setEmissiveColor(Vector3 value)
Sets the emissive color, default value is (0, 0, 0)- Parameters:
value
- New value
-
-