mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-21 20:21:09 +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. |
||
---|---|---|
.. | ||
010_index.md | ||
020_installation.md | ||
030_configuration.md | ||
040_cvarlist.md | ||
050_commands.md | ||
060_multiplayer.md | ||
070_packaging.md | ||
080_contributing.md | ||
090_filelists.md |