---
title: "Object3D | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias Object3D<Attribute, Uniform>

type Object3D<[Attribute](#attribute) extends string, [Uniform](#uniform) extends string\> \= {  
    [indexBuffer](#indexbuffer)?: [WebGLBuffer](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLBuffer/);  
    [indexBufferLength](#indexbufferlength)?: number;  
    [positionBuffer](#positionbuffer): [WebGLBuffer](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLBuffer/);  
    [programInfo](#programinfo): {  
        attributesLocations: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<[Attribute](#attribute), number\>;  
        uniformsLocations: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<[Uniform](#uniform), [WebGLUniformLocation](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLUniformLocation/)\>;  
    };  
    [shaderProgram](#shaderprogram): [WebGLProgram](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLProgram/);  
}

#### Type Parameters

-   Attribute extends string
-   Uniform extends string

##### Index

### Properties[](#properties)

[indexBuffer?](#indexbuffer) [indexBufferLength?](#indexbufferlength) [positionBuffer](#positionbuffer) [programInfo](#programinfo) [shaderProgram](#shaderprogram)

## Properties[](#properties-1)

### `Optional`indexBuffer[](#indexbuffer)

indexBuffer?: [WebGLBuffer](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLBuffer/)

### `Optional`indexBufferLength[](#indexbufferlength)

indexBufferLength?: number

### positionBuffer[](#positionbuffer)

positionBuffer: [WebGLBuffer](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLBuffer/)

### programInfo[](#programinfo)

programInfo: {  
    attributesLocations: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<[Attribute](#attribute), number\>;  
    uniformsLocations: [Record](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Record/)<[Uniform](#uniform), [WebGLUniformLocation](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLUniformLocation/)\>;  
}

### shaderProgram[](#shaderprogram)

shaderProgram: [WebGLProgram](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLProgram/)
