Convolution shader tests! (full-screen AA counting every pixel)
by shy
![Brave Pixel](https://games.phoneky.com/pics/bravepixel1x.png)
![3D Material Capture](https://games.phoneky.com/pics/3dmaterialcapture1x.png)
![pelogen (3D modeling tool)](https://games.phoneky.com/pics/pelogen3dmodelingtool1x.png)
![Bear Home](https://games.phoneky.com/pics/bear-home1x.jpg)
![Pixel Gun Spin Wheel Earn Gems&Coins](https://games.phoneky.com/pics/pixel-gun-spin-wheel-earn-gemscoins1x.jpg)
![Shadow Techniques](https://games.phoneky.com/pics/shadowtechniques1x.png)
![Raveball](https://games.phoneky.com/pics/raveball1x.png)
![Count The Llamas](https://games.phoneky.com/pics/count-the-llamas1x.jpg)
![Count And Compare](https://games.phoneky.com/pics/count-and-compare1x.jpg)
![Color Pixel Art Classic](https://games.phoneky.com/pics/color-pixel-art-classic1x.jpg)
![Solitaire Daily Challenge](https://games.phoneky.com/pics/solitaire-daily-challenge1x.jpg)
![PICO-8 Shader](https://games.phoneky.com/pics/pico8quotshaderquot1x.png)
![Get in Santa's Pants 2](https://games.phoneky.com/pics/getinsantaspants21x.png)
![Clever Pixel - LOWREZJAM 2020](https://games.phoneky.com/pics/cleverpixellowrezjam20201x.png)
![Pixel Session Vol.1 Is Out](https://games.phoneky.com/pics/pixelsessionvol1isout1x.png)
![Pixel Cat Mahjong](https://games.phoneky.com/pics/pixel-cat-mahjong1x.jpg)
![Pixel Soldier Memory](https://games.phoneky.com/pics/pixel-soldier-memory1x.jpg)
![Pixel War](https://games.phoneky.com/pics/pixel-war1x.jpg)
![Pixel Artist](https://games.phoneky.com/pics/pixel-artist1x.jpg)
![Pixel Block 3D](https://games.phoneky.com/pics/pixel-block-3d1x.jpg)
![Pixel Bubbleman.io](https://games.phoneky.com/pics/pixel-bubblemanio1x.jpg)
![Zen-Garden Mowerman](https://games.phoneky.com/pics/zengardenmowerman1x.png)
![Invader Maker](https://games.phoneky.com/pics/invadermaker1x.png)
![Robbo](https://games.phoneky.com/pics/robbo1x.png)
![Totally Accurate Holiday Bowling](https://games.phoneky.com/pics/totallyaccurateholidaybowling1x.png)
![Bumble Bots Low Rez](https://games.phoneky.com/pics/bumblebotslowrez1x.png)
![Rick and Morty](https://games.phoneky.com/pics/rick-and-morty1x.jpg)
![Real Love Tester](https://games.phoneky.com/pics/real-love-tester1x.jpg)
![Rage Road](https://games.phoneky.com/pics/rage-road1x.jpg)
![Pattern Puzzle](https://games.phoneky.com/pics/pattern-puzzle1x.jpg)
![Dodge Hero](https://games.phoneky.com/pics/dodge-hero1x.jpg)
![Crypto Catch](https://games.phoneky.com/pics/crypto-catch1x.jpg)
![Food Roll](https://games.phoneky.com/pics/food-roll1x.jpg)
![Match 20 Challenge](https://games.phoneky.com/pics/match-20-challenge1x.jpg)
![Desert Road (generated animation)](https://games.phoneky.com/pics/desertroadgeneratedanimation1x.png)
![CluePix](https://games.phoneky.com/pics/cluepix1x.png)
![Mini Clash War Z](https://games.phoneky.com/pics/mini-clash-war-z1x.jpg)
![Storm Tower Defense - Idle Pixel War](https://games.phoneky.com/pics/storm-tower-defense-idle-pixel-war1x.jpg)
![Flip Space Love Adventure](https://games.phoneky.com/pics/flip-space-love-adventure1x.jpg)
![Boomerang Snipe 3D](https://games.phoneky.com/pics/boomerang-snipe-3d1x.jpg)
![Dice Pixel Stealer 3D](https://games.phoneky.com/pics/dice-pixel-stealer-3d1x.jpg)
![Porklike](https://games.phoneky.com/pics/porklike1x.png)
![Space Frenzy](https://games.phoneky.com/pics/spacefrenzy1x.jpg)
![Flags For Friends](https://games.phoneky.com/pics/flagsforfriends1x.png)
![BulletHeck 2](https://games.phoneky.com/pics/bulletheck21x.png)
![You Only Tap Once](https://games.phoneky.com/pics/youonlytaponce1x.png)
![Knock Em All](https://games.phoneky.com/pics/knock-em-all-game1x.jpg)
![Launch Up](https://games.phoneky.com/pics/launchup1x.jpg)
Convolution shader tests! (full-screen AA counting every pixel)
I was reading up on Bit Arrays to learn more secret bitwise knowledge, and stumbled onto a very clever way to count bits, via Hamming weights and a magic multiplication number. Short story is that this led to efficient fullscreen Anti-Aliasing for 1-bit screen data (colors 0 and 1 only).
Other convolution shaders are easily doable with similar techniques. This one takes every pixel and adds weighted amounts of the neighbors in this way: