remix logo

Hacker Remix

The best darn grid shader yet (2023)

214 points by eliasylonen 3 days ago | 23 comments

miniBill 2 hours ago

> At least until Mr. Quilez writes a shader that beats this one.

Made me chuckle. He truly is in a class of his own.

nightowl_games 3 days ago

"Which, if you’re like me and didn’t finish their college level math courses, means absolutely nothing. I dropped out of art school, so it’s mostly over my head."

This is why Ben Golus's posts on shaders are the best. Cause they're actually accessible.

singron 3 days ago

This was really interesting. I don't love the fading out to solve the moire in the final solution. I wonder if some dithering would feel better and give the impression there are lines out there rather than a smooth gray surface? Or maybe some jitter to break up the pattern?

This isn't shown in the post, but sometimes the moire feels worse if you are walking around and the moire has a movement of its own (either flickering/shimmering or sweeping across in uv space), and it's probably a decent benefit to get rid of the moire even if it's imperfect.

LegionMammal978 2 days ago

As far as dithering-while-in-motion goes, Lucas Pope has a whole series of posts [0] [1] [2] [3] [4] on his various attempts at implementing the 1-bit dithering effect for his game Return of the Obra Dinn. It seems like for every strategy that does work well, there are many more that don't (or at least, not at the scale he applies it).

[0] https://forums.tigsource.com/index.php?topic=40832.msg104520...

[1] https://forums.tigsource.com/index.php?topic=40832.msg104555...

[2] https://forums.tigsource.com/index.php?topic=40832.msg121719...

[3] https://forums.tigsource.com/index.php?topic=40832.msg135912...

[4] https://forums.tigsource.com/index.php?topic=40832.msg136374...

tobr 3 days ago

Looks very interesting. I’m confused by the note in the intro though:

> Note: I highly recommend viewing this article in dark mode.

I’m trying, but it seems like Medium doesn’t even have a dark mode? Is this reposted from somewhere else?

drdebug 3 days ago

You can install the "Dark Reader" plugin on Firefox, works great.

soulofmischief 3 days ago

Plugins are unnecessary. On the right side of your address bar in Firefox should be a little icon of a page. Click it to enter Reader View, which can apply various themes to a page.

More information: https://support.mozilla.org/en-US/kb/firefox-reader-view-clu...

Chilko 3 days ago

I assumed this was a general note regarding browser settings. I used the 'Immersive Reader' mode in Edge and set that to a dark mode.