Questions tagged [webgl-extensions]
54 questions
15
votes
1 answer
How do you convert to half floats in JavaScript?
I want to be able to use the OES_texture_half_float extension in WebGL and provide my own data but there's no Float16Array in JavaScript. So how do I generate half float data?

gman
- 100,619
- 31
- 269
- 393
10
votes
1 answer
Is it possible to run #version 120 shaders with WebGL
I have a number of GLSL fragment shaders for which I can pretty much guarantee that they conform to #version 120 They use standard, non-ES conformant values and they do not have any ES-specific pragmas.
I really want to make a web previewer for them…

Julik
- 7,676
- 2
- 34
- 48
7
votes
3 answers
What is the difference between a ND-Buffer and a G-Buffer?
I'm noob at WebGL. I read in several posts of ND-Buffers and G-Buffers as if it were a strategic choice for WebGL development.
How are ND-Buffers and G-Buffers related to rendering pipelines? Are ND-Buffers used only in forward-rendering and…

deblocker
- 7,629
- 2
- 24
- 59
6
votes
1 answer
WebGL: Declining support for OES_texture_float on Android
Does anybody know what the deal is with declining support for the WebGL extension OES_texture_float on Android over the years?
https://webglstats.com/webgl/extension/OES_texture_float?platforms=000000000010000400
Is this a data collection error of…

fieldtensor
- 3,972
- 4
- 27
- 43
5
votes
2 answers
readPixels on multiple draw buffers in WebGL
I made a framebuffer object using the webgl_draw_buffers extension in order to provide three color buffers:
colorBuffer0 = gl.createRenderbuffer();
gl.bindRenderbuffer(gl.RENDERBUFFER, colorBuffer0);
gl.renderbufferStorage(gl.RENDERBUFFER,…

JRM
- 51
- 2
5
votes
1 answer
Does Three.js support OES_texture_float?
I want to render position or depth to a floating texture.
I use
vsnTexture = new THREE.WebGLRenderTarget(window.innerWidth, window.innerHeight,
{ minFilter: THREE.NearestFilter, magFilter: THREE.NearestFilter, format: THREE.RGBAFormat…

yongnan
- 405
- 7
- 20
5
votes
3 answers
WebGL extension support across browsers
This may be something as simple as a dumb setting that I have in Chrome or Firefox, but I just don't know where to go to figure out if it is that or if it's something else.
The basic thing I am trying to figure out is why extension support is so…

JayC
- 7,053
- 2
- 25
- 41
4
votes
2 answers
WEBGL_draw_buffers not supported on latest Firefox / Chrome
A google search would show all sorts of people using multiple render targets (aka MRT) with the WEBGL_draw_buffers extension.
The search would also show that both Firefox and Chrome are supposedly supporting it, and that one might have to enable a…

user2503048
- 1,021
- 1
- 10
- 22
3
votes
1 answer
Debugging in WebGL
I am learning WebGL and I can feel that my speed is so slow because I am having a hard time debugging my code. Is there any extension or tool with help of which I can know the value of buffer, attribpointer, matrixes, etc.
I googled and learned…

Pravin Poudel
- 1,433
- 3
- 16
- 38
3
votes
1 answer
The complete list of promoted extensions in WebGL2
I got a chance to update our renderer we use to WebGL2. To make the renderer as backward compatible as possible we keep tracking of loaded extensions( as we did before the upgrade ) and emulate extensions even if such extension was promoted. The…

Kos
- 1,547
- 14
- 23
3
votes
2 answers
How to set Transparency properly in webgl
I am new to graphics and webgl. i am facing problem in setting proper transparency for the model in webgl 1.0.
Model contains more than one part (geometry).
shader code is
"if (usetransparency > 0.0) {\n" +
"gl_FragColor = vec4(( diffuse -…

Srinivas
- 351
- 5
- 14
3
votes
2 answers
How can we have display of same objects in two canvas in webgl?
I am under a situation that i have two canvas, and i want to display the same object in both canvas (in fact i have to display different objects in each canvas, but i want to start by showing same object in both), but i am not able to do this,
…

struggling
- 535
- 1
- 10
- 25
2
votes
0 answers
Is it possible to filter integer texture in WebGL?
I have read other posts (for example this) that shows how to render integer texture (R16I) via WebGL.
However, it is using the gl.NEAREST for texture filtering for minification and magnification
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER,…

lorraine
- 124
- 1
- 10
2
votes
0 answers
No support for OES_texture_float, but WebGL2 is available
I've been surprised to find out that my Android phone does not support OES_texture_float extension, but fully supports WebGL2, which has floating texture functionality as baseline. What could cause the lack of their support in WebGL1, and is there…

riv
- 6,846
- 2
- 34
- 63
2
votes
1 answer
WebGL2 rendering to R32F texture
I can't bind R32F texture to framebuffer, because such textures are not "color renderable by default" according to this source.
But then it says "those features are available as optional extensions".
How to I use those extensions? How do I get it…

George Cherevichenko
- 23
- 4