Source

Branch

1/ @FabriceNEYRET

@iquilezles

This comes from common misunderstanding of divergence on GPU ( magic thinking of hiding all supposedly evil IF by something that may be costlier )
https://shadertoyunofficial.wordpress.com/2023/11/26/performance-tricks/

  • only appropriate is when x is a vector
  • … or if it is a placeholder for a future smoothstep (for AA 😉 )