WARNING: Output of vertex shader 'worldStart' not read by fragment shader

I get the following warning in the browser console

THREE.WebGLProgram: Program Info Log: WARNING: Output of vertex shader 'worldStart' not read by fragment shader
WARNING: Output of vertex shader 'webgl_c1d305a95b2ffdd9' not read by fragment shader
WARNING: Output of vertex shader 'webgl_574c5c41cd2da6c7' not read by fragment shader

It seems to come from using /examples/jsm/lines/LineMaterial.js with three/examples/jsm/lines/LineSegments2.js here:

and here:

The warning can be “reproduced” with CadQuery Viewer

Can this be ignored or does anybody have a hint how to get rid of it?

Thanks!

1 Like

Can you please try to reproduce the warning with the official wide lines demo? three.js webgl - lines - fat

No need to reproduce, it happens without changes in the demo:

I use the latest version of Chrome on a Mac

I can reproduce. Let me file a PR to fix the warning.

2 Likes