Commit Graph

4655 Commits

Author SHA1 Message Date
7bde47e433 Use GL_FRAMEBUFFER instead of GL_DRAW_FRAMEBUFFER when doing final blit to the screen framebuffer to work around OBS bug 2025-10-19 19:25:28 -07:00
2edad6860a Merge pull request #111658 from brycehutchings/bryceh_d3d12_native_handle_fixes
Fix D3D12 rendering device driver returning pointers to internal types for get_resource_native_handle instead of proper D3D12 primitives
2025-10-16 12:48:04 -05:00
a281e91c5a Metal: Fix texture_get_data other linear formats
Introduce a specialised `texture_get_data` for `RenderDeviceDriver`,
which can retrieve the texture data from the GPU driver for shared
textures (`TEXTURE_USAGE_CPU_READ_BIT`).

Closes #108115
2025-10-16 06:46:51 +11:00
1f7e7de82b Fix D3D12 driver returning internal types to RenderingDevice's texture_get_native_handle/get_driver_resource 2025-10-15 10:35:38 -07:00
36b92128b1 Merge pull request #110671 from allenwp/environment-glow-consistent
Blend glow before tonemapping and change default to screen.
2025-10-14 21:29:43 -07:00
599fd7344a Merge pull request #111356 from blueskythlikesclouds/d3d12-spec-constant-patch-fix
Fix specialization constant patching on D3D12.
2025-10-13 12:30:15 -05:00
cafc012b05 Blend Environment glow before tonemapping and change default blend mode to screen.
Additionally, change the minimum `tonemap_white` parameter to `1.0`; users can increase `tonemap_exposure` for a similar effect to decreasing `tonemap_white` below `1.0`.

Co-authored-by: Hei <40064911+Lielay9@users.noreply.github.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2025-10-10 12:08:08 -04:00
3a003b2d96 Ensure uv2_attrib(_input) is available when rendering lightmap. 2025-10-10 14:17:34 +11:00
bd9d1bf070 Add material debanding for use in Mobile rendering method.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2025-10-08 16:22:41 -04:00
1cf0bc2c6c Merge pull request #111321 from blueskythlikesclouds/d3d12-region-fix
Fix D3D12 not checking for fullscreen clear region correctly.
2025-10-08 13:56:40 -05:00
36b7e77f03 Fix specialization constant patching on D3D12. 2025-10-08 09:37:35 +03:00
f2d0ea6d40 Ensure reflection atlas is valid before rendering 2025-10-07 22:05:22 -07:00
ef853bbc06 Merge pull request #111347 from Ivorforce/no-algorithm
Add `max()` to `Span`, replacing `<algorithm>` include from `rendering_device_commons.h`
2025-10-07 17:15:09 -05:00
1fa332cad4 Add max() to Span.
Remove `<algorithm>` include from `rendering_device_commons.h`, using `Span` instead.
2025-10-07 22:26:32 +02:00
cb164a38f2 Merge pull request #107384 from Kaleb-Reid/compat-directional-cull-mask
Implement DirectionalLight3D cull masks in Compatibility
2025-10-07 11:54:42 -05:00
b95024752a SCons: Remove system includes 2025-10-07 08:11:29 -05:00
fda0e83bd5 Merge pull request #111192 from Nintorch/fix-joy-weird-presses
Fix invalid reported joypad presses
2025-10-07 14:34:05 +02:00
9052d31c68 Merge pull request #111331 from Repiteo/scons/revert-cppextpath
Revert "SCons: Add `CPPEXTPATH` for external includes"
2025-10-07 13:07:19 +02:00
fdc235f496 Merge pull request #110884 from Kaleb-Reid/fix-spotlight-aabb
Use correct AABB for SpotLight3Ds when `spot_angle > 90`
2025-10-06 14:34:05 -05:00
36b76fc84c Merge pull request #110915 from Kaleb-Reid/compat-clear-buffers
Clear intermediate buffers when not in use in Compatibility
2025-10-06 14:34:04 -05:00
b17aa3343a Revert "SCons: Add CPPEXTPATH for external includes" 2025-10-06 13:09:22 -05:00
5935a32e32 Core: Cleanup headers in core/config
- `MainLoop` now forward-declared in `OS`
2025-10-06 09:20:56 -05:00
d1d28c0bcf Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
2025-10-06 09:06:49 -05:00
12aa435bbb Merge pull request #107740 from Kaleb-Reid/compat-directional-shadow-scatter
Apply sun scatter from lights with shadows in compatibility
2025-10-06 09:06:44 -05:00
686b56fae9 Merge pull request #106434 from Ivorforce/invert-hashfuncs
Reduce cross project includes by rewriting `HashMapHasherDefault`.
2025-10-06 09:06:37 -05:00
d364dacac1 Merge pull request #110004 from Kaleb-Reid/divide-luminance
Divide screen texture by luminance multiplier in compatibility
2025-10-06 09:06:33 -05:00
30a0a41982 Merge pull request #111274 from chocola-mint/include-optimization-logger
Remove `file_access.h` and `script_backtrace.h` includes from `logger.h`.
2025-10-06 09:06:32 -05:00
43a9999852 Merge pull request #111260 from devloglogan/compat-motion-vec-fix
Add null check when getting motion vector fbo
2025-10-06 09:06:30 -05:00
660bf91360 Merge pull request #111240 from Kaleb-Reid/compat-fix-backbuffer
Always use RenderSceneBuffers to manage backbuffer in Compatibility 3D
2025-10-06 09:06:23 -05:00
b568b06970 Fix D3D12 not checking for fullscreen clear region correctly. 2025-10-06 16:56:05 +03:00
1043c3fd64 Merge pull request #111300 from stuartcarnie/net_unix_error_spam
Unix: Don't print an error if `bind` fails
2025-10-06 14:08:16 +02:00
6f0f5a9bd0 Merge pull request #111058 from timothyqiu/wnohang
Unix: Fix retrieval of PID exit code
2025-10-06 14:08:03 +02:00
47d757d3dc Unix: Don't print an error if bind fails 2025-10-06 06:12:13 +11:00
ead282ff13 Remove file_access.h and script_backtrace.h includes from logger.h. 2025-10-05 17:49:23 +09:00
ad600125df Rewrite HashMapHasherDefault based on type traits - it is now possible to declare a default hashing function for any type.
Remove cross-project includes from `hashfuncs.h`.
Improve hashing function for `Color` (based on values instead of `String`).
Move `Variant` comparison from `hash_map.h` to `dictionary.cpp` (`VariantComparatorDictionary`), where it's used.
Remove now unnecessary `HashableHasher`.
2025-10-05 01:49:11 +02:00
79b1a6defc Implement DirectionalLight3D cull masks in Compatibility 2025-10-04 16:08:27 -07:00
1db0a60dc0 Replace std::size usage with std_size to avoid <iterator> include. 2025-10-05 00:26:11 +02:00
a88c54a5c7 Clear intermediate buffers when not in use in Compatibility 2025-10-04 13:51:23 -07:00
39c449fc60 Add null check when getting motion vector fbo 2025-10-04 13:18:59 -05:00
91167c3c23 Use correct AABB for SpotLight3Ds when spot_angle > 90 2025-10-04 02:12:51 -07:00
e1f19d14dd Always use RenderSceneBuffers to manage backbuffer in Compatibility 3D 2025-10-04 01:06:09 -07:00
c20ab940aa Apply sun scatter from lights with shadows in compatibility 2025-10-04 00:35:31 -07:00
8ad335eae0 Divide screen texture by luminance multiplier in compatibility 2025-10-04 00:19:42 -07:00
d616da4498 Fix warning spam in Compatibility when using depth texture 2025-10-03 16:13:54 -07:00
d9ba9ba3da Merge pull request #97151 from devloglogan/motion-vectors
Implement motion vectors in compatibility renderer
2025-10-03 12:01:10 -05:00
cf3c00056c Merge pull request #109974 from rsanchezsaez/apple/swiftui-lifecycle
SwiftUI lifecycle for Apple embedded platforms
2025-10-03 12:01:09 -05:00
1566eec9cf Merge pull request #111191 from Nintorch/fix-joy-vibration
Fix weak and strong joypad vibration being swapped
2025-10-03 12:01:04 -05:00
38af23a654 Merge pull request #89409 from aaronfranke/server-folders
Move server files into their subfolders
2025-10-03 12:01:00 -05:00
4a3bf069a6 Fix invalid reported joypad presses 2025-10-03 11:35:09 +05:00
e5ecc392c9 Fix weak and strong joy vibration being swapped 2025-10-03 11:08:39 +05:00