yquake2remaster/stuff/shaders
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
..
basic.frag Fix vk_validation warnings 2020-12-12 14:45:04 +01:00
basic.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
basic_color_quad.frag Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
basic_color_quad.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
beam.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
d_light.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
model.frag Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
model.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
nullmodel.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
particle.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
point_particle.frag Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
point_particle.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
polygon.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
polygon_lmap.frag Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
polygon_lmap.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
polygon_warp.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
postprocess.frag Fix vk_validation warnings 2020-12-12 14:45:04 +01:00
postprocess.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
shadows.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
skybox.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
sprite.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00
world_warp.frag Add resolution scaling to Vulkan renderer 2020-12-24 10:14:39 +01:00
world_warp.vert Rebuild shaders with glslang-tools 7.12.3352-10 2020-12-12 14:45:04 +01:00