Home / Forums / Distance-Based Alpha Fading for Snaplines and Tracers (Part 3)

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Distance-Based Alpha Fading for Snaplines and Tracers (Part 3)

ShadowPwn
Security Researcher
MEMBER
Rep: 150
Join Date: Feb 2024
Posts: 19
Thanks: 35
1y ago · Apr 10, 2025 1:45 PM
#1
Implementing linear and exponential alpha falloff on snaplines to reduce visual clutter for distant entities.
ShadowPwn · Security & Anticheat Analysis
The following users thanked ShadowPwn for this post:
MatrixRecon
3D Math & Vectors
MEMBER
Rep: 225
Join Date: Jan 2025
Posts: 33
Thanks: 55
1y ago · Apr 10, 2025 3:29 PM
#2
Compute alpha = 1.0f - saturate((distance - minFadeDist) / (maxFadeDist - minFadeDist)).
MatrixRecon · 3D Mathematics & View Matrix Calculations
VMT_Hooker
VMT / Detours Engineer
VIP
Rep: 310
Join Date: Mar 2023
Posts: 22
Thanks: 80
1y ago · Apr 11, 2025 5:29 PM
#3
This ensures nearby threats have bright lines while distant entities fade smoothly into the background.
VMT_Hooker - Virtual method table swapping made easy