vladislavbelov
c2c3a3b663
Moves shadow map and terrain overlay to GL texture class continuing 57ba7c4a1c.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4393
This was SVN commit r26117.
2021-12-26 09:48:48 +00:00
vladislavbelov
57ba7c4a1c
Encapsulates GL texture creation in a separate class.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4389
This was SVN commit r26107.
2021-12-25 00:26:10 +00:00
vladislavbelov
478164962f
Removes static linking of OpenGL library.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4387
This was SVN commit r26104.
2021-12-24 08:02:27 +00:00
Stan
c9bea80e0d
Use GLAD2 a multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator.
...
Comments by: @nwtour, @Langbart, @bb
Based on patch by: @echotangoecho
Tested on Windows 7 & 10, Ubuntu and macos.
Differential Revision: https://code.wildfiregames.com/D721
This was SVN commit r26093.
2021-12-21 22:03:31 +00:00
vladislavbelov
a32ab00f4d
Moves backbuffer swap and error check to GL device.
...
This was SVN commit r26092.
2021-12-21 17:02:04 +00:00
vladislavbelov
3b9b7cd605
Moves GL report from HWDetect to GL device.
...
Tested By: Freagarach, Stan
Differential Revision: https://code.wildfiregames.com/D4376
This was SVN commit r26081.
2021-12-16 06:36:46 +00:00
vladislavbelov
eb004e5c98
Uses forward declaration for SDL in GL device.
...
This was SVN commit r26078.
2021-12-15 10:50:31 +00:00
vladislavbelov
93a9072618
Removes logs of unused GL constants which duplicate video mode settings.
...
This was SVN commit r26077.
2021-12-15 10:49:46 +00:00
vladislavbelov
89c181ded1
Encapsulates information about GL inside device.
...
Commented By: Stan
Differential Revision: https://code.wildfiregames.com/D4375
This was SVN commit r26072.
2021-12-15 06:43:41 +00:00
vladislavbelov
3809457513
Replaces unclear PreferGLSL by direct renderer backend choice.
...
Commented By: Stan
Differential Revision: https://code.wildfiregames.com/D4363
This was SVN commit r26069.
2021-12-14 06:34:02 +00:00
vladislavbelov
f28efbaa87
Forbids using more than 64 bones for GPU skinning.
...
Commented By: Stan
Differential Revision: https://code.wildfiregames.com/D4244
This was SVN commit r26067.
2021-12-13 19:22:27 +00:00
vladislavbelov
a3382fb3eb
Removes checks for unused or always enabled GL extensions.
...
Differential Revision: https://code.wildfiregames.com/D4371
This was SVN commit r26065.
2021-12-13 18:36:37 +00:00
vladislavbelov
fe81a6eec7
Refactors WaterManager to remove duplication of the current texture index calculation. Removes unused m_WaterCurrentTex from f2cae8cb9b.
...
This was SVN commit r26045.
2021-12-09 18:01:28 +00:00
vladislavbelov
e1374252b7
Removes direct access to shaders, leaves only techniques.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4353
This was SVN commit r26020.
2021-11-27 15:01:14 +00:00
vladislavbelov
c0e0d620eb
Draws fancy water and its shore waves only for GLSL shaders.
...
This was SVN commit r26017.
2021-11-26 21:47:04 +00:00
vladislavbelov
d1a7aa2858
Adds alpha and custom options to render debug modes.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4346
This was SVN commit r25996.
2021-11-14 08:33:59 +00:00
vladislavbelov
36eb92f9a4
Adds render debug modes.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4311
This was SVN commit r25992.
2021-11-12 11:22:18 +00:00
vladislavbelov
4bae03c6c8
Enables GL_TEXTURE_2D always since we don't support FPP anymore.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4327
This was SVN commit r25982.
2021-10-30 14:34:20 +00:00
vladislavbelov
3e198f1463
Removes duplication of terrain alpha map creation in Renderer.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4269
This was SVN commit r25931.
2021-09-20 12:55:39 +00:00
Freagarach
645e053fd2
Remove executable bit on some source files.
...
Reported by: Ralph Sennhauser
Fixes : #6325
This was SVN commit r25917.
2021-09-12 18:41:51 +00:00
vladislavbelov
96708cc6a5
Adds header for forward declarations of CStr.
...
This was SVN commit r25905.
2021-09-09 17:39:08 +00:00
vladislavbelov
a5c82a4ef6
Removes unused forward declarations of class and struct.
...
This was SVN commit r25903.
2021-09-08 19:43:01 +00:00
vladislavbelov
3b417062bb
Reduces the number of possible allocations for models with multiple UV sets during loading.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4247
This was SVN commit r25890.
2021-09-03 20:11:52 +00:00
vladislavbelov
7d039f2627
Replaces gui material by solid material in water waves rendering.
...
This was SVN commit r25713.
2021-06-06 18:13:20 +00:00
vladislavbelov
fa03eb3485
Switches ShadowMap debug rendering to canvas2d material.
...
This was SVN commit r25712.
2021-06-06 18:05:10 +00:00
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
2d455df18d
Removes Z value from TextRenderer translate, renames TextRenderer methods to more explicit ones.
...
This was SVN commit r25645.
2021-06-02 21:21:28 +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
2cc671fd36
Makes 2D text drawing via Canvas2D.
...
This was SVN commit r25607.
2021-05-30 19:10:10 +00:00
vladislavbelov
7f16a5c40c
Moves TextRenderer shader to a more relevant place, into the rendering function argument.
...
This was SVN commit r25606.
2021-05-30 18:28:06 +00:00
vladislavbelov
f7ad2daf62
Removes gui_solid material shader usages from scene rendering.
...
This was SVN commit r25582.
2021-05-27 20:13:47 +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
8b6d4233eb
Disables by default Intel Mesa workaround to save video memory.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/DD3967
This was SVN commit r25449.
2021-05-16 19:08:28 +00:00
vladislavbelov
5ff4fa19c0
Removes unused and outdated includes, replaces some includes by forward declarations.
...
This was SVN commit r25444.
2021-05-15 17:27:01 +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
9107d6d8c7
Fixes unused CCamera argument in debug rendering in SilhouetteRenderer.
...
This was SVN commit r25352.
2021-05-01 12:13:48 +00:00
wraitii
835c081ca4
Fix large slowdown in rendering on some configurations.
...
Usage of GL_VERTEX_ARRAY client state apparently prevented OpenGL from
using hardware acceleration on my computer (Macos 10.14 with an Intel
GPU).
It is unclear how many people would be affected by this issue, but on my
end it makes GLSL performance competitive with ARB again.
Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D3900
This was SVN commit r25343.
2021-04-29 07:38:40 +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
wraitii
66fbc23f2c
De-singletonify CConfigDB, make hooks RAII.
...
CConfigDB is no longer a singleton, and its members are no longer
static.
This makes it possible to have several instances of it, useful for
testing of if we ever want to have different config profiles.
Also updates hooks to delete themselves on destruction, to fit a more
natural RAII pattern. Long-lived objects must take care to destroy hooks
before ConfigDB is reset.
Differential Revision: https://code.wildfiregames.com/D3866
This was SVN commit r25326.
2021-04-27 07:45:40 +00:00
vladislavbelov
2698cf8ba2
Fixes missing DrawCameraFrustum argument after 5e12424123.
...
This was SVN commit r25324.
2021-04-26 21:21:13 +00:00
vladislavbelov
5e12424123
Removes glBegin from scene rendering, removes GL matrix stack dependency from scene rendering.
...
This was SVN commit r25323.
2021-04-26 21:11:35 +00:00
vladislavbelov
2086a66340
Adds circle drawing to DebugRenderer.
...
This was SVN commit r25315.
2021-04-25 21:55:19 +00:00
vladislavbelov
e90aaf6348
Adds line drawing to DebugRenderer.
...
This was SVN commit r25314.
2021-04-25 20:48:44 +00:00