Inigo Quilez's Computer Graphics Tutorial Goldmine

2025-05-22

Inigo Quilez, a veteran computer graphics expert, has been dedicated to learning and sharing his knowledge since 1994. His website offers a vast collection of computer graphics tutorials covering topics ranging from SDFs and ray marching to fractals and mathematical techniques. Tutorials feature concise code snippets and clear explanations, catering to various skill levels. He also provides video tutorials and other resources, and his code is MIT-licensed for easy reuse.

Read more
Development SDFs

GPU Conditional Branching: Myth vs. Reality

2025-02-09

This article debunks a long-standing misconception in computer graphics: ternary operators in GPUs are not conditional branches. The author uses code examples and assembly code analysis to show that ternary operators or if statements in GPUs implement conditional move instructions, not branch jumps that alter the instruction pointer. These conditional moves are more efficient, and the supposed 'optimization' using the `step()` function actually reduces performance. The article calls for correcting this 20-year-old misunderstanding.

Read more
Development Optimization