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
2e38c117d2
Fixes comments of CLOSTexture and CTerritoryTexture following 57ba7c4a1c.
...
This was SVN commit r26197.
2022-01-10 17:58:51 +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
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
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
f07fa81661
Renames LOS framebuffer object to follow CC.
...
This was SVN commit r26171.
2022-01-05 15:37:59 +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
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
2f90becb28
Removes SkipSubmit and unused friends from Renderer.
...
This was SVN commit r26162.
2022-01-03 12:16:16 +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
e9070a2630
Removes rand function usage from Atlas and unused rand include from particles.
...
This was SVN commit r26153.
2022-01-02 22:35:17 +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
vladislavbelov
e4455a8e8f
Speedups terrain painting tab in Atlas by asynchronous texture loading.
...
Tested By: Silier, Stan
Differential Revision: https://code.wildfiregames.com/D4405
This was SVN commit r26142.
2021-12-30 16:24:07 +00:00
vladislavbelov
92cf0c784c
Removes Handle from ShaderProgram to use more high-level objects.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4403
This was SVN commit r26138.
2021-12-29 07:07:08 +00:00
vladislavbelov
3591220361
Removes redundant ogl usage to process data on CPU combining terrain alpha map.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4399
This was SVN commit r26129.
2021-12-28 06:41:06 +00:00
vladislavbelov
3cb60353e1
Removes unused h_mgr includes.
...
This was SVN commit r26122.
2021-12-27 11:47:16 +00:00
vladislavbelov
9696df3c28
Removes unused ogl/ogl_tex includes.
...
This was SVN commit r26121.
2021-12-27 10:11:26 +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
vladislavbelov
f59f637cbb
Cleanups TerrainTextureEntry a little, removes commented member from 88ab3f0f5b.
...
This was SVN commit r26118.
2021-12-26 20:39:13 +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
f9818b7f7a
Moves default texture to SingleColorTexture following 283f524fcf.
...
This was SVN commit r26102.
2021-12-23 17:44:24 +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
9cb6e4c105
Cleanups Font and FontManager a little.
...
This was SVN commit r26050.
2021-12-10 16:59:32 +00:00
vladislavbelov
dfe165d6c2
Fixes unused m_Simulation after b991ef919b.
...
This was SVN commit r26046.
2021-12-09 18:07:10 +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
25ce179cbc
Adds collision test for fnv_hash, removes unused include forgotten in b4a33851e6.
...
This was SVN commit r26007.
2021-11-21 11:59:02 +00:00
vladislavbelov
b5d85e279f
Removes border pixels drawing of the minimap texture with scissors after b991ef919b. Fixes #6382
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4350
This was SVN commit r25997.
2021-11-14 16:51:39 +00:00
vladislavbelov
b991ef919b
Moves MiniMap texture rendering to a separate framebuffer to update it less frequently.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4331
This was SVN commit r25993.
2021-11-12 19:15:48 +00:00
vladislavbelov
31a6ffdd3a
Removes mentions of legacy and unused GL calls, unifies AsFloatArray.
...
This was SVN commit r25961.
2021-10-11 12:39:01 +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
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
wraitii
0ba9cbef74
Fix units changing appearance when switching animation.
...
Bug introduced in 76acc4e146 .
The previous CUnit code had logic to select random aesthetic variants
once initially. The new code removed that, as I completely missed its
purpose, assuming that the random selection, being based on a seed,
would pick the same variants every time. This is incorrect because
entity selections can change the RNG calls, thus the variants, and thus
entity appearance can change when the animation changes (typically, a
horse will change color when walking and running).
The solution is to re-introduce the choice of actor selections on CUnit
creation. This makes sure that units don't change their purely-aesthetic
selections when e.g. animations change.
Reported by: Wowgetoffyourcellphone
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4205
This was SVN commit r25844.
2021-07-31 17:55:10 +00:00
wraitii
12aa35eb3b
Fix loading grayscale heightmaps for RM maps.
...
d2948937a0 introduced code to read Heightmap images into RM terrain
data. However, the original diff contained a bug where it read
Out-of-bounds array data for grayscale images. This bug was hidden by
another issue until D1816 / cbc04ba83b , which changed the code and made
the OOB read actually relevant. The effect was twofold:
- The height chosen was not the max of the 3 color channels, but the max
of the 3 neighboring pixel (thus slightly lowering the quality of
generated maps)
- The height for the bottom-right coordinates were random memory values,
thus garbage.
This random height ended up resulting in non-deterministic map
generation, which was reported on Ngorongoro.
The cause of this silent failure is that the transformation to BGRA is
not applied for grayscale images, as the alpha transformation is
processed first and exits. This is not per-se buggy, so it is not
changed here.
The fixed behaviour is specialized for the common grayscale case, and
retains the max-of-3-color-channel intended behaviour otherwise.
Fixes #6261 .
Reported by: Feldfeld
Differential Revision: https://code.wildfiregames.com/D4203
This was SVN commit r25843.
2021-07-31 17:52:05 +00:00
wraitii
a541f3a317
Fix hotloading making models disappear.
...
The actors were always hotloaded because of a bad logic change in
76acc4e146 .
Fixes #6228
Differential Revision: https://code.wildfiregames.com/D4175
This was SVN commit r25805.
2021-06-17 07:52:50 +00:00
vladislavbelov
6b493aa52c
Fixes big screenshots, implements CCamera::GetViewQuad properly for custom projections.
...
Differential Revision: https://code.wildfiregames.com/D4165
This was SVN commit r25794.
2021-06-13 17:42:37 +00:00
Stan
79e772152b
Fix game not closing when compiled with --without-nvtt.
...
Fixes : #6107
Differential Revision: https://code.wildfiregames.com/D4138
This was SVN commit r25766.
2021-06-10 15:42:38 +00:00
vladislavbelov
990d61a74a
Draws all characters for a very long text of the same style.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4120
This was SVN commit r25749.
2021-06-08 18:17:10 +00:00
vladislavbelov
8597cd2c2e
Removes FFP shader program. Fixes #5791
...
This was SVN commit r25717.
2021-06-06 19:49:43 +00:00
vladislavbelov
7fdbe037dd
Uses canvas2d material for line drawing instead of gui_solid.
...
This was SVN commit r25704.
2021-06-06 10:13:57 +00:00
wraitii
1b35d36daa
Implement a global task manager using a pool of worker threads
...
Tasks are simple callables (e.g. lambdas), and can be pushed with 2
priority levels. Pushing a task returns a future.
Futures can be waited on, can return results, and can be cancelled
deterministically. Futures can also not be waited on.
This gives 'hardware concurrency - 1' threads to maximize CPU usage in a
work-stealing workflow.
Reviewed by: vladislavbelov
Refs #5874
Differential Revision: https://code.wildfiregames.com/D3848
This was SVN commit r25656.
2021-06-03 14:48:38 +00:00
vladislavbelov
83608c9205
Removes complex transform from TextRenderer.
...
This was SVN commit r25648.
2021-06-02 22:16:09 +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
e0fd3b532f
Cleanups MiniMapTexture a bit.
...
This was SVN commit r25630.
2021-06-01 19:50:15 +00:00
vladislavbelov
c2c9059f67
Fixes removed terrain missed in 7ce4552f5e.
...
This was SVN commit r25629.
2021-06-01 19:08:22 +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
01e940217e
Adds header safeguards to LOSTexture forgotten in fe21c5e023.
...
This was SVN commit r25620.
2021-05-31 20:47:03 +00:00