WebGL
Khronos
 

WebGL WEBGL_color_buffer_float Extension Specification

Name

WEBGL_color_buffer_float

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Mark Callow, HI Corporation

Members of the WebGL working group

Version

Last modified date: November 24, 2014
Revision: 8

Number

WebGL extension #15

Dependencies

Written against the WebGL API 1.0 specification.

Written against the EXT_color_buffer_half_float specification.

Implementations must also support the OES_texture_float extension.

Overview

Adds support for rendering to 32-bit floating-point color buffers.

When this extension is enabled:

IDL

[NoInterfaceObject]
interface WEBGL_color_buffer_float {
  const GLenum RGBA32F_EXT = 0x8814;
  const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
  const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17;
}; // interface WEBGL_color_buffer_float
  

New Tokens

void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
RGBA32F_EXT is accepted as the internalformat parameter of renderbufferStorage().

Additions to the WebGL Specification

The new tokens and the behavioral changes for floating-point color buffers specified in EXT_color_buffer_half_float are incorporated into WebGL except for the RGB16F and RGBA16F types. References to RGB16F are ignored, and references to RGBA16F are replaced by references to RGBA32F.

Revision History

Revision 1, 2012/11/08

Revision 2, 2012/11/12

Revision 3, 2012/11/13

Revision 4, 2012/11/26

Revision 5, 2014/07/15

Revision 6, 2014/09/11

Revision 7, 2014/11/24

Revision 8, 2014/11/24