From 80a545ca46bf918fc535b5a617f00ecd906e8240 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 14 Jun 2025 21:42:52 -0700 Subject: modules/ray: only advance r when ticks change --- src/modules/ray/ray.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/ray/ray.c b/src/modules/ray/ray.c index f616ae8..3b66de0 100644 --- a/src/modules/ray/ray.c +++ b/src/modules/ray/ray.c @@ -153,7 +153,9 @@ static void ray_prepare_frame(til_module_context_t *context, til_stream_t *strea #if 1 /* animated point light source */ - ctxt->r += -.02; + /* FIXME: see comment in julia.c about this recurring kludge */ + if (ticks != context->last_ticks) + ctxt->r += -.02; scene.lights[0].light.emitter.point.center.x = cosf(ctxt->r) * 4.5f; scene.lights[0].light.emitter.point.center.z = sinf(ctxt->r * 3.0f) * 4.5f; -- cgit v1.2.3