Class: WrappedMaterial

WrappedMaterial(reporter, settings)

ProductBuilder Material

Constructor

new WrappedMaterial(reporter, settings)

Parameters:
Name Type Description
reporter Reporter
settings Object
Properties
Name Type Attributes Description
id UUID <optional>
name string <optional>
type MaterialType
categories Array.<MaterialCategory> <optional>
thumbnail WrappedImage <optional>
alphaMap WrappedTexture <optional>
aoMap WrappedTexture <optional>
envMap EnvironmentMap <optional>
lightMap WrappedTexture <optional>
map WrappedTexture <optional>
specularMap WrappedTexture <optional>
displacementMap WrappedTexture <optional>
emissiveMap WrappedTexture <optional>
bumpMap WrappedTexture <optional>
normalMap WrappedTexture <optional>
clearcoatMap WrappedTexture <optional>
clearcoatNormalMap WrappedTexture <optional>
gradientMap WrappedTexture <optional>
parallaxMap WrappedTexture <optional>
color any <optional>
// * @param {any} [settings.x: string]
Source:

Members

materialTypes :Object.<string, Object>

Type:
  • Object.<string, Object>
Source:

Methods

(async) _build(part, quality) → {Promise.<WrappedMaterial>}

Build material
Parameters:
Name Type Description
part ComponentPart
quality LoadingQuality
Source:
Returns:
Type
Promise.<WrappedMaterial>

getMaterialSets() → {Array.<MaterialSet>}

Source:
Returns:
Type
Array.<MaterialSet>