I’m trying to enable a polygonOffset for a wireframe material, but it doesn’t seem to work.
It works fine for regular materials that aren’t wireframe though.
Is this a limitation of the renderer?
I’m trying to enable a polygonOffset for a wireframe material, but it doesn’t seem to work.
It works fine for regular materials that aren’t wireframe though.
Is this a limitation of the renderer?
As the name implies, polygon offset only works for polygonal primitives. Lines and points are not supported.
This is a WebGL limitation.
PolygonOffset is made for removing z-fighting like in “decals” example ?
I see- thanks. I guess I could create a vertex shader for it. For now I’ve just added polygonoffset to the non-line materials in the opposite direction.