WEBGL_color_buffer_float
WebGL working group (public_webgl 'at' khronos.org)
Mark Callow, HI Corporation
Members of the WebGL working group
Last modified date: November 26, 2012
Revision: 4
WebGL extension #15
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.
Adds support for rendering to 32-bit floating-point color buffers.
When this extension is enabled:
The 32-bit floating-point types RGB32F and
RGBA32F become available as color-renderable formats.
Renderbuffers can be created in these formats. These and textures
created with type = FLOAT, which will have one of these
internal formats, can be attached to framebuffer object color
attachments for rendering.
NOTE: fragment shaders outputs
gl_FragColor and gl_FragData[0] will only be clamped and converted
when the color buffer is fixed-point and BlendColor() and
ClearColor() will no longer clamp their parameter values
on input. Clamping will be applied as necessary at draw time according
to the type of color buffer in use.
The format and type combination RGBA and
FLOAT becomes valid for reading from a floating-point
rendering buffer. Note: RGBA and
UNSIGNED_BYTE cannot be used for reading from a
floating-point rendering buffer.
The component types of framebuffer object attachments can be queried.
module webgl {
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
}; // module webglRGBA32F_EXT and RGB32F_EXT are
accepted as the internalformat parameter of
renderbufferStorage().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 1, 2012/11/08
Revision 2, 2012/11/12
Revision 3, 2012/11/13
Revision 4, 2012/11/26