Method AddTexture
AddTexture(int, int)
Creates a glTF texture from with a given image index
Declaration
int AddTexture(int imageId, int samplerId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | imageId | glTF image index returned by AddImage(ImageExportBase) |
| int | samplerId | glTF sampler index returned by AddSampler(FilterMode, TextureWrapMode, TextureWrapMode) |
Returns
| Type | Description |
|---|---|
| int | glTF texture index |