clientcommands icon indicating copy to clipboard operation
clientcommands copied to clipboard

cglow block rendering failing at a far away distance

Open RealRTTV opened this issue 4 years ago • 4 comments
trafficstars

going millions of blocks out with a /cglow on a block will cause the sides to deform and not align to the blocks position. I think this is to do with weird floating point math or whatever and it occurs with tracing stuff far away just wondering if there's an actual way to fix it

RealRTTV avatar May 23 '21 01:05 RealRTTV

I asked about this in the Discord server as it was an issue for my own mod as well; the proposed solution was to use raw OpenGL method calls.

xpple avatar May 23 '21 08:05 xpple

I think the solution is to draw everything in view space

Earthcomputer avatar May 24 '21 11:05 Earthcomputer

Why don't we use WorldRenderer#drawBox to render the outline?

xpple avatar Jun 05 '21 14:06 xpple

@Earthcomputer should I implement this here?

xpple avatar Jun 13 '21 18:06 xpple