gl-react icon indicating copy to clipboard operation
gl-react copied to clipboard

Question: How to implement buffer ?

Open melMass opened this issue 6 years ago • 0 comments

I'm trying to implement a fluid GLSL shader I have written. I've used the glslViewer which by defaults comes with buffers from my searches it seems the best would be to split each buffer to its own shader. I just don't understand how to then share the buffer across react components.

For now here is the layout of my shader:

  1. buffer0 => advect fluids
  2. buffer1 => copy buffer0
  3. else => copy buffer1

melMass avatar Jan 28 '19 21:01 melMass