Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A simplified use case is to generate a checkerboard texture, just compute (x ^ y) and look at bit zero:

    color = ((x ^ y) & 1) ? black : white;


I wonder if someone has written a GPU shader that can play a game of chess inside a 8x8 checkerboard texture.


Googling finds a shadertoy that's halfway there ;) (knows about chess rules, but can't play on its own):

https://www.shadertoy.com/view/wstBz4




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: