Hacker News new | ask | show | jobs
by BraveOPotato 5 days ago
Shaders used to not make any sense to me. The tutorial writes a simple expression and boom the screen is displaying all kinds of funky things.

Then I realized you're just writing code that executes on all pixels sequentially. That made it easier to understand

1 comments

> executes on all pixels sequentially

or in parallel?

Now that I think about it, parallel makes more sense since it's GPU accelerated, but now I'm back to being confused lol
Well depending on transparency and depth buffer it either doesn't matter or really really does....

Also for your confusion it truely is parallel, the best kind in fact. The trivial kind, each pixel's color is independent of every other pixel so you can and thus want too do them ALL at the same time!