mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-30 08:20:51 +00:00
930872b358
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. |
||
---|---|---|
.. | ||
cmake/modules | ||
icon | ||
misc | ||
models/crosshair | ||
osx | ||
shaders | ||
cdripper.sh | ||
quake2-start.sh | ||
shaders.sh | ||
yq2.cfg |