the Twarchive

This is a record of a twitter thread, originally posted in 2019

Thew
@AmazingThew

Making some changes to Aerobat's engine to better support live shader dev. Added a unity-style "error shader" that gets used if compilation fails instead of crashing the game

unity magenta is boring so I made alternative red/blue diagonal bars with gl_FragCoord

Thew
@AmazingThew

except I tested it and the result is... this???

Thew
@AmazingThew

took way too long to realize: bar pattern is being drawn UNDER the post-process layers, which means my (actually pretty complicated) chromatic aberration created a sort of multisampled rainbow moire pattern

Thew
@AmazingThew

I had to take a pic with my phone because if I save a screenshot it just looks like normal magenta if the image is scaled at all lol

Thew
@AmazingThew

anyway here's me breaking and recompiling a shader while the game keeps running

I'm good at programming also every gamer who's ever called devs lazy for using unity owes me $150/hr for this evening