floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
6.63k stars 472 forks source link

Enable vertex pulling (storage buffers + vertex id) #922

Closed floooh closed 2 months ago

floooh commented 9 months ago

Now that GLES2/WebGL1 has been dropped it's time to look into the topic of "rendering without vertex buffers" again:

PS: WebGL2 doesn't have storage buffer support either. It still should support rendering without vertex buffers though (e.g. pulling the data from a texture or uniform)

floooh commented 3 months ago

WIP vertex pulling example:

'bufferless rendering' example:

floooh commented 2 months ago

Fixed.