Documentation / @imvu/cal3d / TextureMap
Class: TextureMap
Defined in: packages/cal3d/src/Material.ts:19
A texture a material uses. Cal3D does not embed images: filename names a file shipped alongside (in an IMVU product, an entry of its _contents.json).
Constructors
Constructor
ts
new TextureMap(filename, type?): TextureMap;Defined in: packages/cal3d/src/Material.ts:20
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
filename | string | undefined | - |
type? | string | TextureMapType.Diffuse | What the texture is for, e.g. 'Diffuse Color' or 'Opacity' (see TextureMapType). |
Returns
TextureMap
Properties
filename
ts
filename: string;Defined in: packages/cal3d/src/Material.ts:21
type
ts
type: string = TextureMapType.Diffuse;Defined in: packages/cal3d/src/Material.ts:23
What the texture is for, e.g. 'Diffuse Color' or 'Opacity' (see TextureMapType).