Questions tagged [regl]

For questions about regl the library and its usage

From the earlier regl front page (now see https://regl-project.github.io/regl/):

regl is a functional abstraction for WebGL.

Using regl is easier than writing raw WebGL code because you don't need to manage state or binding. It's also lighter and faster and has less overhead than many existing 3d frameworks. And it has a functional data-driven style inspired by react.

19 questions
0
votes
1 answer

Glsl error when trying to increment a variable inside a for loop

Context : I pass a uniform array of float to my fragment shader, then initialize a float with a value from this array, and finally try to increment this float in for loop, with this code : var regl = createREGL() var drawTriangle = regl({ …
Ren
  • 35
  • 4
0
votes
1 answer

When is it appropriate to use the main shader functions with regl?

When constructing your shaders, I notice sometimes a void function named main is constructed is used to define the shader. It seems like main is added to the shader when an attributed is iterated on. I wanted to get some clarity for when it is…
Union find
  • 7,759
  • 13
  • 60
  • 111
0
votes
1 answer

Inexplicable behavior in WebGL shader on iOS

I'm seeing some strange behavior that I can't explain in a WebGL shader I've written. This is not an area of expertise for me, so it's entirely possible that I'm misunderstanding something pretty simple, but I'm not sure what. I have a codepen…
gusto
  • 314
  • 3
  • 9
0
votes
1 answer

REGL rendering in a React component

I have the following code where I'm attempting to render a 3d seen (using REGL) into a React component App. It seems to render finely at first. But what I notice is that if I adjust the size of the browser window, the div the component renders…
Alex Bollbach
  • 4,370
  • 9
  • 32
  • 80
1
2