Scene with custom blend mode (difference/invert)

Here is my production code:

I wrote a difference shader (lines 12-41) that takes in an inputBuffer (my background) and an overlayBuffer (the logo and frame). Pass setup is on lines 54-146.

Here is the page: