coderef

EXT_shader_texture_lod WebGL extensionBaseline · Widely available

The EXT_shader_texture_lod extension for WebGL 1.0 and 2.0 contexts adds texture functions to the OpenGL ES Shading Language such that the shader writer explicitly controls the level of detail (LOD).

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 2, 2021. Widely available since Mar 2, 2024.

Browser support

DesktopChrome
1–37Not supported
38+Supportedsince Oct 7, 2014
Current: 155
Edge
12–92Not supported
93+Supportedsince Sep 2, 2021
Current: 154
Firefox
1–46Not supported
47+Supportedsince Jun 7, 2016
Current: 157
Safari
1–7Not supported
8+Supportedsince Oct 16, 2014
Current: 27
MobileChrome Android
18–37Not supported
38+Supportedsince Oct 8, 2014
Current: 155
Firefox Android
4–66Not supported
67+Supportedsince May 21, 2019
Current: 157
Safari iOS
1–7Not supported
8+Supportedsince Sep 17, 2014
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: EXT shader texture lod.

Feature detection

JS · check before using
if ("EXT_shader_texture_lod" in globalThis) {
  // EXT_shader_texture_lod is available
} else {
  // load a polyfill or use a fallback
}