Skip to content

Add thickLine tracers & fix tracers clipping when pointing to things behind player#6173

Open
sophimoo wants to merge 2 commits intoMeteorDevelopment:masterfrom
sophimoo:tracer-addition
Open

Add thickLine tracers & fix tracers clipping when pointing to things behind player#6173
sophimoo wants to merge 2 commits intoMeteorDevelopment:masterfrom
sophimoo:tracer-addition

Conversation

@sophimoo
Copy link
Contributor

@sophimoo sophimoo commented Feb 25, 2026

Type of change

  • Bug fix
  • New feature

Description

Extends Renderer3D with a new method thickLine which renders lines with configurable width
Extends Renderer3D with reprojectBehindCamera helper to project line endpoints behind the camera when they go out of view, preventing them from clipping.
Extends Renderer3D with sliderToLinearWidth helper to convert slider values to actual render widths cuz its actually rly low values 0.001 - 0.01 is the true range anything bigger than 0.01 looks crazy.

This PR includes a example usage of the new thickLine replacing line in the blockESP module

Removed thickLine stuff cuz it didn't have anti aliasing

It's a bit of a hacky implementation, they're just quads facing the camera, but it seems other clients do this too so 🤷‍♀️ if it looks good who care

Related issues

Mention any issues that this pr relates to.

How Has This Been Tested?

before
image
with reprojection fix
image

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant