---
title: "WebGLShaderPrecisionFormat | 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.

# Interface WebGLShaderPrecisionFormat

The **`WebGLShaderPrecisionFormat`** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)

interface WebGLShaderPrecisionFormat {  
    [precision](#precision): number;  
    [rangeMax](#rangemax): number;  
    [rangeMin](#rangemin): number;  
}

##### Index

### Properties[](#properties)

[precision](#precision) [rangeMax](#rangemax) [rangeMin](#rangemin)

## Properties[](#properties-1)

### `Readonly`precision[](#precision)

precision: number

The read-only **`WebGLShaderPrecisionFormat.precision`** property returns the number of bits of precision that can be represented.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)

### `Readonly`rangeMax[](#rangemax)

rangeMax: number

The read-only **`WebGLShaderPrecisionFormat.rangeMax`** property returns the base 2 log of the absolute value of the maximum value that can be represented.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)

### `Readonly`rangeMin[](#rangemin)

rangeMin: number

The read-only **`WebGLShaderPrecisionFormat.rangeMin`** property returns the base 2 log of the absolute value of the minimum value that can be represented.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)
