Hi,
I’m using LineMesh
and I noticed that the use of a Material
(not the default one) generate a WEBGL warning like :
GL_INVALID_OPERATION: Must have element array buffer bound.
As illustrated in this payground
Does anyone have any idea where this warning came from?
Thank you,
The LineMesh
does not work with the standard / PBR material, you must provide a custom ShaderMaterial
if the default one does not suit you. That’s because this material has special requirements.
See Best way to keep dash size constant - #10 by Evgeni_Popov for more context.
1 Like
Thank you for your answer
I was using a ShaderMaterial
in my project and I had the same warning.
Indeed this comment answers the problem: Best way to keep dash size constant - #10 by Evgeni_Popov
Setting the 4th parameter of the ShaderMaterial
to false
seems to solve it.
Thank you !
1 Like