WebGL
Khronos
 

WebGL WEBGL_color_buffer_float Extension Draft 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: July 15, 2014
Revision: 5

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 EXT_color_buffer_float {
  const GLenum RGBA32F_EXT = 0x8814;
  const GLenum RGB32F_EXT = 0x8815;
  const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
  const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17;
}; // interface EXT_color_buffer_float

New Tokens

void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
RGBA32F_EXT and RGB32F_EXT are 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. All references to these are replaced by the 32-bit floating-point types specified above.

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