Alibek Omarov
4d802d8901
ref: gl: convert to usage of ref_client_t to get client time
10 months ago
Alibek Omarov
6a4bf4965f
ref: gl: acquire engine pointers
10 months ago
mittorn
a488f79852
ref_gl: workaround freezes on adreno with vbo on dlighted decals
11 months ago
Alibek Omarov
b290046503
ref: gl: remove hidden parm -gl-allow-vbo-dontuse needed to activate VBO renderer
11 months ago
Dmitry Toroshchin
e8409cee8b
ref_gl: vbo: do not do zero-length drawcalls (fix glError on vivante)
11 months ago
mittorn
1d4d355b38
ref_gl: vbo: fix binding garbade texture after changelevel, fix wpoly counter
11 months ago
mittorn
dfe12535a5
ref_gl: vbo: disable R_TextureRandomTiling implementation until will be fixed
11 months ago
mittorn
74946100f1
ref_gl: fix not restoring static lightmap after decals
11 months ago
mittorn
9a1717915c
ref_gl: vbo: apply a1batross's patch for uint index switch
11 months ago
mittorn
3691eb6e48
ref_gl: vbo: fix incorrect lightmap index, optimize loading maps with very big lightmap count, fix clouds drawing after VBO
11 months ago
mittorn
3bb7471fd3
ref_gl: vbo: fix lightmap0 processing, remove ilightmap
11 months ago
mittorn
74e09ddb12
ref_gl: change state management in vbo renderer
11 months ago
mittorn
6b73d056b2
ref_gl: vbo dlights refactiring
11 months ago
mittorn
3e7847551a
ref_gl: add ability to skip uploading unused data (disabled)
11 months ago
mittorn
91d92935fa
ref_gl: try avoid gpu locking on dlights in vbo renderer
11 months ago
mittorn
eff033298a
ref_gl: disable singlepass detail renderer, use correct fog color multipliers in VBO
11 months ago
mittorn
3a8f4961bc
ref_gl: fix rarely broken texturechain on some big maps
11 months ago
mittorn
b81f94518a
ref_gl: fix out-by-one when all lightstyles are used. Also fix broken in this case in vbo after previous fix
11 months ago
Alibek Omarov
a7e84230c3
ref: gl: use world version to enable large lightmaps for BSP2 automatically
11 months ago
Alibek Omarov
21797f9ac8
ref: gl: fix solor to color
11 months ago
mittorn
c800b34cd4
ref_api: add R_Flush method
11 months ago
Alibek Omarov
26d229c8ca
engine, ref: RefAPI 5. Simplify remap calls
11 months ago
Alibek Omarov
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
11 months ago
Alibek Omarov
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
11 months ago
Alibek Omarov
255773b4de
ref: gl: remove useless calls to glGetString if we're running under GL4ES
11 months ago
Alibek Omarov
5b73a788da
ref: gl: disable unused variable warning for GL functions defintions
11 months ago
Alibek Omarov
08dbfc45d3
ref: gl: refactor getting edge position, texture and lightmap coords
11 months ago
Andrey Akhmichin
16cc0ca0fe
ref: gl: gl2_shim: replace "malloc.h" header with ALLOCA_H macro.
12 months ago
Alibek Omarov
e481e1d73e
ref: gl: enable GL waves with r_ripple
1 year ago
Alibek Omarov
6c0eed1b2b
ref: gl: allow viewing water textures in their full glory with enabled r_ripple 2
1 year ago
Alibek Omarov
a6c67fdf9f
ref: gl: upload only part of texture we're using, i.e. 64x64 for 64x64, 128x128 for 128x128
1 year ago
Alibek Omarov
46889ed453
ref: gl: libc rand() does better job at randomizing
1 year ago
Alibek Omarov
882fcc152c
ref: gl: always scale down texture to 64x64, like sw.dll does
1 year ago
Alibek Omarov
a6af32dafd
ref: gl: connect ripply water to others parts of renderer (init, reset, animation and rendering)
1 year ago
Alibek Omarov
d6dfb83be7
ref: gl: ripply water implementation (bugfixed version from my Quake-2 patches)
1 year ago
mittorn
f2c080e736
gl2shim: fix broken matrix update when fog attribute enabled (32 bit shift overflow)
1 year ago
Alibek Omarov
ea55e78855
ref: _inline -> static
1 year ago
Alibek Omarov
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
1 year ago
mittorn
bf5fd40d64
gl2shim: workaround empty rgb5/rgb8 textures
1 year ago
mittorn
6bc613bdb4
ref_gl: force gles2 on non-nanogl until we support gles1 directly
1 year ago
mittorn
a982562658
ref_gl: Fix missing DebugOutput functions on GLES
1 year ago
Alibek Omarov
34d7664342
ref: gl: disable TGA flip for detail textures, GoldSrc ignores it, so we will too
1 year ago
Alibek Omarov
b0a79df86f
ref: change r_traceglow to 0, as GoldSrc does
1 year ago
Alibek Omarov
3251b68df5
ref: gl: more simple search of GL func with alternative name (EXT, OES suffixes or no suffix)
1 year ago
mittorn
c1d1aa6787
ref_gl: rewrite ARB workaround to check EXT/OES names, notify user that function found with different name
1 year ago
Alibek Omarov
b76a75d6b4
ref: gl: respect gl_texture_nearest value for skyboxes
1 year ago
Ivan Avdeev
a251600c8a
engine: common: imagelib: add KTX2 support ( #1455 )
...
* engine: common: imagelib: add KTX2 support
Adds basic KTX2 support for a few compressed formats. KTX2 essentially
is a Vulkan-centric texture format that supports literally hundreds of
pixel formats.
For now only support for these is added:
- `VK_FORMAT_BC4_UNORM_BLOCK`
- `VK_FORMAT_BC4_SNORM_BLOCK`
- `VK_FORMAT_BC5_UNORM_BLOCK`
- `VK_FORMAT_BC5_SNORM_BLOCK`
- `VK_FORMAT_BC6H_UFLOAT_BLOCK`
- `VK_FORMAT_BC6H_SFLOAT_BLOCK`
- `VK_FORMAT_BC7_UNORM_BLOCK`
- `VK_FORMAT_BC7_SRGB_BLOCK`
Adding more formats is relatively straightforward:
- Copy format definition from `VkFormat` enum in `vulkan_core.h`
- Add a new definition into `pixformat_t` enum.
- Add format size calculation into `Image_ComputeSize()`
While we're at it, also adds a few new formats to DDS:
- BC4_UNORM -- PF_BC4_UNSIGNED
- BC4_SNORM -- PF_BC4_SIGNED
- BC5_UNORM -- PF_BC5_UNSIGNED
- BC5_SNORM -- PF_BC5_SIGNED
- BC7 is expanded into BC7_UNORM and BC7_SRGB
ref_gl and ref_soft code is updated where it made sense. But not tested
really. Support for these formats has been tested with ref_vk.
* address spaces-vs-parentheses formatting where noticed
* parenthesize sizeofs
* move ktx2.h to imagelib as img_ktx2.h; massage it a bit
* use SetBits() instead of |=
* remove stale TODO comments
1 year ago
mittorn
a2b992d865
ref_gl: fix codestyle
1 year ago
mittorn
ddf3f2ffdb
gl2shim: Allow drawing huge QUADS sequences by splitting drawcalls on overflow
1 year ago
Alibek Omarov
2454e87509
ref_gl: gl2shim: refactoring, add missing spaces in parentheses and ternary ops, remove singleline multiple assignments, use bitset macros
1 year ago