mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
add vk_retexturing force flag
This commit is contained in:
parent
1a4d495028
commit
539fea96bb
2 changed files with 12 additions and 3 deletions
|
@ -334,6 +334,13 @@ it's `+set busywait 0` (setting the `busywait` cvar) and `-portable`
|
|||
* `1` - only errors and warnings
|
||||
* `2` - best-practices validation
|
||||
|
||||
* **vk_retexturing**: Apply retexturing:
|
||||
* `0` - dont use retexturing logic and dont load the high resolution
|
||||
textures,
|
||||
* `1` - load the high resolution textures if pack is installed.
|
||||
* `2` - try to load the pack or scale up all 8bit textures if pack is
|
||||
not installed.
|
||||
|
||||
* **vk_strings**: Print some basic Vulkan/GPU information.
|
||||
|
||||
* **vk_mem**: Print dynamic vertex/index/uniform/triangle fan buffer
|
||||
|
|
|
@ -917,7 +917,8 @@ static uint32_t Vk_Upload8 (byte *data, int width, int height, imagetype_t type,
|
|||
}
|
||||
}
|
||||
|
||||
if (vk_retexturing->value)
|
||||
// optimize 8bit images only when we forced such logic
|
||||
if (vk_retexturing->value >= 2)
|
||||
{
|
||||
SmoothColorImage(trans, s, s >> 7);
|
||||
}
|
||||
|
@ -976,7 +977,8 @@ Vk_LoadPic(char *name, byte *pic, int width, int realwidth,
|
|||
|
||||
if (bits == 8)
|
||||
{
|
||||
if (vk_retexturing->value)
|
||||
// resize 8bit images only when we forced such logic
|
||||
if (vk_retexturing->value >= 2)
|
||||
{
|
||||
byte *image_converted = malloc(width * height * 4);
|
||||
scale2x(pic, image_converted, width, height);
|
||||
|
@ -1098,7 +1100,7 @@ Vk_LoadImage(char *name, const char* namewe, const char *ext, imagetype_t type,
|
|||
{
|
||||
image_t *image = NULL;
|
||||
|
||||
// with retexturing and not skin
|
||||
// with retexturing
|
||||
if (vk_retexturing->value)
|
||||
{
|
||||
image = Vk_LoadHiColorImage(name, namewe, ext, type, samplerType);
|
||||
|
|
Loading…
Reference in a new issue