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
| Name | Type | Access | Description |
|---|---|---|---|
transparency | double | Read | Gets or sets the transparency factor. |
normalTexture | TextureBase | Read | Gets or sets the texture of normal mapping. |
specularTexture | TextureBase | Read | Gets or sets the texture for specular color. |
albedoTexture | TextureBase | Read | Gets or sets the texture for albedo. |
albedo | Vector3 | Read | Gets or sets the base color of the material. |
occlusionTexture | TextureBase | Read | Gets or sets the texture for ambient occlusion. |
occlusionFactor | double | Read | Gets or sets the factor of ambient occlusion. |
metallicFactor | double | Read | Gets 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. |
roughnessFactor | double | Read | Gets 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. |
metallicRoughness | TextureBase | Read | Gets or sets the texture for metallic(in R channel) and roughness(in G channel). |
emissiveTexture | TextureBase | Read | Gets or sets the texture for emissive. |
emissiveColor | Vector3 | Read | Gets or sets the emissive color. |
MAP_SPECULAR | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping. |
MAP_DIFFUSE | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping. |
MAP_EMISSIVE | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping. |
MAP_AMBIENT | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping. |
MAP_NORMAL | String | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
PbrMaterial() | Construct a default PBR material instance. |
getTransparency() → double | Gets or sets the transparency factor. |
setTransparency(transparency: double) | Sets the transparency value. |
getNormalTexture() → TextureBase | Gets or sets the texture of normal mapping. |
setNormalTexture(normalTexture: TextureBase) | Sets the normal texture value. |
getSpecularTexture() → TextureBase | Gets or sets the texture for specular color. |
setSpecularTexture(specularTexture: TextureBase) | Sets the specular texture value. |
getAlbedoTexture() → TextureBase | Gets or sets the texture for albedo. |
setAlbedoTexture(albedoTexture: TextureBase) | Sets the albedo texture value. |
getAlbedo() → Vector3 | Gets or sets the base color of the material. |
setAlbedo(albedo: Vector3) | Sets the albedo value. |
getOcclusionTexture() → TextureBase | Gets or sets the texture for ambient occlusion. |
setOcclusionTexture(occlusionTexture: TextureBase) | Sets the occlusion texture value. |
getOcclusionFactor() → double | Gets or sets the factor of ambient occlusion. |
setOcclusionFactor(occlusionFactor: double) | Sets the occlusion factor value. |
getMetallicFactor() → double | Gets 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() → double | Gets 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() → TextureBase | Gets or sets the texture for metallic(in R channel) and roughness(in G channel). |
setMetallicRoughness(metallicRoughness: TextureBase) | Sets the metallic roughness value. |
getEmissiveTexture() → TextureBase | Gets or sets the texture for emissive. |
setEmissiveTexture(emissiveTexture: TextureBase) | Sets the emissive texture value. |
getEmissiveColor() → Vector3 | Gets or sets the emissive color. |
setEmissiveColor(emissiveColor: Vector3) | Sets the emissive color value. |
fromMaterial(material: Material) → PbrMaterial | Allow convert other material to PbrMaterial. |
getTexture(slotName: String) → TextureBase | Gets 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() → String | Formats 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() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this PbrMaterial instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this PbrMaterial instance. |
setProperty(name: String, value: Object) | Sets the property value. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this PbrMaterial instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this PbrMaterial instance. |