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

NameTypeAccessDescription
albedoVector3 | nullRead/WriteGets the albedo.
albedoTextureTextureBase | nullRead/WriteGets the albedo texture.
normalTextureTextureBase | nullRead/WriteGets the normal texture.
metallicFactornumberRead/WriteGets the metallic factor.
roughnessFactornumberRead/WriteGets the roughness factor.
metallicRoughnessTextureBase | nullRead/WriteGets the metallic roughness.
occlusionTextureTextureBase | nullRead/WriteGets the occlusion texture.
occlusionFactornumberRead/WriteGets the occlusion factor.
emissiveTextureTextureBase | nullRead/WriteGets the emissive texture.
emissiveColorVector3 | nullRead/WriteGets the emissive color.
transparencynumberRead/WriteGets the transparency.

Methods

SignatureDescription
constructor(name: string | null, albedo: Vector3 | null)Creates a new PbrMaterial with an optional name and base albedo color
fromMaterial(material: Material)PbrMaterialReturns a PbrMaterial initialized from the properties of an existing Material

See Also