Threadwell

Recent Notes

  • JohannesVuorine

    Aug 26, 2026

    • archive
    • twitter
    • johannesvuorine
  • Threads

    Aug 26, 2026

    • archive
  • iquilezles

    Aug 26, 2026

    • archive
    • twitter
    • iquilezles
Home

❯

Archive

❯

Threads

❯

iquilezles

❯

Hey, don't "optimize" conditional moves with mix()+step().

❯

@iquilezles Is there a use case for step()? I always forget if it's a < or > comparison.

@iquilezles Is there a use case for step()? I always forget if it's a < or > comparison.

Properties5
typearchive
sourcetwitter
date2025-02-12
tagsarchive, twitter, iquilezles
description@iquilezles Is there a use case for step()? I always forget if it's a < or > comparison.

Feb 12, 20251 min read

  • archive
  • twitter
  • iquilezles

Source

  • URL: https://x.com/luis_reyes_x/status/1889527342948643250
  • Author: Luis Reyes (@luis_reyes_x)
  • Posted: 2025-02-12 04:09:58

Branch

1/ @luis_reyes_x

@iquilezles

Is there a use case for step()? I always forget if it’s a < or > comparison. Ternary operator makes it very clear so I’m curious why it’s a thing in the first place

Related

  • Spine: 2025-02-09-hey-dont-optimize-conditional-moves-with-mix-step

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • Hey, don't "optimize" conditional moves with mix()+step().

Created with Quartz v5.0.0 © 2026

  • GitHub