azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
606 stars 54 forks source link

Remove ArrayItem[N] support in GLSL. #144

Open azul3d-bot opened 8 years ago

azul3d-bot commented 8 years ago

Issue by slimsag Saturday Jan 17, 2015 at 09:50 GMT Originally opened as https://github.com/azul3d/gfx/issues/94


From a long time ago, we have GLSL code that is written like so:

uniform sampler2D Texture0;

In fact, this was done on the premise that some OpenGL version might not support arrays. This isn't true.

This works today:

uniform sampler2D Textures[3];

We should remove the old style in v2.