mittorn
6c77608c34
ref_gl: implement color-modulate overbrigths with gl_vbo using texture GL_COMBINE
9 months ago
Alibek Omarov
600d574376
ref: gl: make use of new TF_ALLOW_NEAREST_TOGGLE flag
10 months ago
Alibek Omarov
e274c62cfc
ref: gl: use TextureFilteringEnabled to decide whether texture will have nearest filtering or linear
10 months ago
Alibek Omarov
5696c9c96a
ref: gl: remove useless R_CountDynamicLights function
10 months ago
Alibek Omarov
18436a70eb
ref: gl: support overbrights, change the gamma applying order closer to the original renderer
11 months ago
Alibek Omarov
8298053e6a
ref: gl: don't depend on lightgamma in recursive light point
11 months ago
Alibek Omarov
64f92003fa
ref: gl: adapt studio lightning to new gamma
...
* more accurate SHADE_LAMBERT value (extracted from v_lambert1 global variable)
11 months ago
Alibek Omarov
a0c31120d9
ref: add R_GammaChanged function that engine calls on every gamma change
11 months ago
Alibek Omarov
dc1d65f621
ref: gl: only draw MOVETYPE_FOLLOW studio model if it's parent is visible
11 months ago
Alibek Omarov
b946c8455d
ref: gl: return NULL in GetEntityByIndex and ModelHandle just in case
11 months ago
Alibek Omarov
0132eb6e44
ref: gl: restore usage of FWORLD_CUSTOM_SKYBOX flag, do direct checks instead of PARM check, remove unused tr.fCustomSkybox
11 months ago
Alibek Omarov
537237ef62
ref: gl: remove usage of PARM_VIEWENT_INDEX and PARM_PLAYER_INDEX
11 months ago
Alibek Omarov
6a4bf4965f
ref: gl: acquire engine pointers
11 months ago
mittorn
eff033298a
ref_gl: disable singlepass detail renderer, use correct fog color multipliers in VBO
12 months ago
Alibek Omarov
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
1 year ago
Alibek Omarov
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
1 year ago
Alibek Omarov
08dbfc45d3
ref: gl: refactor getting edge position, texture and lightmap coords
1 year ago
Alibek Omarov
d6dfb83be7
ref: gl: ripply water implementation (bugfixed version from my Quake-2 patches)
1 year ago
Alibek Omarov
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
1 year ago
mittorn
d254bac16b
ref_gl: integrate gl2shim extensions
1 year ago
mittorn
2f321b1471
ref_gl: implement minimum inclusion version for GL extensions, implement quering extensions on core profile
1 year ago
mittorn
676526a518
ref_gl: fix creating core context, support core in gl2shim by creating dumb array object
1 year ago
mittorn
7e0bd86b65
ref_gl: allow enabling XASH_GLES without wrapper, add ref_gles3compat, wrap gles functions in gl2wrap when XASH_GLES enabled
1 year ago
mittorn
a9ea3976a7
ref_gl: introduce gl2_shim based on vgl_shim for future limited core/gles context support (SLOW, still needs ffp for matrix operations)
1 year ago
Alibek Omarov
de19d78571
ref: fix late registration of studio cvars (thanks, @mittorn )
1 year ago
Alibek Omarov
a738b2a50b
ref: restore missing PARM_TEX_MEMORY RenderAPI parameter
1 year ago
Alibek Omarov
22f60d50ac
ref: gl: only enable/disable texture units in fixed-function pipeline rendering, in our case, low TMUs
1 year ago
Alibek Omarov
3a57f26351
ref: gl: move ref_gl cvars to static allocation
2 years ago
Alibek Omarov
5d7d5319fd
engine: move ref cvars to static allocation
2 years ago
Alibek Omarov
1d62df0e2d
ref: gl: turn magic skybox numbers into defined macros
2 years ago
Alibek Omarov
a3ab04e0cb
ref: gl: track current bound texture index in gl_textures array in separate glState field
2 years ago
Alibek Omarov
79624fa400
ref: gl: cleanup unused functions
2 years ago
Alibek Omarov
55bf0e8a53
ref: gl: adapt to RefAPI 4 changes
2 years ago
fgsfds
5a3e3b3977
ref: gl: add immediate mode shim for psvita
2 years ago
Alibek Omarov
61c142e2db
ref: move renderers into ref subdirectory
2 years ago
SNMetamorph
29ad3de78a
ref_gl: added support for GL_ARB_texture_compression_bptc extension
3 years ago
Alibek Omarov
e0efe0aa23
engine: remove emboss filter. There seems no real use for it.
3 years ago
Alibek Omarov
d7db48ce4b
engine, ref: create shared cvars list, register them at engine side, make a generic macro to declare, define and get all pointers at ref side
3 years ago
Alibek Omarov
ecddae8ee6
ref_gl, ref_soft: increase MAX_TEXTURES limit by 8192
3 years ago
SNMetamorph
6c9321e50c
ref_gl: added multisample textures support
3 years ago
Alibek Omarov
7bcfce5a7a
ref_gl: use GCC provided offsetof implementation
3 years ago
Alibek Omarov
86be161677
ref_gl: add missing HACKS_RELATED_HLMODS define, lost after renderer split
4 years ago
Alibek Omarov
9313f7e80e
engine: replace pool pointer by pool handle
4 years ago
Alibek Omarov
45334064b6
ref_gl: remove detail textures list generation leftovers
4 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
5 years ago
Alibek Omarov
3c3d5d472e
ref_gl: bring back glDrawRangeElements support
5 years ago
Alibek Omarov
aa6674b032
engine: support compiling with gcc3
5 years ago
Alibek Omarov
5e8373fa46
engine: slightly update RefAPI
5 years ago
Alibek Omarov
dc207a449c
engine: fix -Werror=strict-prototypes
5 years ago