PbrMaterial
Overview
PbrMaterial is a class in Aspose.3D FOSS for Typescript.
Inherits from: Material.
PbrMaterial.constructor creates a new PbrMaterial with an optional name and base albedo color.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
albedo | Vector3 | null | Read/Write | Stores the base color of the material as an RGB Vector3 or null |
albedoTexture | TextureBase | null | Read/Write | Holds an optional texture that defines per‑pixel albedo values |
normalTexture | TextureBase | null | Read/Write | Holds an optional normal map texture for surface detail |
metallicFactor | number | Read/Write | Is a numeric value (0‑1) indicating how metallic the surface appears |
roughnessFactor | number | Read/Write | Is a numeric value (0‑1) controlling the surface roughness |
metallicRoughness | TextureBase | null | Read/Write | Holds an optional texture that combines metallic and roughness channels |
occlusionTexture | TextureBase | null | Read/Write | Holds an optional ambient occlusion texture |
occlusionFactor | number | Read/Write | Is a numeric multiplier applied to occlusion texture values |
emissiveTexture | TextureBase | null | Read/Write | Holds an optional texture that defines per‑pixel emissive color |
emissiveColor | Vector3 | null | Read/Write | Stores a constant emissive color as an RGB Vector3 or null |
transparency | number | Read/Write | Is a numeric opacity factor where 0 is fully transparent and 1 is opaque |
Methods
| Signature | Description |
|---|---|
constructor(name: string | null, albedo: Vector3 | null) | Creates a new PbrMaterial with an optional name and base albedo color |
fromMaterial(material: Material) → PbrMaterial | Returns a PbrMaterial initialized from the properties of an existing Material |