larsbrinkhoff / terminal-simulator

Simulation of VT52 and VT100 terminal hardware.
GNU General Public License v3.0
113 stars 17 forks source link

Scanline, CRT shader #11

Closed larsbrinkhoff closed 3 years ago

larsbrinkhoff commented 3 years ago

Write an OpenGL shader for a fancier display appearance.

larsbrinkhoff commented 3 years ago

Maybe take some ques from cool-retro-term? See ShaderTerminal.qml.

larsbrinkhoff commented 3 years ago

Information about using shaders with SDL:

larsbrinkhoff commented 3 years ago

https://learnopengl.com/Advanced-Lighting/Bloom

larsbrinkhoff commented 3 years ago

https://github.com/Kobe46/Shaderlay/blob/master/shaders/crt-pi-curvature-vertical.glsl

larsbrinkhoff commented 3 years ago

This was slammed as being too glowy. glow

larsbrinkhoff commented 3 years ago

Toned it down a bit and adjusted for a display brightness around 75%
This was rendered at high resolution in full screen mode. glow2

larsbrinkhoff commented 3 years ago

Glitch pictures are fun too. curve

larsbrinkhoff commented 3 years ago

zork

larsbrinkhoff commented 3 years ago

set-upa set-upb vt100-top

kidmirage commented 3 years ago

I'm loving the CRT curvature look!

larsbrinkhoff commented 3 years ago

The 9x9 Gaussian blur for a soft glow around the text is too slow. Rather than waiting to implement a faster algorithm, I'll drop that and merge this now.