Tiện ích WEBGL_color_buffer_float
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.
Tiện ích WEBGL_color_buffer_float là một phần của WebGL API và bổ sung khả năng render vào các color buffer dấu phẩy động 32-bit.
Các tiện ích WebGL có thể dùng bằng phương thức WebGLRenderingContext.getExtension(). Để biết thêm thông tin, xem Using Extensions trong hướng dẫn WebGL.
Note:
Tiện ích này chỉ khả dụng với ngữ cảnh WebGL 1. Đối với WebGL 2, dùng tiện ích EXT_color_buffer_float.
Tiện ích OES_texture_float kích hoạt ngầm tiện ích này.
Hằng số
ext.RGBA32F_EXT-
Định dạng color-renderable RGBA dấu phẩy động 32-bit.
ext.RGB32F_EXT( Đã lỗi thời )-
Định dạng color-renderable RGB dấu phẩy động 32-bit.
ext.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT-
?
ext.UNSIGNED_NORMALIZED_EXT-
?
Phương thức mở rộng
Tiện ích này mở rộng WebGLRenderingContext.renderbufferStorage():
- Tham số
internalformathiện chấp nhậnext.RGBA32F_EXTvàext.RGB32F_EXT( Đã lỗi thời ).
Ví dụ
const ext = gl.getExtension("WEBGL_color_buffer_float");
gl.renderbufferStorage(gl.RENDERBUFFER, ext.RGBA32F_EXT, 256, 256);
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| WebGL WEBGL_color_buffer_float Extension Specification> |