Uniform buffers

Hi All,

I wanted to port my diamond renderer to babylon js, as it supports the latest webgl 2 :slight_smile:
http://pixotronics.com/

One of the reasons is that with each diamond, I need to send a lot of uniforms, and that has become a bottleneck on webgl 1.
So, is the uniform buffer supported without me worrying much about that, or I need to do anything specific?
Are there examples of its usage?

Thanks!
Thanks!

WebGL2 is definitely a good choice for that. Uniform buffers will help a lot

I suggest that you have a look to the backgroundMaterial for instance:

@Deltakosh, Thanks for your suggestion!

1 Like