PbrMaterial

Overview

PbrMaterial is a class in Aspose.3D FOSS for Java. Inherits from: Material.

Material for physically based rendering based on albedo color/metallic/roughness.

This class provides 40 methods for working with PbrMaterial objects in Java programs. Available methods include: A3DObject, PbrMaterial, findProperty, fromMaterial, getAlbedo, getAlbedoTexture, getEmissiveColor, getEmissiveTexture, getMetallicFactor, getMetallicRoughness, getName, getNormalTexture, and 26 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, albedo, and 13 more.

Properties

NameTypeAccessDescription
transparencydoubleRead/WriteGets or sets the transparency factor.
normalTextureTextureBaseRead/WriteGets or sets the texture of normal mapping.
specularTextureTextureBaseRead/WriteGets or sets the texture for specular color.
albedoTextureTextureBaseRead/WriteGets or sets the texture for albedo.
albedoVector3Read/WriteGets or sets the base color of the material.
occlusionTextureTextureBaseRead/WriteGets or sets the texture for ambient occlusion.
occlusionFactordoubleRead/WriteGets or sets the factor of ambient occlusion.
metallicFactordoubleRead/WriteGets or 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.
roughnessFactordoubleRead/WriteGets or 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.
metallicRoughnessTextureBaseRead/WriteGets or sets the texture for metallic(in R channel) and roughness(in G channel).
emissiveTextureTextureBaseRead/WriteGets or sets the texture for emissive.
emissiveColorVector3Read/WriteGets or sets the emissive color.
MAP_SPECULARStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping.
MAP_DIFFUSEStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping.
MAP_EMISSIVEStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping.
MAP_AMBIENTStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping.
MAP_NORMALStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping.
nameStringRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
PbrMaterial()Construct a default PBR material instance.
getTransparency() → doubleGets or sets the transparency factor.
setTransparency(transparency: double)Sets the transparency value.
getNormalTexture() → TextureBaseGets or sets the texture of normal mapping.
setNormalTexture(normalTexture: TextureBase)Sets the normal texture value.
getSpecularTexture() → TextureBaseGets or sets the texture for specular color.
setSpecularTexture(specularTexture: TextureBase)Sets the specular texture value.
getAlbedoTexture() → TextureBaseGets or sets the texture for albedo.
setAlbedoTexture(albedoTexture: TextureBase)Sets the albedo texture value.
getAlbedo() → Vector3Gets or sets the base color of the material.
setAlbedo(albedo: Vector3)Sets the albedo value.
getOcclusionTexture() → TextureBaseGets or sets the texture for ambient occlusion.
setOcclusionTexture(occlusionTexture: TextureBase)Sets the occlusion texture value.
getOcclusionFactor() → doubleGets or sets the factor of ambient occlusion.
setOcclusionFactor(occlusionFactor: double)Sets the occlusion factor value.
getMetallicFactor() → doubleGets or 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.
setMetallicFactor(metallicFactor: double)Sets the metallic factor value.
getRoughnessFactor() → doubleGets or 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.
setRoughnessFactor(roughnessFactor: double)Sets the roughness factor value.
getMetallicRoughness() → TextureBaseGets or sets the texture for metallic(in R channel) and roughness(in G channel).
setMetallicRoughness(metallicRoughness: TextureBase)Sets the metallic roughness value.
getEmissiveTexture() → TextureBaseGets or sets the texture for emissive.
setEmissiveTexture(emissiveTexture: TextureBase)Sets the emissive texture value.
getEmissiveColor() → Vector3Gets or sets the emissive color.
setEmissiveColor(emissiveColor: Vector3)Sets the emissive color value.
fromMaterial(material: Material) → PbrMaterialAllow convert other material to PbrMaterial.
getTexture(slotName: String) → TextureBaseGets the texture from the specified slot, it can be material’s property name or shader’s parameter name.
setTexture(slotName: String, texture: TextureBase)Sets the texture to specified slot.
toString() → StringFormats object to string.
iterator() → Iterator<TextureSlot>Gets the enumerator to enumerate internal texture slots.
A3DObject()Calls A3DObject on this PbrMaterial instance.
A3DObject(name: String)Calls A3DObject(name) on this PbrMaterial instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyCalls findProperty(name) on this PbrMaterial instance.
getProperty(name: String) → ObjectCalls getProperty(name) on this PbrMaterial instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String) → booleanCalls removeProperty(name) on this PbrMaterial instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this PbrMaterial instance.

See Also

 English