python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
WebGL2: How to render via shaders onto a TEXTURE_3D
I've read that WebGL2 gives us access to 3d textures. I'm trying to use this to perform some GPU-side computations and then store the output in a 64x64x64 3D texture. The render flow is
compute shader...
M -
Votes: 0
Answers: 1
Decompose a GLSL mat4 to original RTS values within vertex shader to calculate a View UV Offset
I need to get the rotation differences between the model and the camera, convert the values to radians/degrees, and pass it to the fragment shader.
For that I need to decompose and the Model rotation ...
Sadern Alwis
Votes: 0
Answers: 1
A-Frame: what to do when WebGL context lost on Oculus Quest browser (in VR)
Sometimes when working with WebGL, we encounter the error WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost. There are many reasons why this may happen, and many people have written suggestions on ...
Stemkoski
Votes: 0
Answers: 0
How do you render to an integer renderbuffer in webgl?
I'm having trouble using webgl2 to render to an integer renderbuffer. Using the example code at the bottom, I get all zeros in the pixels array and the following error on Firefox:
WebGL warning: readP...
squinlan
Votes: 0
Answers: 1