bjornbytes / lovr

Lua Virtual Reality Framework
https://lovr.org
MIT License
1.97k stars 136 forks source link

Improve Line Rendering #87

Open bjornbytes opened 5 years ago

bjornbytes commented 5 years ago

GL_LINES... it burns

Creatorbyte commented 4 years ago

I just started using LOVR today and I noticed that sometimes the lines flicker really badly. Is this just me or is it a known bug?

bjornbytes commented 4 years ago

I don't think it's a known bug. If you could submit a sample project (and maybe the platform you're running on), I can take a look!

Creatorbyte commented 4 years ago

31E6428F-90D9-4685-B911-4ED6E95DD54A Never mind. I was drawing a grid using your sample grid drawing code that uses the custom mesh. I accidentally enabled the fill and the lines were rendering on the exact same level as the plane. I didn’t realize that this was the problem because it was filling with the same color as the background so it looked like it was just a problem with how the the lines were being drawn. I fixed it though 😁