Scaling rendered text by distance
πΌοΈ Renderingβ’Updated 2 days agoβ’0 views
Use render.pushMatrix with a Matrix: translate to the screen position, then scale by Vector(1/dist*factor, 1/dist*factor, 1) where dist is the distance from plaβ¦
How to make text shrink the further away the viewer is
Use render.pushMatrix with a Matrix: translate to the screen position, then scale by Vector(1/dist*factor, 1/dist*factor, 1) where dist is the distance from player shoot pos to the chip/entity - draw, then popMatrix. Recreate or reuse the matrix per frame.