vladislavbelov
143fdf551f
Moves glGetError under config to prevent a performance drop on some platforms.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3620
This was SVN commit r24986.
2021-03-02 21:24:34 +00:00
vladislavbelov
7ea57932c4
Small style fixes for framebuffer clears.
...
This was SVN commit r24985.
2021-03-02 21:21:08 +00:00
vladislavbelov
f175bc4f8d
Fixes big screenshots with water (reflection or refraction camera), adds big screenshot customization.
...
Commented By: Stan, wraitii
Differential Revision: https://code.wildfiregames.com/D3557
This was SVN commit r24891.
2021-02-12 21:20:07 +00:00
vladislavbelov
065b03a3db
Removes useless transparent pass before the water for lowest settings since the water is opaque there.
...
This was SVN commit r24756.
2021-01-21 22:38:11 +00:00
vladislavbelov
4a69e9117e
Removes usages of GetRenderPath to checking for support of shaders.
...
This was SVN commit r24652.
2021-01-16 23:18:56 +00:00
vladislavbelov
78d4dd0109
Removes useless option to show sky
...
Differential Revision: https://code.wildfiregames.com/D3382
This was SVN commit r24651.
2021-01-16 21:16:31 +00:00
vladislavbelov
a9c27b412b
Removes CPU lighting after no FFP
...
Comments By: Stan
Differential Revision: https://code.wildfiregames.com/D3346
This was SVN commit r24599.
2021-01-13 21:03:55 +00:00
vladislavbelov
e5cbd3decd
Removes unused GL texture properties after removed FFP.
...
This was SVN commit r24577.
2021-01-12 23:18:29 +00:00
vladislavbelov
f1a3b446f7
Removes the unused terrain rendering function after removed FFP.
...
This was SVN commit r24576.
2021-01-12 23:14:08 +00:00
wraitii
dd0b56c8aa
Replace DISCARD macro with ignore_result template.
...
Fixes eb7940b418 .
As reported by Vladislav, there is possibly confusion on what exactly is
being ignored when there are multiple statements after DISCARD. Explicit
wrapping avoids that.
Differential Revision: https://code.wildfiregames.com/D3206
This was SVN commit r24397.
2020-12-15 09:03:44 +00:00
Stan
d2075bed5d
Fix graphics issue with old AMD cards.
...
Reviewed by: @vladislavbelov
https://upload.jabberfr.org/hUkR3nTdfhbhHI92/0b5c64c3-136c-4744-a4ca-a70222a3cfaf.png
This was SVN commit r24292.
2020-11-29 16:26:28 +00:00
wraitii
eb7940b418
Silence warnings about unused result.
...
Introduce a DISCARD macro to ignore the warn_unused_result attribute
used by Spidermonkey, and reuse it elsewhere.
Differential Revision: https://code.wildfiregames.com/D3147
This was SVN commit r24261.
2020-11-26 13:58:59 +00:00
vladislavbelov
9937116f2b
Adds MSAA to anti-aliasing techniques.
...
Tested By: Freagarach, OptimusShepard, Stan
Differential Revision: https://code.wildfiregames.com/D2812
This was SVN commit r24188.
2020-11-15 20:07:48 +00:00
vladislavbelov
9669b5f1a9
Removes additional depth texture copying and reusing existing refraction depth.
...
Tested By: Stan, wraitii
Differential Revision: https://code.wildfiregames.com/D3084
This was SVN commit r24160.
2020-11-11 18:46:52 +00:00
vladislavbelov
4b52e87934
Adds wireframe mode to overlays and replace the private m_TerrainRenderMode usages by related getter.
...
This was SVN commit r24143.
2020-11-08 11:31:32 +00:00
vladislavbelov
c64f8824d7
Fixes wireframe mode for terrain, continuing remove fixed pipeline dependencies.
...
Commented By: Stan, wraitii
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3056
This was SVN commit r24125.
2020-11-04 15:52:26 +00:00
vladislavbelov
ff9a5fe8f9
Render waves for fancy water effects only if we have water on screen.
...
Waves were added in 9ce51f4357 .
This was SVN commit r24047.
2020-09-16 18:43:58 +00:00
vladislavbelov
00989a6560
Uses fixed-function pipeline functions only in FFP mode.
...
Differential Revision: https://code.wildfiregames.com/D2619
This was SVN commit r23481.
2020-02-05 14:00:52 +00:00
vladislavbelov
36883f2832
Renames RenderTerrain to RenderTerrainFixed to follow its implementation.
...
RenderTerrainShader was added in d295dacb9b .
This was SVN commit r23479.
2020-02-04 23:16:30 +00:00
vladislavbelov
b42ebe99f5
Fixes commented block introduced in ecc7d2913e.
...
Noticed By: Stan
This was SVN commit r23463.
2020-01-29 23:44:14 +00:00
vladislavbelov
ecc7d2913e
Moves GL error check after SwapBuffers to decrease a possible synchronization during rendering process.
...
Comments By: Stan, elexis
Differential Revision: https://code.wildfiregames.com/D2600
This was SVN commit r23462.
2020-01-29 22:03:44 +00:00
vladislavbelov
1750b0b34c
Fixes GLES mode builds on Mesa and running on Intel Iris drivers.
...
Patch By: linkmauve
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D2448
This was SVN commit r23410.
2020-01-17 21:13:51 +00:00
vladislavbelov
49415f8716
Splits debug display of frustums for an easier debugging of a culling and shadows
...
This was SVN commit r23395.
2020-01-14 23:51:29 +00:00
vladislavbelov
b6300eb417
Reorder rendering passes to decrease a possible driver synchronization
...
Hack inside the ShadowMap was added in b889826a3d and became outdated in
1866c2d3b7 .
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D2541
This was SVN commit r23370.
2020-01-11 15:25:05 +00:00
vladislavbelov
2fa18b1503
Replaces direct Camera member usage by appropriate method call (m_Orientation > GetOrientation()).
...
This was SVN commit r23234.
2019-12-14 12:56:47 +00:00
vladislavbelov
75d9c6293b
Adds projection type to CCamera to control usages of projection dependent properties.
...
Commented By: elexis
Differential Revision: https://code.wildfiregames.com/D2351
This was SVN commit r23036.
2019-10-03 18:51:40 +00:00
vladislavbelov
8f7729bfdb
Fixes values of clip planes in PostProcManager.
...
Reviewed By: wraitii
Commented By: elexis
Differential Revision: https://code.wildfiregames.com/D2196
This was SVN commit r22940.
2019-09-20 07:54:44 +00:00
wraitii
5c4d124d2a
Refactor renderer options.
...
This moves the renderer options into their own class to:@
- allow one to only include the rendering options, not the whole
renderer header, when one wants access to rendering options.
- centralise rendering changes and their side-effects.
- clean up code.
Tested by: historic_bruno, Freagarach
Commented by: historic_bruno
Differential Revision: https://code.wildfiregames.com/D1929
This was SVN commit r22610.
2019-08-04 08:28:30 +00:00
vladislavbelov
8babfe2330
Refactors camera projections - makes projection functions of camera more clear.
...
Reviewed By: elexis
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D2012
This was SVN commit r22404.
2019-06-26 22:54:05 +00:00
vladislavbelov
ec4d84c72f
Removes unused and obsolete LightingModel.
...
It was introduced in d295dacb9b as a way to control behavior of shaders.
Its usage in shaders was completely removed in 05008d190e (before that
in b7888aea52 ).
Reviewed By: elexis
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D2011
This was SVN commit r22403.
2019-06-26 22:30:23 +00:00
wraitii
01a8138780
Water GLSL shader improvements around reflections and whitespace fixes.
...
This improves refractions around entities close to the surface, such as
fishes, by handling depth better and by clipping the water plane a
little lower.
This uses the skybox for reflections when refractions are enabled but
reflections are disabled, making it possible to play with reflections
disabled without having super-ugly water (arguably a performance
improvement).
Differential Revision: https://code.wildfiregames.com/D359
This was SVN commit r22297.
2019-05-25 11:08:57 +00:00
elexis
4c73614955
In preparation of renaming and grouping main.cpp shutdown variables:
...
Declare the g_GameRestarted hack from 12f0720f31 in main.cpp, because it
is main.cpp and Game.cpp who provide it's value.
Move the comment so that the connotation becomes clear when reading
main.cpp.
Remove the extern declaration introduced to the Renderer in fb035d08e3
that became obsolete with ed7c66eb82 .
This was SVN commit r21816.
2018-05-08 09:24:16 +00:00
elexis
2c8b78ddaa
Option to disable fog effects.
...
Fixes #4626
Patch By: dp304
This was SVN commit r20584.
2017-12-04 15:54:24 +00:00
elexis
247bde356c
Reload water shaders too when changing shader settings.
...
Refs #4626
Patch By: dp304
This was SVN commit r20583.
2017-12-04 15:51:20 +00:00
wraitii
99d486c1d7
Allow models using alpha-blending (transparent models) to be silhouette casters.
...
This change ahead of D965, where fauna become silhouette casters, and
several fauna animals are transparent models.
Reviewed By: wraitii
Patch By: temple
This was SVN commit r20569.
2017-12-03 10:14:16 +00:00
vladislavbelov
71a5ebe1c9
Adds a missed initialisation in 7e239f38a3.
...
This was SVN commit r20382.
2017-10-30 19:32:16 +00:00
elexis
6f9bf55ac5
Change the shadow map quality without restarting the match.
...
Differential Revision: https://code.wildfiregames.com/D804
Refs #4351
Patch By: Vladislav
This was SVN commit r20011.
2017-08-21 01:10:56 +00:00
elexis
04f2209b50
Rename WaterUgly setting to WaterEffects in order to remove the invertedboolean workaround of the options page.
...
Differential Revision: https://code.wildfiregames.com/D815
Refs #3737
Tested By: Stan
This was SVN commit r20010.
2017-08-21 00:09:25 +00:00
fatherbushido
d5caf97185
Fix Valgrind complaints in CRenderer by properly intializing some members values introduced in ab30e0d4fb. Refs #3922 , #4492 . Patch by Sandarac. Reviewed by vladislavbelov.
...
Differential Revision: https://code.wildfiregames.com/D536
This was SVN commit r19800.
2017-06-18 14:52:54 +00:00
wraitii
6ee830068a
Print the name of OpenGL errors when they occur.
...
Patch by vladislavbelov
Differential Revision: https://code.wildfiregames.com/D313
This was SVN commit r19496.
2017-05-01 07:19:39 +00:00
wraitii
4523c50850
Fix a vertex shader data pielup in the actor editor. It was reloading the shaders far too often.
...
Patch by Echotangoecho.
Differential Revision: https://code.wildfiregames.com/D93
This was SVN commit r19346.
2017-03-25 07:44:31 +00:00
elexis
417c84870c
Actually remove trailing tabs from source/.
...
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
elexis
6149dd3841
Actually remove trailing whitespace for non-header files as well.
...
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
elexis
948d2a4635
Clear particle emitters when ending a game so they don't leak into new games. Patch by Vladislav, fixes #4111 .
...
This was SVN commit r18936.
2016-11-14 17:16:59 +00:00
wraitii
ead8436b3d
Improve water rendering, partly based on a patch by aeonios, including:
...
-increase the size of the refraction and reflection texture
-blur the refraction map depending on depth
Fixes #3781
This was SVN commit r18443.
2016-06-26 16:54:58 +00:00
wraitii
814cdd9524
Tie tangent generation with preferGLSL setting for convenience since that setting was not really useful. Fixes #2506 . Patch by fabio.
...
This was SVN commit r17325.
2015-11-29 15:44:22 +00:00
historic_bruno
b1c4e29ac8
Fixes inconsistencies in spelling of colour/color by preferring "color" (only wxWidgets remains with some API that requires "colour"), fixes #1029 .
...
NOTE: requires update-workspaces and may require correction of some
modded actors/scenarios
This was SVN commit r16438.
2015-03-15 23:59:48 +00:00
wraitii
143e199d45
Add a new function to update the water renderer textures when resizing the renderer window. Patch by pendingchaos.
...
This fixes #2692 though the same issue might appear in some other cases
(possibly Atlas) and those will have to be checked.
This was SVN commit r16315.
2015-02-10 19:41:29 +00:00
Ykkrosh
e02d7ad949
Automatically replace %hs/%ls with %s in CLogger format strings.
...
Everything is char* now, so we don't need to mess around with different
string types.
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs perl
-pi -e'1 while
s/(LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR).*)%[hl]s/$1%s/g'
This was SVN commit r16187.
2015-01-22 20:36:24 +00:00
Ykkrosh
49e2ecea63
Automatically convert all CLogger format strings from wchar_t* to char*.
...
Done with:
ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs sed
-i 's/LOG\(MESSAGE\|MESSAGERENDER\|WARNING\|ERROR\)(L/LOG\1(/g'
This was SVN commit r16183.
2015-01-22 20:31:30 +00:00