Webgl attribs only supply 1320

I use meshes for 2d light.
It worked in pc build.
But in webgl meshes sometimes not draw.

In console i get warning
WebGL warning: drawArraysInstanced: Vertex fetch requires 1395, but attribs only supply 1320.

How it can be fixed?

Reload game, and it was fixed. No ideas what happened.

Looks like it depends on browser window size.
When window is not full screen, get that warning

Try to make small repro case.
pc:


web:

Green lights not show in web.

WebGL warning: drawArraysInstanced: Vertex fetch requires 1395, but attribs only supply 4. 20
WebGL warning: drawArraysInstanced: Vertex fetch requires 1128, but attribs only supply 4. 12
After reporting 32, no further warnings will be reported for this WebGL context.```

Green lights use same predicate as game sprites(tile)
I need to sort this light with other game sprites by z

@Mathias_Westerdahl @britzl
Can you please look on it?

Could you please help us by creating a GitHub ticket with the info above+sample repo?

1 Like
2 Likes

Many thanks!

1 Like