Hacker News new | ask | show | jobs
by bugmenot3 3609 days ago
I knew I'd seen this pattern before! The XOR texture [1] is very similar. Apparently it was overused in early 2D games to test texture mappers (or for "fancy floor tiles", lol)

Actually, looking at the XOR, AND, OR textures side by side, it's easy to gain more intuition for them.

I definitely recommend reading some of the articles at [2], they're pretty entertaining and straight-forward.

[1] http://lodev.org/cgtutor/xortexture.html

[2] http://lodev.org/cgtutor/

3 comments

Very common in the demoscene too, along with the related Sierpinski triangle texture:

https://en.wikipedia.org/wiki/File:Multigrade_operator_AND.s...

Damn dude, that site is addicting. Like buzzfeed but for the overlap of math and CS nerds.
From the first link:

> But who'd want to generate a 1024x1024 XOR texture anyway.

The article contains a 1024x1024 AND texture :)