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 What about the classic:

@iquilezles What about the classic:

Properties5
typearchive
sourcetwitter
date2025-02-09
tagsarchive, twitter, iquilezles
description@iquilezles What about the classic:

Feb 09, 20251 min read

  • archive
  • twitter
  • iquilezles

Source

  • URL: https://x.com/jervineyard/status/1888416642448916527
  • Author: Jeremy Vineyard (@jervineyard)
  • Posted: 2025-02-09 02:36:27

Branch

1/ @jervineyard

@iquilezles

What about the classic:
a * x + b * (1.0 - x)

Assuming x is 0 or 1?. And if you’re using the full normalized number range (0-1), could you use round(x) first to use this?

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