TheAssemblyArmada / Vanilla-Conquer

Vanilla Conquer provides clean, cross-platform builds of the C&C Remastered Collection and the standalone legacy games.
Other
351 stars 53 forks source link

Support for (CRT) shaders #511

Open mvdhout1992 opened 3 years ago

mvdhout1992 commented 3 years ago

The original game was designed for CRT. There are a bunch of very nice CRT shaders out there, including PC CRT ones.

FunkyFr3sh did some experiments for cnc-ddraw. Here's his shaders package: Lhttps://github.com/CnCNet/cnc-ddraw/issues/55 Here's a list of libretro (retroarch) shaders: https://github.com/libretro/glsl-shaders

Should also investigate stacking multiple shaders, e.g. one upscale shader and a crt shader.

hifi commented 3 years ago

This needs #320 to be cleaned up, GL3 support added.

mvdhout1992 commented 3 years ago

Does this require SDL2 hardware rendering too?

hifi commented 3 years ago

What do you mean? GLSL is on top of OpenGL so yes, it's accelerated by the GPU unless your GL implementation is software emulated.

You can implement software scaling filters as well but it will be dog slow.

mvdhout1992 commented 3 years ago

Doesn't vanilla-conquer currently use software rendering?

hifi commented 3 years ago

Well adding shaders don't really change that. We software render a 640x400 image and then post process it on the the hardware with shaders like cnc-ddraw does.