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
cff79b421a
Moves GL vertex and index buffer management to CDeviceCommandContext.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4493
This was SVN commit r26406.
2022-02-18 17:33:12 +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
vladislavbelov
709e8292b0
Moves color mask, depth mask and function management from CShaderPass to DeviceCommandContext.
...
Tested By: Langbart
Comments By: Stan
Differential Revision: https://code.wildfiregames.com/D4465
This was SVN commit r26284.
2022-01-31 20:10:06 +00:00
vladislavbelov
d4d1bc039f
Moves culling mode and front face state management to DeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4456
This was SVN commit r26259.
2022-01-27 17:25:37 +00:00
vladislavbelov
ad5377bc0e
Fixes fancy water shores drawing after 1d9a8b2b0b.
...
Reported By: wraitii
This was SVN commit r26231.
2022-01-20 17:31:21 +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
40e75f9c89
Removes binding additional attribute for water shader added in 1d9a8b2b0b.
...
Reported By: Freagarach
This was SVN commit r26223.
2022-01-15 16:47:42 +00:00
vladislavbelov
971b734873
Moves hardcoded blend state in debug overlay and water to their techniques.
...
This was SVN commit r26218.
2022-01-14 18:44:40 +00:00
vladislavbelov
1d9a8b2b0b
Splits water surface and shore drawing functions and fixes their switch.
...
Differential Revision: https://code.wildfiregames.com/D4436
This was SVN commit r26215.
2022-01-14 17:34:58 +00:00
vladislavbelov
9757cc2539
Removes direct shader binding, uses BeginPass always following e1374252b7.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4431
This was SVN commit r26199.
2022-01-11 05:56:44 +00:00
vladislavbelov
b061a7ead4
Optimizes FBO usages for LOSTexture and water shore foam.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4418
This was SVN commit r26180.
2022-01-06 22:44:54 +00:00
Stan
0a8d382657
Fix OpenGL ES 2.0 Warnings.
...
This was SVN commit r26167.
2022-01-04 20:54:37 +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
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
abc3190c03
Removes binding native GLuint textures from public ShaderProgram API.
...
Differential Revision: https://code.wildfiregames.com/D4407
This was SVN commit r26143.
2021-12-30 16:37:51 +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
vladislavbelov
60a422b668
Moves water textures and terrain alpha composite map to GL texture class following 57ba7c4a1c.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4394
This was SVN commit r26120.
2021-12-27 08:14:47 +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
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
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
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
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
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
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
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
2fcab79e15
Moves terrain independent code for viewport bounds calculations to camera.
...
This was SVN commit r25355.
2021-05-01 16:59:42 +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
e90aaf6348
Adds line drawing to DebugRenderer.
...
This was SVN commit r25314.
2021-04-25 20:48:44 +00:00
vladislavbelov
4e728bf68f
Uses sky as a water reflection instead of a fixed color.
...
Differential Revision: https://code.wildfiregames.com/D3734
This was SVN commit r25114.
2021-03-24 16:40:03 +00:00
vladislavbelov
5e1b84ed64
Batches decals and reduces the number of state changes.
...
Reviewed By: wraitii
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D3545
This was SVN commit r24867.
2021-02-10 16:42:56 +00:00
vladislavbelov
6d4fd01a59
Separates allocated vertex buffers into groups for data locality.
...
Tested By: Langbart, OptimusShepard, Stan
Differential Revision: https://code.wildfiregames.com/D3522
This was SVN commit r24860.
2021-02-08 22:34:10 +00:00
vladislavbelov
55f6eae7c5
Removes unused dummy shader from terrain rendering.
...
This was SVN commit r24822.
2021-02-02 15:34:52 +00:00
vladislavbelov
9df127f9d1
Removes shader code duplication to calculate LOS.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3428
This was SVN commit r24732.
2021-01-20 18:46:32 +00:00
vladislavbelov
5cbf8f04ec
Removes code duplications for binding shadows to shaders.
...
This was SVN commit r24710.
2021-01-19 19:19:04 +00:00
vladislavbelov
1cb4ee1634
Combines terrain and units ambient colors into the single color.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3237
This was SVN commit r24661.
2021-01-17 13:10:00 +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
6282960991
Removes useless option for shadows on water
...
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D3368
This was SVN commit r24630.
2021-01-15 15:45:39 +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
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
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
e038f7844b
Fixes terrain overlays by removing fixed pipeline dependency.
...
Tested By: Freagarach, wraitii
Differential Revision: https://code.wildfiregames.com/D3074
This was SVN commit r24154.
2020-11-09 18:50:40 +00:00
vladislavbelov
61c6da91e8
Moves foam calculation into a separate function and fixes its lighting.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D3071
This was SVN commit r24145.
2020-11-08 22:17:58 +00:00