ShaderSnake + project
About
A technical meme.
Snake, but done (almost) entirely on shaders. The only non-shader thing is a script feeding the inputs to the shader and some initial setup things. There's a funky camera setup too, but I think that doesn't count.
CONTROLS :
- Left and Right arrows to move
- R to restart
You don't die upon touching yourself, but only lose some health.
The main idea was to have a camera outputting to a render texture, and give that texture to something in front of the camera itself, in order to get something resembling memory. Turns out that I had to have another "delay" camera, but that's the spirit notheless.
I'll have to comment the code sooner or later.