Atlas Engine
API Referenceatlas

Material

Physically based surface properties. Defaults include white albedo, metallic 0, roughness 0.5, and AO 1.

Module: atlas

Physically based surface properties. Defaults include white albedo, metallic 0, roughness 0.5, and AO 1.

Declaration

export class Material { ... }

Constructors

Creates a new material.

constructor();

Properties

albedo

The albedo.

albedo: Color;

metallic

The metallic.

metallic: number;

roughness

The roughness.

roughness: number;

ao

Ambient occlusion factor; defaults to 1.

ao: number;

reflectivity

The reflectivity.

reflectivity: number;

emissiveColor

The emissive color.

emissiveColor: Color;

emissiveIntensity

The emissive intensity.

emissiveIntensity: number;

normalMapStrength

The normal map strength.

normalMapStrength: number;

useNormalMap

Whether normal-map shading is enabled.

useNormalMap: boolean;

transmittance

The transmittance.

transmittance: number;

ior

Index of refraction; defaults to 1.

ior: number;

abbeNumber

abbeNumber: number;

attenuationColor

attenuationColor: Color;

attenuationDistance

attenuationDistance: number;

isVolume

isVolume: boolean;

volumeDensity

volumeDensity: number;

volumeAbsorptionColor

volumeAbsorptionColor: Color;

volumeAbsorptionStrength

volumeAbsorptionStrength: number;

volumeScatteringColor

volumeScatteringColor: Color;

volumeScatteringStrength

volumeScatteringStrength: number;

volumeAnisotropy

volumeAnisotropy: number;

volumeEmissionColor

volumeEmissionColor: Color;

volumeEmissionStrength

volumeEmissionStrength: number;

subsurfaceWeight

subsurfaceWeight: number;

subsurfaceScale

subsurfaceScale: number;

subsurfaceAnisotropy

subsurfaceAnisotropy: number;

subsurfaceColor

subsurfaceColor: Color;

subsurfaceRadius

subsurfaceRadius: Color;

On this page