Skip to main content

Class: GLTFWriter2

Asset-Management.GLTFWriter2

Hierarchy

  • any

    GLTFWriter2

Constructors

constructor

new GLTFWriter2()

Inherited from

(GLTFExporter as any).Utils.GLTFWriter.constructor

Methods

serializeUserData

serializeUserData(object, objectDef): void

Parameters

NameType
objectObject3D<Event> | Material
objectDefany

Returns

void

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:9


processObjects

processObjects(objects): void

Parameters

NameType
objectsObject3D<Event>[]

Returns

void

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:45


processMaterial

processMaterial(material): any

Checks for shader material and does the same thing...

Parameters

NameType
materialMaterial

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:60


processImageBlob

processImageBlob(blob, texture): any

Same as processImage but for image blobs

Parameters

NameType
blobBlob
textureTexture

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:100


processSampler

processSampler(map): any

Parameters

NameType
mapTexture

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:148


processTexture

processTexture(map): any

Parameters

NameType
mapTexture

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:160


processImage

processImage(image, format, flipY, mimeType?): any

Parameters

NameTypeDefault value
imageanyundefined
formatnumberundefined
flipYbooleanundefined
mimeTypestring'image/png'

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:214


processImageUri

processImageUri(image, uri, flipY, mimeType?): any

Used in GLTFWriter2.processTexture for rootPath. Note that this does not check for options.embedUrlImages, it must be done separately.

Parameters

NameTypeDefault value
imageanyundefined
uristringundefined
flipYbooleanundefined
mimeTypestring'image/png'

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:226

Properties

_defaultMaterial

Protected _defaultMaterial: MeshStandardMaterial

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:54