Commit graph

486 commits

Author SHA1 Message Date
myT
85583acc9c dynamic lights apply to even more surfaces and have a nicer fall-off
- ditched vertex colors (not wanted) and alpha tests (not needed) in the shaders
- using a Bezier fall-off to get much softer edges
- added no-depth-write transparent surfaces support by adjusting the depth test
- multiplying the diffuse texture's color by its alpha in non-opaque passes
- fixed triangle rejection based on cull type and normal direction
- reflecting normals in shaders to support two-sided surfaces
- rejecting surfaces with no diffuse stage or bad blend states as early as possible
- liquids get lit weaker than other surfaces
2020-02-21 08:26:12 +01:00
myT
8ef496d22b reverting to old code for .tga image decoding, but with tweaks and fixes
the problem is that stb_image can and will allocate much more than it needs to
e.g. for a 2048x2048 BGR image:
it allocates an unnecessary intermediate 12 MB buffer to decode the image
instead of decoding it directly into the final 16 MB RGBA buffer

the old CNQ3 code didn't decode greyscale properly because of a missing macro call
it also didn't range-check memory accesses at all
2020-02-18 04:42:28 +01:00
myT
8a1d1c539b Escape down in cgame triggers CG_EVENT_HANDLING again instead of CG_KEY_EVENT
with that, CPMA demo playback and /protect work as intended again
2020-02-09 04:25:31 +01:00
myT
ca9757082f r_colorMipLevels disables MSAA when centroid sampling would be used
this is because it would draw (parts of) geometric edges with different colors and that makes visual inspections annoying
also, final MSAA sample counts are always reported by GL3 and GL2 now
2020-02-05 03:43:19 +01:00
myT
c72c8d5ad7 fixed r_fastsky handling in the GL3 renderer back-end 2020-01-19 22:38:35 +01:00
myT
01ce4063b5 added r_lightmapGreyscale
thanks to Jakub 'kubaxvx' Matraszek for his contribution
2020-01-12 23:03:54 +01:00
myT
e91f6e1c08 re-added r_textureMode to keep GL_NEAREST compatibility 2020-01-12 23:03:41 +01:00
myT
f36392c128 fixed r_lightmap affecting non-opaque surfaces 2020-01-09 23:09:39 +01:00
myT
9366ee5130 fixed r_picmip incorrectly applying to external lightmap atlases 2020-01-07 22:54:48 +01:00
myT
7d526ba6fc added FreeBSD support 2020-01-06 01:04:16 +01:00
myT
b2445488a4 partial D3D11 init and shutdown for OBS' benefit
- OBS' game capture plug-in can't handle swap chains changing while capture is active
- loading a map and disconnecting will no longer break the capture
- vid_restart will still break the capture
2019-12-26 16:30:07 +01:00
myT
e16804a0cb fixed A2C by making sure we use the absolute values of the derivatives 2019-12-26 16:26:12 +01:00
myT
9cb02a32bf searching for valid sample counts for MSAA in GL2 and GL3 instead of failing 2019-12-26 16:24:22 +01:00
myT
a89a2e3ead MSAA centroid interpolation mode for GL3 and D3D11 to prevent artifacts
this helps mostly to avoid lightmap tile leaks with MSAA
2019-12-26 16:20:41 +01:00
myT
4968bfca6d crash and drawing fixes for r_shownormals, r_showtris and r_debugSurface
- preventing crashes and drops with r_shownormals
- fixed the colors of r_showtris, r_shownormals and r_debugSurface
- simplified the overflow macro
2019-12-26 16:16:30 +01:00
myT
554d80ba64 mentioned the r_dynamiclight 1 r_lightmap 1 fix in the changelog 2019-11-12 04:32:58 +01:00
myT
0cbfe60d86 fixed hyperspace rendering 2019-11-12 04:23:49 +01:00
myT
cb0ef3aab8 fixed OpenGL version checks and FBO support checks 2019-11-12 04:22:36 +01:00
myT
2dcddc87eb always disabling the FPS limiter after drop errors 2019-11-12 04:19:31 +01:00
myT
c024cdcdc9 fixed a crash due to lack of memory for the sound system 2019-09-25 05:59:17 +02:00
myT
f674e9faf1 fixed a typo in the premake script 2019-09-25 05:36:45 +02:00
myT
7939488266 fixed incorrect state bits for shaders when loading a map with no lighting 2019-09-25 05:35:45 +02:00
myT
0087c2bf14 fixed fog-only shaders being recognized as sky shaders 2019-09-25 05:34:22 +02:00
myT
8ee79c7b9e added r_rtColorFormat to select the color format for render targets
fixed FindBestAvailableAA not testing the depth/stencil format
2019-09-25 05:31:55 +02:00
myT
c5192d49b7 using the roundss SSE4.1 instruction for inlining floor and ceil syscalls when possible
fixed sharedTraps_t listing syscalls that were not actually at the same index for all 3 VMs
2019-09-25 05:29:36 +02:00
myT
1115cb39b0 added pattern matching filtering to /modellist /skinlist /imagelist /shaderlist 2019-09-25 05:29:13 +02:00
myT
db4fb31658 added OpenGL 3.2 and Direct3D 11 renderer back-ends 2019-09-25 05:25:59 +02:00
myT
6f3908ceaa completely removed flare support 2019-09-25 05:21:01 +02:00
myT
837073be62 removed bg_public.h 2019-09-25 05:15:14 +02:00
myT
b406564962 added copyright notices to important new files 2019-09-25 05:14:58 +02:00
myT
983b53cbbb SSE2 instruction set support is now required 2019-09-25 05:14:36 +02:00
myT
39af360fdc removed FreeType and the R_REGISTERFONT syscalls 2019-09-25 05:14:07 +02:00
myT
c44b13ad90 when faces have short normals, we compute new unit-length normals 2019-09-25 05:13:39 +02:00
myT
3ae1abd69e removed dead code (NEWLINE macro) 2019-09-25 05:12:28 +02:00
myT
2d806401eb setting a cvar back to its default frees the latched string 2019-09-25 05:12:05 +02:00
myT
30c8990d6b fixed sdl_UpdateMonitorIndexFromWindow
made r_monitor 0-based on Linux
the concept of primary monitor isn't universal on Linux
2019-09-25 05:11:01 +02:00
myT
5e4d41df8e 1.51 release 2019-03-31 01:05:03 +01:00
myT
baa6eb2cc4 added .shader to the pure client file read exception list 2019-03-29 23:34:37 +01:00
myT
08b5d6bf57 r_lodCurveError is now archived and no longer cheat-protected
the new default also looks a lot less terrible
2019-03-28 22:10:22 +01:00
myT
e5e9bd8d28 fixed shader stage collapsing happening in cases where it shouldn't 2019-03-19 17:50:32 +01:00
myT
afb9b725e9 fixed lightmap texture coordinates in all cases 2019-03-19 17:47:19 +01:00
myT
b089166978 now showing the cvar's current value in the help panel 2019-02-21 17:15:55 +01:00
myT
c75caeb98e added control/shift + left/right arrow field navigation 2019-02-21 17:14:45 +01:00
myT
b3456d0a10 added the ctrl-i and ctrl-d console shortcuts 2019-02-21 17:11:29 +01:00
myT
3305c6f515 improved multi-monitor support
- /monitorlist
- the monitor list gets updated during video restarts and by /monitorlist
- Linux > r_monitor is now 0-based and monitors are sorted top-to-bottom, left-to-right
- Windows > the Windows + shift + left/right arrow key shortcuts should be ok to use
2019-02-20 20:52:34 +01:00
myT
e42c05dfc8 removed the unused alt-tab blocking code for Windows 2019-02-19 19:43:22 +01:00
myT
51809f8276 fixed incorrect LPARAM type casts in the WM_MOVE handler (the coordinates are signed) 2019-02-19 18:51:44 +01:00
myT
7a83c0d6c4 fixed developer warnings for image reuse with mixed settings 2019-02-19 18:40:03 +01:00
myT
26ccc528d1 map download improvements
- numeric addresses as fallbacks
- non-blocking connections
- writing to $(fs_homepath)/baseq3 instead of $(fs_basepath)/baseq3
- only using valid (TCP/stream) addresses from getaddrinfo
- setting send time-outs
- ensuring the destination directory exists
- the renderer no longer messes up the RNG seed
2019-02-14 04:22:45 +01:00
myT
b909f05195 bundling lightmap tiles into texture atlases to improve batching 2018-12-08 23:36:27 +01:00