vladislavbelov
069560a290
Fixes incorrect vertex buffer offset added in aba7a170d9. Fixes #6519
...
This was SVN commit r26829.
2022-04-26 18:12:56 +00:00
vladislavbelov
d2d22a4538
Makes the terrain and decals rendering code load effect once per usage.
...
This was SVN commit r26823.
2022-04-24 13:44:00 +00:00
vladislavbelov
d3a7491724
Removes CONFIG2_GLES from CPostprocManager and renderers.
...
This was SVN commit r26817.
2022-04-23 23:49:52 +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
ddb8b08508
Removes lib_api.h cleared but not deleted in 8c068aab07.
...
This was SVN commit r26813.
2022-04-22 16:11:21 +00:00
vladislavbelov
9b6365f9f2
Removes unused Noise generator added in 18eb72a25a without any actual usage.
...
60befbd1cf added the exact same implementation to the rmgen tool,
469d0fe5c5 removed the rmgen tool along with the original implementation
of noise.
Patch By: smiley
Differential Revision: https://code.wildfiregames.com/D4611
This was SVN commit r26810.
2022-04-20 20:22:01 +00:00
vladislavbelov
2355240eec
Removes the Profiler allocation counter. Fixes #6476
...
Refs 5c8250ddb8 , 5664f097d9 , 6b0a0e83eb .
Patch By: smiley
Differential Revision: https://code.wildfiregames.com/D4606
This was SVN commit r26805.
2022-04-18 21:37:08 +00:00
vladislavbelov
7bd075d570
Moves glReadPixels to GL backend.
...
This was SVN commit r26802.
2022-04-17 14:55:00 +00:00
Stan
5de50c447c
Allow setting the passability class dynamically. This is needed to improve formation behavior for the release.
...
Accepted by: @Freagarach
Refs: https://code.wildfiregames.com/D4563 ,
https://code.wildfiregames.com/D4605
Differential Revision: https://code.wildfiregames.com/Dr4599
This was SVN commit r26801.
2022-04-17 11:06:09 +00:00
vladislavbelov
c6da4d9312
Adds a fallback texture to skies to avoid a crash if a sky texture was invalid.
...
This was SVN commit r26800.
2022-04-17 10:10:52 +00:00
vladislavbelov
e02b402a14
Uses vertex attribute name only for GLSL. Fixes #6500
...
This was SVN commit r26799.
2022-04-17 08:00:10 +00:00
vladislavbelov
eaac0b0dbe
Uses vertex streams to get attribute locations reducing duplication in XML.
...
Also adds missing streams.
This was SVN commit r26792.
2022-04-15 18:13:33 +00:00
vladislavbelov
37645670c1
Fixes crash in shader preprocessor introduced in d295dacb9b and appeared after 25332f9b86. Fixes #6033
...
This was SVN commit r26791.
2022-04-15 17:45:15 +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
d8d736f0eb
Allows tex clients decide how to handle invalid textures instead of assertions. Fixes #6436
...
This was SVN commit r26783.
2022-04-12 17:39:05 +00:00
vladislavbelov
8c1a469253
Uses GL device capabilities for all vertex attribute locations.
...
This was SVN commit r26782.
2022-04-12 16:49:04 +00:00
vladislavbelov
ad2068dae0
Uses sequential numbering of GL vertex attributes for modern hardware. Refs #3054
...
Differential Revision: https://code.wildfiregames.com/D4601
This was SVN commit r26781.
2022-04-12 16:13:47 +00:00
vladislavbelov
f6837978e8
Adds GL debug labels only if they are supported (forgotten in 3db24af763). Fixes #6495
...
This was SVN commit r26780.
2022-04-12 06:44:06 +00:00
vladislavbelov
e6dd9f944e
Moves Vulkan report code to its device to prevent crashing when a GL device is created. Fixes #6270
...
Differential Revision: https://code.wildfiregames.com/D4577
This was SVN commit r26779.
2022-04-12 06:39:14 +00:00
vladislavbelov
811a540382
Simplifies GL::CShaderProgram to store less data.
...
This was SVN commit r26777.
2022-04-11 22:10:21 +00:00
vladislavbelov
3db24af763
Adds names to GL shaders and programs.
...
This was SVN commit r26776.
2022-04-11 20:30:23 +00:00
vladislavbelov
8a51e05c2e
Avoids a crash if a texture size is not a power of two.
...
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4586
This was SVN commit r26774.
2022-04-11 16:28:41 +00:00
vladislavbelov
73c0e40045
Fixes warnings about unused function arguments in renderer.
...
This was SVN commit r26763.
2022-04-08 06:49:38 +00:00
vladislavbelov
d3dd98418e
Fixes GLES build after c842678591.
...
This was SVN commit r26760.
2022-04-07 06:59:40 +00:00
vladislavbelov
e08590ee34
Fixes warning about unused captured variable in CDeviceCommandContext.
...
This was SVN commit r26749.
2022-04-02 20:40:40 +00:00
vladislavbelov
02b87cdb46
Fixes MSAA on macOS GL drivers for textures with incorrect sample count, fixes #6480
...
Refs #5969
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4581
This was SVN commit r26737.
2022-03-31 07:04:51 +00:00
Stan
3f8cbecd72
Remove hardcoded shadows in Atlas UI
...
Fixes c9a7aabbea
Patch by: @nwtour
Accepted by: @phosit
Tested by: @Langbart
Differential Revision: https://code.wildfiregames.com/D4400
This was SVN commit r26730.
2022-03-28 22:47:52 +00:00
Stan
8f85f24608
Update the water height slider if the water height is set using the picker.
...
Patch by: @phosit
Fixes : #6424
Differential Revision: https://code.wildfiregames.com/D4576
This was SVN commit r26727.
2022-03-28 22:36:17 +00:00
Stan
a33e0ccc84
Remove some duplicated code from ScriptInterface.cpp
...
Tested by: @Langbart
Patch by: @smiley
Differential Revision: https://code.wildfiregames.com/D4574
This was SVN commit r26725.
2022-03-28 21:58:22 +00:00
vladislavbelov
c842678591
Removes usages of EXT and INTEL timer query GL extensions.
...
Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4571
This was SVN commit r26724.
2022-03-28 17:32:09 +00:00
vladislavbelov
4934784266
Adds USE_FP_SHADOW to shader context only for GL ARB.
...
This was SVN commit r26712.
2022-03-26 19:00:28 +00:00
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
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
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
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
wraitii
ce3a47e49a
Fix passibilty overlay in atlas
...
Broken in bb49fbe793 .
Patch by: nwtour
Fixes #6374
Differential Revision: https://code.wildfiregames.com/D4338
This was SVN commit r26663.
2022-03-17 15:17:49 +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
Angen
8cec96270b
Don't create thread on failed connection
...
Differential revision: D4545
Fixes : #6442
This was SVN commit r26649.
2022-03-14 17:19:42 +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
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
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
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