Package com.aspose.threed
Class PbrMaterial
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Material
-
- com.aspose.threed.PbrMaterial
-
- All Implemented Interfaces:
INamedObject
,java.lang.Iterable<TextureSlot>
public class PbrMaterial extends Material
Material for physically based rendering based on albedo color/metallic/roughness
-
-
Field Summary
-
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 PbrMaterial()
Construct a default PBR material instancePbrMaterial(java.awt.Color albedo)
Construct a default PBR material with specified albedo color value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3
getAlbedo()
Gets the base color of the materialTextureBase
getAlbedoTexture()
Gets the texture for albedoVector3
getEmissiveColor()
Gets the emissive colorTextureBase
getEmissiveTexture()
Gets the texture for emissivedouble
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 mappingdouble
getOcclusionFactor()
Gets the factor of ambient occlusionTextureBase
getOcclusionTexture()
Gets the texture for ambient occlusiondouble
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 smoothTextureBase
getSpecularTexture()
Gets the texture for specular colordouble
getTransparency()
Gets the transparency factor.void
setAlbedo(Vector3 value)
Sets the base color of the materialvoid
setAlbedoTexture(TextureBase value)
Sets the texture for albedovoid
setEmissiveColor(Vector3 value)
Sets the emissive colorvoid
setEmissiveTexture(TextureBase value)
Sets the texture for emissivevoid
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 mappingvoid
setOcclusionFactor(double value)
Sets the factor of ambient occlusionvoid
setOcclusionTexture(TextureBase value)
Sets the texture for ambient occlusionvoid
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 smoothvoid
setSpecularTexture(TextureBase value)
Sets the texture for specular colorvoid
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
-
-
-
-
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
-
getSpecularTexture
public TextureBase getSpecularTexture()
Gets the texture for specular color
-
setSpecularTexture
public void setSpecularTexture(TextureBase value)
Sets the texture for specular color- Parameters:
value
- New value
-
getAlbedoTexture
public TextureBase getAlbedoTexture()
Gets the texture for albedo
-
setAlbedoTexture
public void setAlbedoTexture(TextureBase value)
Sets the texture for albedo- Parameters:
value
- New value
-
getAlbedo
public Vector3 getAlbedo()
Gets the base color of the material
-
setAlbedo
public void setAlbedo(Vector3 value)
Sets the base color of the material- Parameters:
value
- New value
-
getOcclusionTexture
public TextureBase getOcclusionTexture()
Gets the texture for ambient occlusion
-
setOcclusionTexture
public void setOcclusionTexture(TextureBase value)
Sets the texture for ambient occlusion- Parameters:
value
- New value
-
getOcclusionFactor
public double getOcclusionFactor()
Gets the factor of ambient occlusion
-
setOcclusionFactor
public void setOcclusionFactor(double value)
Sets the factor of ambient occlusion- Parameters:
value
- New value
-
getMetallicFactor
public 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.
-
setMetallicFactor
public 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.- Parameters:
value
- New value
-
getRoughnessFactor
public 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
-
setRoughnessFactor
public 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- Parameters:
value
- New value
-
getMetallicRoughness
public TextureBase getMetallicRoughness()
Gets the texture for metallic(in R channel) and roughness(in G channel)
-
setMetallicRoughness
public void setMetallicRoughness(TextureBase value)
Sets the texture for metallic(in R channel) and roughness(in G channel)- 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
-
setEmissiveColor
public void setEmissiveColor(Vector3 value)
Sets the emissive color- Parameters:
value
- New value
-
-