Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. EXT_color_buffer_float

EXT_color_buffer_float extension

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨September 2021⁩.

TheEXT_color_buffer_float extension is part ofWebGL and adds the ability to render a variety of floating point formats.

WebGL extensions are available using theWebGLRenderingContext.getExtension() method. For more information, see alsoUsing Extensions in theWebGL tutorial.

Note:This extension is available toWebGL 2 contexts only.

ForWebGL 1, see theEXT_color_buffer_half_float andWEBGL_color_buffer_float extensions.

Extended methods

The following sized formats becomecolor-renderable:

  • gl.R16F,
  • gl.RG16F,
  • gl.RGBA16F,
  • gl.R32F,
  • gl.RG32F,
  • gl.RGBA32F,
  • gl.R11F_G11F_B10F.

Color-renderable means:

Examples

gl must be aWebGL2RenderingContext. This extension does not work in WebGL 1 contexts.

js
const ext = gl.getExtension("EXT_color_buffer_float");gl.renderbufferStorage(gl.RENDERBUFFER, gl.RGBA16F, 256, 256);

Specifications

Specification
WebGL EXT_color_buffer_float Extension Specification

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp