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
| Name | Type | Access | Description |
|---|---|---|---|
albedo | Vector4 | Read | Represents the base color with alpha as a Vector4 |
metallicFactor | double | Read | Represents the metallic property (0-1) of the material |
roughnessFactor | double | Read | Represents the surface roughness (0-1) of the material |
emissiveColor | Vector3 | Read | Represents the light emitted by the material as a Vector3 |
transparency | double | Read | Represents the material’s opacity level (0-1) |
Methods
| Signature | Description |
|---|---|
PbrMaterial() | Creates a new PbrMaterial with name and albedo color |
PbrMaterial(name: String) | |
PbrMaterial(name: String, albedo: Vector4) | |
getAlbedo() → Vector4 | Returns the material’s albedo (base color) as a Vector4 |
setAlbedo(value: Vector4) | Sets the material’s albedo to the specified Vector4 |
getMetallicFactor() → double | Returns the metallic factor (0-1) of the material |
setMetallicFactor(value: double) | Sets the metallic factor (0-1) of the material |
getRoughnessFactor() → double | Returns the roughness factor (0-1) of the material |
setRoughnessFactor(value: double) | Sets the roughness factor (0-1) of the material |
getEmissiveColor() → Vector3 | Returns the emissive color as a Vector3 |
setEmissiveColor(value: Vector3) | Sets the emissive color to the given Vector3 |
getTransparency() → double | Returns the transparency level (0-1) of the material |
setTransparency(value: double) | Sets the transparency level (0-1) of the material |
fromMaterial(material: Material) → PbrMaterial | Creates a PbrMaterial from an existing Material instance |