Constructor
new GLTFPart(name)
| Name | Type | Description |
|---|---|---|
name | string | @param {Mesh} mesh @param {Color} color @param {TextureInfo|undefined} textureInfo @param {boolean} transparent |
- Source
Members
color
Properties| Type | Description |
|---|---|
| Color | The material's base color, to draw the mesh tinted with |
- Source
emissiveMap :TextureInfo|undefined
- TextureInfo |
undefined
| Type | Description |
|---|---|
| TextureInfo | | The material's emissive map, or a white texture when it has an emissiveFactor and no texture, so it glows all over |
- Source
emissiveMapColor
Properties| Type | Description |
|---|---|
| Color | The emissiveFactor, which multiplies the emissive map |
- Source
mesh
Properties| Type | Description |
|---|---|
| Mesh | The geometry in model space, the node transforms applied, with the vertex colors the file had; a node resting at scale 0 is applied at scale 1 there, so an animation can grow it from nothing |
- Source
name
Properties| Type | Description |
|---|---|
| string | The node's name, or its mesh's |
- Source
node
Properties| Type | Description |
|---|---|
| number | The node it came from, which an animation moves it with |
- Source
normalMap :TextureInfo|undefined
- TextureInfo |
undefined
| Type | Description |
|---|---|
| TextureInfo | | The material's normal map, drawn with the base color texture's uvs |
- Source
normalScale
Properties| Type | Description |
|---|---|
| number | The normal map's strength, its scale in the file |
- Source
pixelated
Properties| Type | Description |
|---|---|
| boolean | Its texture's sampler asks for nearest filtering, hard edged pixels, as pixel art and voxel tools export; the object createObject makes draws it pixelated |
- Source
textureInfo :TextureInfo|undefined
- TextureInfo |
undefined
| Type | Description |
|---|---|
| TextureInfo | | The material's base color texture, undefined without one or without WebGL |
- Source
transparent
Properties| Type | Description |
|---|---|
| boolean | The material blends or is glass, so the part belongs in the transparent stage |
- Source
unlit
Properties| Type | Description |
|---|---|
| boolean | The material is unlit (KHR_materials_unlit), its own color with no shading; the object createObject makes draws it with emissive 1 |
- Source