Commit graph

18 commits

Author SHA1 Message Date
myT
f484ee94a7 fixed alpha to coverage for the greater than 0 alpha test 2020-05-09 17:11:47 +02:00
myT
1994475982 renamed r_noiseScale to r_ditherStrength for consistency 2020-04-28 17:04:43 +02:00
myT
718b966414 depth fade fixes and improvements
- renamed r_softSprites to r_depthFade
  the term's more descriptive and it helps that UE4 uses it
- fixed the GL3 fragment shader halving the depth bias
- fixed the D3D11 pixel shader only fetching depth sample 0
  not fixed for GL3 yet, see the code comments for that
- added support for more blend states
- added the q3map_cnq3_depthFade general shader directive
2020-04-26 16:32:51 +02:00
myT
4e9d0ad709 fixed the soft sprite status console print always saying it's "ON" with GL3 and D3D11 2020-04-05 06:40:34 +02:00
myT
546296e6ef fixed r_showsky and cleaned up the related GAL code 2020-04-02 04:50:12 +02:00
myT
24e6cd9277 GL3 can now print shader compile/link warnings even when successful with r_verbose 1 2020-04-02 04:40:12 +02:00
myT
e013893c1b fixed GL3 generic program link issue due to variable type qualifier mismatches (centroid vs not)
this problem proved fatal on some Intel drivers
2020-04-02 04:37:03 +02:00
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
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
e91f6e1c08 re-added r_textureMode to keep GL_NEAREST compatibility 2020-01-12 23:03:41 +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
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
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
db4fb31658 added OpenGL 3.2 and Direct3D 11 renderer back-ends 2019-09-25 05:25:59 +02:00