vladislavbelov
29368cf776
Adds framebuffer attachment load and store operations.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4830
This was SVN commit r27256.
2022-11-26 21:55:17 +00:00
vladislavbelov
968fd50fb0
Moves Backend enum from CVideoMode to backends.
...
Comments By: phosit, Stan
Differential Revision: https://code.wildfiregames.com/D4809
This was SVN commit r27173.
2022-10-25 22:45:54 +00:00
vladislavbelov
64bd81ae6b
Adds usage flags to backend textures.
...
This was SVN commit r27152.
2022-10-12 23:19:27 +00:00
vladislavbelov
d3f0395d2a
Adds BeginFramebufferPass/EndFramebufferPass instead of SetFramebuffer.
...
This was SVN commit r27151.
2022-10-12 21:51:27 +00:00
vladislavbelov
4d77de66d4
Removes GUI dependency from Canvas2D.
...
Initially the GetDefaultGuiMatrix function was added in 4113aa0a36 and
renamed in 04c63a4093 .
This was SVN commit r27111.
2022-10-04 20:25:39 +00:00
Stan
ec723428d1
Logic fix for very high shadows on very large screens.
...
ON large screens like 5120x1440 calculated shadow map was 32768. That
was 16x more than high setting, 32x more than medium setting and 64x
more than low setting.
After this change shadow map sizes using very high setting by resolution
will be following:
1920x1080 - 4096
2560x1440 - 4096
3840x1440 - 4096
5120x1440 - 8192
3840x2160 - 4096
7680x4320 - 8192
Patch by: @karmux
Reviewed by: @vladislavbelov, @Stan
Differential Revision: https://code.wildfiregames.com/D4723
This was SVN commit r26983.
2022-06-23 17:04:13 +00:00
vladislavbelov
62e589ab76
Adds renderer backend interface and dummy backend.
...
Comments By: phosit, Stan
Tested By: Langbart, phosit
Differential Revision: https://code.wildfiregames.com/D4636
This was SVN commit r26858.
2022-05-08 22:02:46 +00:00
vladislavbelov
3ed4eaf247
Removes ogl_WarnIfError from regular renderer code.
...
This was SVN commit r26850.
2022-05-02 21:52:21 +00:00
vladislavbelov
04bd96cee0
Moves uniform and texture binding to CDeviceCommandContext.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4631
This was SVN commit r26848.
2022-05-02 20:57:22 +00:00
vladislavbelov
df612ab8b4
Moves GLSL-specific uniform name workaround (added in 227f9e403f) to CShaderProgramGLSL.
...
This was SVN commit r26816.
2022-04-23 21:39:15 +00:00
vladislavbelov
aba7a170d9
Moves vertex attribute binding to CDeviceCommandContext.
...
Tested By: Langbart, Stan
Differential Revision: https://code.wildfiregames.com/D4610
This was SVN commit r26815.
2022-04-23 20:11:14 +00:00
vladislavbelov
2c8f4c4837
Moves AssertPointersBound to draw commands to not forget to call it for new shaders.
...
In the future it allows to call AssertPointersBound in a more lazy way.
This was SVN commit r26784.
2022-04-12 18:02:08 +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
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
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
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
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
a87cb6c94d
Moves GL depth comparison function to SamplerDesc.
...
This was SVN commit r26485.
2022-02-25 20:02:03 +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
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
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
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
795fb070af
Removes asking GL of current bind framebuffer to avoid syncs.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4422
This was SVN commit r26193.
2022-01-09 07:36:56 +00:00
vladislavbelov
27c8771a3a
Fixes debug drawing of a null shadow texture introduced in 36107cb7e1, appeared after abc3190c03.
...
Reported By: nwtour
This was SVN commit r26173.
2022-01-06 11:04:45 +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
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
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
136f4621af
Fixes crash for ARB shaders because they don't provide actual locations, triggered after c2c3a3b663.
...
Reported By: nwtour
This was SVN commit r26127.
2021-12-27 21:27:56 +00:00
vladislavbelov
c2c3a3b663
Moves shadow map and terrain overlay to GL texture class continuing 57ba7c4a1c.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4393
This was SVN commit r26117.
2021-12-26 09:48:48 +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
fa03eb3485
Switches ShadowMap debug rendering to canvas2d material.
...
This was SVN commit r25712.
2021-06-06 18:05:10 +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
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
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
769b0426a7
Removes unused debug render from ShadowMap.
...
This was SVN commit r25284.
2021-04-17 22:16:01 +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
c56c856ed5
Moves Frustum from graphics to maths to more related geometric primitives like bounding ones.
...
This was SVN commit r25159.
2021-03-29 17:28:13 +00:00
vladislavbelov
39c8e7f1a2
Cleanups ShadowMap, fixes possibly wrong depth format name for GLES.
...
This was SVN commit r25117.
2021-03-25 12:09:56 +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
fd8a47f5d9
Moves calculations of bounds for fixed shadows to a separate function.
...
Reduces complexity of the SetupFrame function. Fixed shadows were added
in 8e48e1b17e .
This was SVN commit r23766.
2020-06-12 20:09:08 +00:00