Class: GLTFWriter2
Asset-Management.GLTFWriter2
Hierarchy
GLTFWriter
↳
GLTFWriter2
Constructors
constructor
• new GLTFWriter2()
Inherited from
GLTFExporter.Utils.GLTFWriter.constructor
Methods
serializeUserData
▸ serializeUserData(object
, objectDef
): void
Parameters
Name | Type |
---|---|
object | Object3D <Object3DEventMap > | Material <MaterialEventMap > | BufferGeometry <NormalBufferAttributes , BufferGeometryEventMap > |
objectDef | any |
Returns
void
Overrides
GLTFExporter.Utils.GLTFWriter.serializeUserData
processObjects
▸ processObjects(objects
): void
Parameters
Name | Type |
---|---|
objects | Object3D <Object3DEventMap >[] |
Returns
void
Overrides
GLTFExporter.Utils.GLTFWriter.processObjects
processMaterial
▸ processMaterial(material
): null
| number
Checks for shader material and does the same thing...
Parameters
Name | Type |
---|---|
material | Material <MaterialEventMap > |
Returns
null
| number
Overrides
GLTFExporter.Utils.GLTFWriter.processMaterial
processImageBlob
▸ processImageBlob(blob
, texture
): any
Same as processImage but for image blobs
Parameters
Name | Type |
---|---|
blob | Blob |
texture | Texture <TextureEventMap > |
Returns
any
processSampler
▸ processSampler(map
): number
Parameters
Name | Type |
---|---|
map | Texture <TextureEventMap > |
Returns
number
Overrides
GLTFExporter.Utils.GLTFWriter.processSampler
processTexture
▸ processTexture(map
): number
Parameters
Name | Type |
---|---|
map | Texture <TextureEventMap > |
Returns
number
Overrides
GLTFExporter.Utils.GLTFWriter.processTexture
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
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
Properties
_defaultMaterial
• Protected
_defaultMaterial: MeshStandardMaterial
<MaterialEventMap
>