Class: GLTFWriter2
Asset-Management.GLTFWriter2
Hierarchy
GLTFWriter
↳
GLTFWriter2
Constructors
constructor
• new GLTFWriter2()
Inherited from
GLTFExporter.Utils.GLTFWriter.constructor
Defined in
webgi/node_modules/@types/three/examples/jsm/exporters/GLTFExporter.d.ts:98
Methods
serializeUserData
▸ serializeUserData(object
, objectDef
): void
Parameters
Name | Type |
---|---|
object | Object3D <Event , string > | Material <Event , string > | BufferGeometry <NormalBufferAttributes , Event , string > |
objectDef | any |
Returns
void
Overrides
GLTFExporter.Utils.GLTFWriter.serializeUserData
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:9
processObjects
▸ processObjects(objects
): void
Parameters
Name | Type |
---|---|
objects | Object3D <Event , string >[] |
Returns
void
Overrides
GLTFExporter.Utils.GLTFWriter.processObjects
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:45
processMaterial
▸ processMaterial(material
): null
| number
Checks for shader material and does the same thing...
Parameters
Name | Type |
---|---|
material | Material <Event , string > |
Returns
null
| number
Overrides
GLTFExporter.Utils.GLTFWriter.processMaterial
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
Name | Type |
---|---|
blob | Blob |
texture | Texture |
Returns
any
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:105
processSampler
▸ processSampler(map
): number
Parameters
Name | Type |
---|---|
map | Texture |
Returns
number
Overrides
GLTFExporter.Utils.GLTFWriter.processSampler
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:153
processTexture
▸ processTexture(map
): number
Parameters
Name | Type |
---|---|
map | Texture |
Returns
number
Overrides
GLTFExporter.Utils.GLTFWriter.processTexture
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:165
processImage
▸ processImage(image
, format
, flipY
, mimeType?
): number
Parameters
Name | Type | Default value |
---|---|---|
image | any | undefined |
format | number | undefined |
flipY | boolean | undefined |
mimeType | string | 'image/png' |
Returns
number
Overrides
GLTFExporter.Utils.GLTFWriter.processImage
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:238
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
Name | Type | Default value |
---|---|---|
image | any | undefined |
uri | string | undefined |
flipY | boolean | undefined |
mimeType | string | 'image/png' |
Returns
any
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:251
Properties
_defaultMaterial
• Protected
_defaultMaterial: MeshStandardMaterial
<Event
, string
>
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:54