logoalt Hacker News

nsxwolfyesterday at 3:37 PM2 repliesview on HN

What's that overall filter that covers the view? Is it supposed to look like a late 80s passive matrix color LCD screen?

Edit: Thanks for the downvote, guess I shouldn't have paid any attention to this post at all?


Replies

macintuxyesterday at 8:05 PM

Worth noting that it's easy (and probably fairly frequent) to click the wrong arrow, especially on a phone screen. I've started double-checking the "unvote" vs "undown" link that appears afterwards to make sure I hit the right one.

show 1 reply
laurentlbtoday at 12:21 AM

There's no specific filter. The main effect is blending the previous frame with the current frame. When blending, I modify the coordinates and add some noise. This makes the graphics look less basic and it creates this noisy trail when things move.

The source code is here: https://github.com/laurentlb/shmup8/blob/main/src/shaders/sc...

Blending is on lines 241, 242.

I didn't try to get a specific 80s look, I just played with formulas.