vladislavbelov
249f7cad55
Fixes cinematic camera distortion on some angles.
...
Differential Revision: https://code.wildfiregames.com/D4567
This was SVN commit r26690.
2022-03-20 21:59:49 +00:00
vladislavbelov
2a66c783ee
Make configurable mouse edge distance for view scroll.
...
Differential Revision: https://code.wildfiregames.com/D4552
This was SVN commit r26665.
2022-03-17 18:25:54 +00:00
vladislavbelov
37b30901b3
Removes C++ code for conditional defines removed in f29d059617.
...
Differential Revision: https://code.wildfiregames.com/D4551
This was SVN commit r26661.
2022-03-15 22:13:22 +00:00
vladislavbelov
ea6af3f148
Updates a model color uniform in RenderModifier only if it was changed.
...
This was SVN commit r26653.
2022-03-14 22:56:38 +00:00
vladislavbelov
b4253d48cb
Moves CShaderProgram to backend and handling via CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4548
This was SVN commit r26652.
2022-03-14 22:16:14 +00:00
vladislavbelov
376fe61df9
Adds missed shader program validation after 0456b09c3c.
...
Reported By: Freagarach
This was SVN commit r26637.
2022-03-13 11:01:32 +00:00
vladislavbelov
e89e55539e
Removes custom vertex attribute locations for GLSL. Refs ce215cace3.
...
This was SVN commit r26630.
2022-03-12 23:25:23 +00:00
vladislavbelov
992c18aabb
Enables ARB shaders only once since we should not mix different backends.
...
This was SVN commit r26629.
2022-03-12 22:10:47 +00:00
vladislavbelov
0456b09c3c
Moves shader dependent XML parsing from shader manager to shader program.
...
This was SVN commit r26628.
2022-03-12 22:02:21 +00:00
Stan
9c22f9f123
Fix the loading of subfiles for LODS. It currently failed because el_actor and el_quality levels have different ids depending on the loaded file. e.g for an actor with qualitylevels el_actor will be 18 and el_qualitylevels will be 0 while for a standard actor el_actor will be 0 and el_qualitylevels will be -1, hence failing for all the files since the code assumed wrong. XeroActor.Load() takes care of all the other cases, e.g. trying to load a variant which means the only valid check is for qualitylevels.
...
Fixes 76acc4e146
This was SVN commit r26616.
2022-03-10 21:32:36 +00:00
vladislavbelov
12c304e494
Removes duplication of backend format in VertexArray usages, optimizes vertex color attribute of quad overlay.
...
This was SVN commit r26609.
2022-03-08 23:28:31 +00:00
vladislavbelov
41f2ab87ed
Fixes macOS warnings after adding final keyword to simulation classes in 3eee3a444d.
...
Also fixes GLES.
Differential Revision: https://code.wildfiregames.com/D4528
This was SVN commit r26605.
2022-03-07 23:04:11 +00:00
vladislavbelov
647fccd410
Replaces native GL types by backend format in vertex attributes in CShaderProgram.
...
This was SVN commit r26594.
2022-03-07 02:21:05 +00:00
vladislavbelov
ce18f297d5
Adds icons to minimap.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4513
This was SVN commit r26592.
2022-03-07 01:22:06 +00:00
vladislavbelov
3399791677
Adds renderer backend vertex formats and normalizes texture formats.
...
This was SVN commit r26588.
2022-03-06 22:14:57 +00:00
vladislavbelov
db7894ff6b
Removes redundant binding slot retrieving from CShaderProgram.
...
This was SVN commit r26585.
2022-03-06 21:17:24 +00:00
vladislavbelov
bc6ab4ac49
Removes redundant CShaderProgram streams.
...
This was SVN commit r26582.
2022-03-06 20:53:39 +00:00
vladislavbelov
63f749da2d
Removes unused functions from CShaderProgram.
...
This was SVN commit r26579.
2022-03-06 16:40:04 +00:00
vladislavbelov
3a4bbd11fd
Moves all GL draw commands to CDeviceCommandContext.
...
Differential Revision: https://code.wildfiregames.com/D4518
This was SVN commit r26525.
2022-03-03 07:09:59 +00:00
bb
7c3aed5f36
Set the size of the overlaybox without relying on the arbitrary initSize
...
Comments By: vladislav
Differential Revision: D4489
This was SVN commit r26523.
2022-03-02 16:27:11 +00:00
vladislavbelov
da4ec670c1
Moves glViewport from CRenderer to CDeviceCommandContext.
...
This was SVN commit r26497.
2022-02-26 23:17:48 +00:00
vladislavbelov
6bc2f7a783
Draws entities on minimap via triangles instead of points.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4509
This was SVN commit r26493.
2022-02-26 20:30:09 +00:00
vladislavbelov
d5d1754991
Moves polygon mode handling to PipelineState and CDeviceCommandContext.
...
This was SVN commit r26486.
2022-02-25 22:05:06 +00:00
vladislavbelov
8a63adc40d
Uses CDeviceCommandContext as an input parameter for CCanvas2D.
...
This was SVN commit r26480.
2022-02-25 08:14:11 +00:00
vladislavbelov
d1f1d41a9f
Uses triangles for drawing lines in CCanvas2D.
...
Differential Revision: https://code.wildfiregames.com/D4444
This was SVN commit r26479.
2022-02-25 06:59:57 +00:00
vladislavbelov
a0b0effd50
Fixes minimap after map reloading.
...
Reported By: marder
This was SVN commit r26439.
2022-02-20 10:51:11 +00:00
vladislavbelov
5eb21cbfbf
Adds debug labels to backend framebuffers.
...
This was SVN commit r26408.
2022-02-18 23:00:11 +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
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
6ec956553a
Fixes builds after d0115185b9 by removing includes to res handle.
...
This was SVN commit r26372.
2022-02-14 06:29:50 +00:00
vladislavbelov
d0115185b9
Removes unused and redundant h_mgr after 0e599a3176 and dd91a5e0ef.
...
This was SVN commit r26369.
2022-02-13 22:31:36 +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
ac77d1c3e0
Moves scissor test management to DeviceCommandContext.
...
This was SVN commit r26288.
2022-02-01 17:58:21 +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
wraitii
e0d98cd94d
Call SetTerrainDirty on CModelAbstract without going through CmpVisualActor
...
The UnitManager already lists all units, so we do not need to go through
the visual actor of entities to update them. This is faster and
decouples simulation & graphics code slightly.
Further, the simulation does not need to know about texture changes (see
also 410d2e883a ), so remove those calls in Atlas.
Differential Revision: https://code.wildfiregames.com/D4455
This was SVN commit r26270.
2022-01-29 08:28:04 +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
vladislavbelov
285e542a0a
Removes redundant comment about alpha test in shaders forgotten in 5cbd46de94.
...
This was SVN commit r26260.
2022-01-27 17:32:07 +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
wraitii
83d251406c
Move BuildAnimation to CSkeletalAnimMgr / CObjectEntry
...
There is no need to have BuildAnimation in CModel when everything is
done in CObjectEntry anyways.
This removes a pointer in every CModel object, which is nice.
Accepted By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4454
This was SVN commit r26254.
2022-01-26 14:55:19 +00:00
wraitii
27f64b80ed
Remove unused variable following 330b570ba8
...
Forgotten in that diff.
Reported by: vladislavbelov
This was SVN commit r26250.
2022-01-25 18:47:38 +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
41fe3aafa4
Fixes minimap texture scissoring rect following b5d85e279f. Fixes #6382
...
This was SVN commit r26229.
2022-01-19 17:40:26 +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
829e37371b
Moves hardcoded blend state in CCanvas2D to its technique.
...
This was SVN commit r26216.
2022-01-14 17:44:42 +00:00
vladislavbelov
5cbd46de94
Removes deprecated GL alpha test.
...
In GL3.0 alpha test mode was deprecated and removed in GL3.3. We should
use discard/kill in shaders instead.
In shaders alpha test was removed in d3a24c26ba , in FFP it was removed
with FFP in b7e6811ea6 .
Differential Revision: https://code.wildfiregames.com/D4434
This was SVN commit r26211.
2022-01-13 17:50:28 +00:00
vladislavbelov
6d28c44f0f
Removes unused method from CShaderTechnique.
...
This was SVN commit r26201.
2022-01-11 16:02:27 +00:00