yquake2remaster/stuff
Ricardo Garcia 930872b358 Add resolution scaling to Vulkan renderer
This commit adds a new cvar called vk_pixel_size that represents how big
pixels should look in the rendered world in order to simulate lower
screen resolutions. With its default value of 1 everything looks normal,
but with bigger sizes (e.g. 4) the rendered world starts to look
"pixelated" due to pixels appearing bigger.

To implement the effect, the viewport and scissor are modified when
drawing the world so the rendering results cover a smaller area in the
top-left corner of the image.

The post-processing fragment shader is used to scale the image back to
the swapchain size before drawing UI elements on top of it.

The UI is not affected by this change, so the existing UI scaling
options continue to work as before with no changes, adding some
flexibility to the mix.

Related to feature request #588.
2020-12-24 10:14:39 +01:00
..
cmake/modules Some modernizations to cmake. 2018-08-14 15:29:41 +02:00
icon Quake2.ico: Recreated to have the same margins as the source PNG 2015-11-18 18:59:53 +01:00
misc Add a Dockerfile, submitted by @Opvolger in #498. 2020-01-21 17:26:29 +01:00
models/crosshair added 3d crosshair model 2016-04-04 23:53:16 +03:00
osx quake2-appbundle.zip: Update quake2.icns to the new icon 2015-11-18 19:41:03 +01:00
shaders Add resolution scaling to Vulkan renderer 2020-12-24 10:14:39 +01:00
cdripper.sh Use set -eu. 2012-04-30 09:03:59 +02:00
quake2-start.sh Redo "Simplify usage of $GSC_PID.", which was accidently undone. 2012-04-30 12:51:36 +02:00
shaders.sh Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
yq2.cfg Change the default screenshot binding to JPEG with Quality 90. 2017-04-10 19:22:23 +02:00