Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes

Shader FloodFill Alogrithm

The above method was not only outdated for 2017, but extra-ordinarily slow. There are dedicated algorithms to do what you're talking about on the GPU that take maximal advantage of GPU parallelism. ...
Krupip's user avatar
  • 1,763
3 votes

GLSL wrong data read from attribute

Unreferenced variables are removed by compiler What you are seeing is a kind of compilation optimisation (Though strictly speaking it is not considered an optimization). When you declare inputs you ...
Blindman67's user avatar
1 vote
Accepted

Convert Wavefront (OBJ) faces into triangles for drawing with OpenGLES

As we hashed out in the comments, that 700-entry line seems to be the middle face of your tile: a square with something like 174 T-junctions on each side would give you the 700-entry line you're ...
DMGregory's user avatar
  • 135k
1 vote
Accepted

How to apply sampler2Darray textures to different locations of a single mesh?

I might solve this with an index texture, similar to this tilemap approach I presented earlier. Set aside an extra texture that covers your whole terrain with a resolution of about 1 texel per aerial ...
DMGregory's user avatar
  • 135k
1 vote

Difference in glDrawArrays and glDrawElements

When you use glDrawArrays you have to choose an indexing pattern, one of GL_TRIANGLES, ...
Chris E's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible