New WebGL limit on variables' count

I have a material with array, that passed between vertex and fragment shaders.
Before v 1.2.97 editor there was no problem with size of the array.
Now, when I build webgl bundle there is an error:
WARNING:GRAPHICS: Varyings over maximum register limit
and then - crash.
I reduced size of array and it was started without any problem.

PS Maybe browser is guilty of this.

1 Like

An example of part of the project (it does not make sense, sorry, just as example)
It does not work in Chrome on Win7
If you will reduce “size” variable in test.vp and test.fp to 2 it will start to work.

test.zip (4.7 KB)

1 Like

Hmm, this is outside my area of expertise. @sicher, @sven or @Mathias_Westerdahl, do you know?