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.
This class provides 2 methods for working with PbrMaterial objects in Typescript programs.
Available methods include: constructor, fromMaterial.
All public members are accessible to any Typescript application after installing the Aspose.3D FOSS for Typescript package.
Properties: albedo, albedoTexture, emissiveColor, emissiveTexture, metallicFactor, metallicRoughness, and 5 more.
Description
PbrMaterial is a class in the Aspose.3D FOSS library for TypeScript that exposes 1 method and 11 properties for programmatic use. It extends Material, inheriting shared functionality from its parent type.
Core capabilities include: vector3 \; texturebase ; `texturebase . These operations enable developers to integrate pbrmaterial functionality directly into TypeScript applications.
Instances are created through a single constructor that initializes the object with default values.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
albedo | Vector3 | null | Read/Write | Gets the albedo. |
albedoTexture | TextureBase | null | Read/Write | Gets the albedo texture. |
normalTexture | TextureBase | null | Read/Write | Gets the normal texture. |
metallicFactor | number | Read/Write | Gets the metallic factor. |
roughnessFactor | number | Read/Write | Gets the roughness factor. |
metallicRoughness | TextureBase | null | Read/Write | Gets the metallic roughness. |
occlusionTexture | TextureBase | null | Read/Write | Gets the occlusion texture. |
occlusionFactor | number | Read/Write | Gets the occlusion factor. |
emissiveTexture | TextureBase | null | Read/Write | Gets the emissive texture. |
emissiveColor | Vector3 | null | Read/Write | Gets the emissive color. |
transparency | number | Read/Write | Gets the transparency. |
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 |