Skip to main content

Class: GLTFMaterialsDisplacementMapExtensionExport

Asset-Management.GLTFMaterialsDisplacementMapExtensionExport

Displacement Map Extension displacementTexture and displacementScale are added to the material(standard and physical)

Specification: https://webgi.xyz/docs/gltf-extensions/WEBGI_materials_displacementmap.html

Properties

name

name: string

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/gltf.ts:294


writer

writer: GLTFWriter2

Constructors

constructor

new GLTFMaterialsDisplacementMapExtensionExport(writer)

Parameters

NameType
writerGLTFWriter2

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/gltf.ts:296

Methods

writeMaterial

writeMaterial(material, materialDef): void

Parameters

NameType
materialMeshStandardMaterial
materialDefany

Returns

void

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/gltf.ts:302