vladislavbelov
731b85b9a2
Adds GPU scoped labels for console, logger and profiler.
...
This was SVN commit r26444.
2022-02-20 21:55:29 +00:00
vladislavbelov
b949f19875
Moves GL debug information toggle to run-time to make it easier to test after release.
...
This was SVN commit r26407.
2022-02-18 22:38:45 +00:00
vladislavbelov
aaf378f041
Moves backend capabilities to CDevice.
...
This was SVN commit r26366.
2022-02-13 21:46:03 +00:00
vladislavbelov
4de89c3db1
Moves texture management to CDeviceCommandContext, adds quality options.
...
Comments By: nwtour, Stan
Tested By: nwtour, Stan
Differential Revision: https://code.wildfiregames.com/D4488
This was SVN commit r26365.
2022-02-13 19:30:28 +00:00
vladislavbelov
a17fad722a
Moves framebuffer management to CDeviceCommandContext.
...
Tested By: Langbart, nwtour
Differential Revision: https://code.wildfiregames.com/D4475
This was SVN commit r26302.
2022-02-05 16:59:23 +00:00
vladislavbelov
a1f98b016b
Moves depth and stencil tests to PipelineState and DeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4471
This was SVN commit r26286.
2022-02-01 16:38:55 +00:00
wraitii
410d2e883a
Remove leftover terrain-based movement cost code.
...
6581796103 removed the ability for terrain to affect movement speed. The
JPS pathfinder cannot support it, and the approach was poor anyways,
coupling rendering data with simulation data.
This lets us remove the dependency on CTerrainTextureManager everywhere.
Tested by: langbart
Differential Revision: https://code.wildfiregames.com/D4459
This was SVN commit r26269.
2022-01-29 08:22:28 +00:00
vladislavbelov
1e07283bac
Disables possibility to mix shader types with a single backend.
...
Differential Revision: https://code.wildfiregames.com/D4463
This was SVN commit r26264.
2022-01-28 06:34:34 +00:00
wraitii
330b570ba8
Remove RENDERDATA_UPDATE_COLOR, which is not used, and cleanup.
...
RENDERDATA_UPDATE_COLOR was used to precompute lightEnv-dependent data
on the CPU. This is no longer done following engine upgrades, and in
particular d7d02a4740 which explictly always did this on the GPU.
ModelAbstract had a 'SetDirtyRec' hack for it because of decals, which
can also be removed. The 'dirty' bit of CRenderableObject is renderdata
for the specific item, never its props, so it never actually needs to be
recursive.
CheckLightEnv is also useless as a result, and removed.
Differential Revision: https://code.wildfiregames.com/D4453
This was SVN commit r26249.
2022-01-25 16:59:29 +00:00
vladislavbelov
5adbe4f1a3
Moves blend state management to DeviceCommandContext. Fixes #6420
...
Tested By: Langbart
Comments By: Stan
Differential Revision: https://code.wildfiregames.com/D4441
This was SVN commit r26228.
2022-01-19 17:28:47 +00:00
vladislavbelov
9924450d36
Moves default GL state setup to GL device.
...
This was SVN commit r26187.
2022-01-07 22:21:22 +00:00
vladislavbelov
5610c71fc6
Fixes rendering big screenshot pieces onto screen, refs 52a8793450.
...
This was SVN commit r26186.
2022-01-07 20:15:48 +00:00
vladislavbelov
15c40861b4
Separates terrain alphamap combining and uploading.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4419
This was SVN commit r26184.
2022-01-07 14:33:54 +00:00
vladislavbelov
9d7457da9b
Removes ogl_tex usage from CRenderer.
...
This was SVN commit r26181.
2022-01-06 23:23:36 +00:00
vladislavbelov
912202ff0c
Uses core GL functions for GLSL shaders.
...
Tested By: nwtour, Stan
Differential Revision: https://code.wildfiregames.com/D4416
This was SVN commit r26175.
2022-01-06 11:41:04 +00:00
vladislavbelov
fd976456d7
Performs texture uploads via DeviceCommandContext interface.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4415
This was SVN commit r26170.
2022-01-05 14:49:54 +00:00
vladislavbelov
5e3426794c
Moves frame rendering function to CRenderer and combines with making screenshots.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4414
This was SVN commit r26166.
2022-01-04 18:13:45 +00:00
vladislavbelov
87b5c233c5
Splits CRenderer part about scene to CSceneRenderer.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4412
This was SVN commit r26165.
2022-01-04 13:29:01 +00:00
vladislavbelov
2f90becb28
Removes SkipSubmit and unused friends from Renderer.
...
This was SVN commit r26162.
2022-01-03 12:16:16 +00:00
vladislavbelov
3b8f1cdc04
Moves Renderer internals class out of the global namespace.
...
This was SVN commit r26160.
2022-01-03 11:11:58 +00:00
vladislavbelov
4fba543488
Unifies providing SkyManager and WaterManager like other managers, refs b889826a3d.
...
This was SVN commit r26158.
2022-01-03 10:49:12 +00:00
vladislavbelov
273d336364
Removes unused Atlas functionality to set clear color added in 2f53eea71a and removed in 0d6882dad2.
...
This was SVN commit r26156.
2022-01-03 09:39:54 +00:00
Stan
ae32055c9b
Add support for GL_KHR_debug in Debug Mode.
...
Based on a patch by: @linkmauve
Reviewed by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D2488
This was SVN commit r26141.
2021-12-30 15:07:17 +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
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
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
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
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