vladislavbelov
30e135693e
Implements configurable cascade shadows.
...
Tested By: Langbart, Stan, wraitii
Differential Revision: https://code.wildfiregames.com/D3972
This was SVN commit r25711.
2021-06-06 16:44:54 +00:00
vladislavbelov
b360b7bd2b
Disallow hardware without VBO support to simplify vertex buffer usages.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4054
This was SVN commit r25659.
2021-06-03 22:06:59 +00:00
vladislavbelov
7ce4552f5e
Moves partially MiniMap texture rendering into a separate object.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4045
This was SVN commit r25628.
2021-06-01 18:55:35 +00:00
vladislavbelov
d9d19543b5
Adds std namespace to shared_ptr usages in network and engine.
...
This was SVN commit r25527.
2021-05-22 19:28:40 +00:00
wraitii
0c23e595fa
Include CStrInternStatic where necessary only.
...
This makes incremental recompilation faster when changing static
interned strings.
Differential Revision: https://code.wildfiregames.com/D3975
This was SVN commit r25457.
2021-05-18 11:09:54 +00:00
vladislavbelov
3ebff376cc
Adds view bounds test for an ortho camera and removes commented code after 44f8d2c6f5.
...
This was SVN commit r25441.
2021-05-15 13:47:48 +00:00
vladislavbelov
44f8d2c6f5
Fixes a bounding box projection to an incorrect camera causes the red water bug.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D3905
This was SVN commit r25440.
2021-05-15 13:33:36 +00:00
wraitii
34b1920e7b
Split ScriptRequest in its own header.
...
We often only need to include ScriptRequest.h and not the full
ScriptInterface.h
Differential Revision: https://code.wildfiregames.com/D3920
This was SVN commit r25366.
2021-05-03 16:07:26 +00:00
vladislavbelov
2fcab79e15
Moves terrain independent code for viewport bounds calculations to camera.
...
This was SVN commit r25355.
2021-05-01 16:59:42 +00:00
vladislavbelov
b74d5bf0d8
Removes glColor* calls from scene rendering, colors are set explicitly by uniforms.
...
This was SVN commit r25330.
2021-04-27 19:35:36 +00:00
vladislavbelov
5b33d3a76c
Removes ShaderProgramPtr argument from DebugRenderer methods.
...
This was SVN commit r25329.
2021-04-27 19:23:37 +00:00
vladislavbelov
cd6a554198
Removes GL matrix stack usages from scene rendering.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3894
This was SVN commit r25328.
2021-04-27 18:43:49 +00:00
vladislavbelov
2698cf8ba2
Fixes missing DrawCameraFrustum argument after 5e12424123.
...
This was SVN commit r25324.
2021-04-26 21:21:13 +00:00
vladislavbelov
389a5a4379
Removes low-level GL calls from graphics and geometrics primitives and adds DebugRenderer.
...
Tested By: Freagarach
Differential Revision: https://code.wildfiregames.com/D3857
This was SVN commit r25269.
2021-04-15 18:07:01 +00:00
vladislavbelov
715dca0701
Removes unused shadow settings forgotten in 12e2428495, removes direct SkipSubmit access.
...
This was SVN commit r25261.
2021-04-14 20:25:05 +00:00
vladislavbelov
92f94e25c6
Adds ortho projection type and its test.
...
This was SVN commit r25073.
2021-03-17 23:03:35 +00:00
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