vladislavbelov
a57581471d
Reduces the number of uniform changes in decals rendering and the number of render queries in models.
...
This was SVN commit r26688.
2022-03-20 16:08:19 +00:00
vladislavbelov
d214745f8f
Reduces the number of uniform changes in decals rendering.
...
This was SVN commit r26687.
2022-03-20 14:58:03 +00:00
vladislavbelov
2ed2e9de0c
Invalidates CDeviceCommandContext texture bind cache properly.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4553
This was SVN commit r26664.
2022-03-17 18:17:11 +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
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
518a1421ab
Clears the color attachment of the main framebuffer only if needed.
...
Differential Revision: https://code.wildfiregames.com/D4539
This was SVN commit r26623.
2022-03-11 22:26:49 +00:00
vladislavbelov
5390143b66
Fixes rendering reflections even they are disabled, broken in 9ce51f4357. Fixes #6454
...
Reported By: Langbart
This was SVN commit r26615.
2022-03-10 16:36:16 +00:00
vladislavbelov
1ce999a52d
Creates water backend textures and framebuffers only if needed.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4536
This was SVN commit r26613.
2022-03-09 21:40:24 +00:00
vladislavbelov
cb1f0807c5
Removes FALLTHROUGH in VertexArray after 12c304e494. Fixes #6453
...
This was SVN commit r26611.
2022-03-09 07:07:02 +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
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
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
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
vladislavbelov
6de2649955
Fixes empty decals drawing when a decal is outside or on a border of a map.
...
Reported By: Nullus
This was SVN commit r26514.
2022-03-01 18:02:52 +00:00
vladislavbelov
1ff3b45a1e
Adds more checks for vertex and index buffer creations.
...
This was SVN commit r26502.
2022-02-27 20:21:07 +00:00
vladislavbelov
da4ec670c1
Moves glViewport from CRenderer to CDeviceCommandContext.
...
This was SVN commit r26497.
2022-02-26 23:17:48 +00:00
vladislavbelov
680b0215fc
Adds depth bias to PipelineState and its management to CDeviceCommandContext.
...
Refs #2368
This was SVN commit r26495.
2022-02-26 21:49:32 +00:00
vladislavbelov
bf8fe51dea
Moves enabling of GL multisample to CDevice.
...
This was SVN commit r26494.
2022-02-26 21:10:14 +00:00
vladislavbelov
67cafcd599
Fixes GLES and compilation warnings.
...
This was SVN commit r26492.
2022-02-26 20:28:39 +00:00
vladislavbelov
23a023507a
Replaces GL_LINES, GL_QUADS, GL_TRIANGLE_STRIP and GL_TRIANGLE_FAN by GL_TRIANGLES.
...
This was SVN commit r26488.
2022-02-26 00:37:27 +00:00
vladislavbelov
59a0a74951
Fixes a degenerate triangle on terrain sides of map corners.
...
This was SVN commit r26487.
2022-02-25 23:45:54 +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
a87cb6c94d
Moves GL depth comparison function to SamplerDesc.
...
This was SVN commit r26485.
2022-02-25 20:02:03 +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
6a0fc31c33
Replaces GL_QUADS by GL_TRIANGLES for drawing overlays and debug frustums.
...
This was SVN commit r26465.
2022-02-22 18:41:31 +00:00
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
aac1a64675
Moves dynamic geometry for rendering sky to static vertex buffer.
...
This was SVN commit r26424.
2022-02-19 20:07:55 +00:00
vladislavbelov
b0826da1bc
Fixes not drawing brushes under water when refractions are enabled.
...
This was SVN commit r26411.
2022-02-19 15:44:32 +00:00
vladislavbelov
36833d1df2
Moves max texture size to backend device capabilities.
...
This was SVN commit r26409.
2022-02-18 23:17:48 +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
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
37aa0456c8
Fixes missed assignment to currentTech in ParticleRenderer added in 5adbe4f1a3.
...
This was SVN commit r26296.
2022-02-04 16:27:35 +00:00
vladislavbelov
ac77d1c3e0
Moves scissor test management to DeviceCommandContext.
...
This was SVN commit r26288.
2022-02-01 17:58:21 +00:00
vladislavbelov
aeaf495da3
Renames GL::CTexture levelCount to MIPLevelCount to match Tex.
...
This was SVN commit r26287.
2022-02-01 16:48:24 +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
22db9202f1
Fixes EOL in PipelineState files after 5adbe4f1a3.
...
This was SVN commit r26283.
2022-01-31 11:47:58 +00:00
vladislavbelov
02c96903c5
Renames sgn function to Sign to fit the naming of other MathUtil functions.
...
This was SVN commit r26276.
2022-01-30 20:51:01 +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
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