banteg shares Kimi writing sample explaining exact analytic beam-shadow math

banteg · x · 2026-10-24

Developer banteg shared a writing sample from Kimi K3.1 Pro (running as moonshotai/kimi-k3.1-pro inside Codex CLI), calling the quality "quite good." The screenshot shows the model explaining an RTX beam-shadow trick: integrate exactly along the beam, sample only across it — modeling each monster as a rotated 3D ellipsoid, solving a quadratic in t whose discriminant is itself quadratic in source position s to get exact shadow intervals, then using two-point Gauss-Legendre quadrature (±0.57735 × half-width, 50% weights each) across the beam to avoid arbitrary blur.

Original post →

More from coding & agent

coding & agent channel →