PbrMaterial

Overview

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

PbrMaterial.PbrMaterial() creates a new PbrMaterial with default values.

Properties

NameTypeAccessDescription
albedoVector4ReadRepresents the base color with alpha as a Vector4
metallicFactordoubleReadRepresents the metallic property (0-1) of the material
roughnessFactordoubleReadRepresents the surface roughness (0-1) of the material
emissiveColorVector3ReadRepresents the light emitted by the material as a Vector3
transparencydoubleReadRepresents the material’s opacity level (0-1)

Methods

SignatureDescription
PbrMaterial()Creates a new PbrMaterial with name and albedo color
PbrMaterial(name: String)
PbrMaterial(name: String, albedo: Vector4)
getAlbedo()Vector4Returns the material’s albedo (base color) as a Vector4
setAlbedo(value: Vector4)Sets the material’s albedo to the specified Vector4
getMetallicFactor()doubleReturns the metallic factor (0-1) of the material
setMetallicFactor(value: double)Sets the metallic factor (0-1) of the material
getRoughnessFactor()doubleReturns the roughness factor (0-1) of the material
setRoughnessFactor(value: double)Sets the roughness factor (0-1) of the material
getEmissiveColor()Vector3Returns the emissive color as a Vector3
setEmissiveColor(value: Vector3)Sets the emissive color to the given Vector3
getTransparency()doubleReturns the transparency level (0-1) of the material
setTransparency(value: double)Sets the transparency level (0-1) of the material
fromMaterial(material: Material)PbrMaterialCreates a PbrMaterial from an existing Material instance

See Also