2237 Commits

Author SHA1 Message Date
Thaddeus Crews
75444feae7 Merge pull request #118857 from LiveTrower/clearcoat-reflection-fixes
Fix and clean up clearcoat reflection probe process
2026-04-27 12:05:47 -05:00
LiveTrower
4b94f459f4 Fix and cleanup clearcoat reflection probe process 2026-04-24 16:04:41 -06:00
LiveTrower
5dac818f77 Fix clearcoat intensity for area lights 2026-04-22 13:07:53 -06:00
Thaddeus Crews
0e25644655 Merge pull request #118796 from deralmas/gotta-go-wrap
Buildsystem: Simplify `format_buffer` utility method
2026-04-22 09:58:29 -05:00
Thaddeus Crews
835e2dcbba Merge pull request #118809 from blueskythlikesclouds/fix-clearcoat-half-ddx-ddy
Fix SPIR-V validation error in Mobile clearcoat code.
2026-04-21 16:46:14 -05:00
Thaddeus Crews
dc12c5f48e Merge pull request #118752 from dsnopek/reflection-probe-rt-error
Fix `Parameter "rt" is null` when toggling `ReflectionProbe` visibility
2026-04-21 16:46:02 -05:00
Dery Almas
e4dcf1d852 Buildsystem: Simplify format_buffer utility method
This method is used to generate headers for embedding files into the binary
(think about the new `#embed` feature in C23 and C++26).

While the stringification step itself was plenty fast, it then proceeded
to wrap everything using the `textwrap` module. `textwrap` is *very*
slow, as it's apparently optimized for human text.

This patch reimplements the wrapping logic using a simple regex,
resulting in a tremendous speed improvement (~6x), and switches to `map`
for the stringification itself (thanks Rémi!)

It also removes a (practically) unused argument, `initial_indent`.

The generated files are pretty much the same, with a tiny difference in
line length (for some reason the old logic overshot the requested line
length)
2026-04-21 23:18:42 +02:00
Skyth
52e8eb4bbb Fix SPIR-V validation error in Mobile clearcoat code. 2026-04-21 13:58:40 +03:00
David Snopek
0c00e99d39 Fix Parameter "rt" is null when toggling ReflectionProbe visibility 2026-04-19 08:45:54 -05:00
Kaleb Reid
08cb31b4d1 Fix screen-space AA when upscaling using bilinear filtering 2026-04-15 15:33:26 -07:00
Rémi Verschelde
cc212fb90a Merge pull request #117788 from kleonc/canvas_item_shader_generate_sdf_on_using_normal
Generate SDF texture on `texture_sdf_normal` usage
2026-04-15 12:40:50 +02:00
Thaddeus Crews
f94bbfc07c Merge pull request #118353 from Chaosus/shader_subgroups
Allow to define more than one subgroup level in shader material
2026-04-14 07:11:08 -05:00
Thaddeus Crews
7ce1853014 Merge pull request #108219 from CookieBadger/area-light-integration
Add Rectangular Area Light Source
2026-04-14 07:10:56 -05:00
Thaddeus Crews
cee489f46e Merge pull request #118242 from BlueCube3310/draw-tex-set-type
Properly set `drawable_type` property in RenderingServer's `DrawableTexture`
2026-04-13 15:52:15 -05:00
Clay John
ba7f91ccc8 Remove is_discardable property from several textures
The property is causing issues on NVidia devices
2026-04-10 16:00:28 -07:00
Thaddeus Crews
9268bc73a0 Merge pull request #117619 from BastiaanOlij/fix_117303
Fix assymmetrical rendering of reflections in SDFGI
2026-04-10 10:32:35 -05:00
Chaosus
5c667de60c Allow to define more than one subgroup level in shader material 2026-04-09 19:15:19 +03:00
Thaddeus Crews
967b56efec Merge pull request #118317 from clayjohn/sky-shader-fallback
Ensure that sky shader automatic mode consistently uses the fallback
2026-04-08 17:00:43 -05:00
clayjohn
63c49cc668 Ensure that sky shader automatic mode consistently uses the fallback
This is necessary so that the proper backing textures can be allocated for the sky shader
2026-04-08 10:49:18 -07:00
Thaddeus Crews
b6f86739b6 Merge pull request #109911 from TCROC/fix-particles-moving-timescale-0
Fix particles moving when timescale is 0
2026-04-08 09:25:25 -05:00
BlueCube3310
7ba643bdcf Properly set drawable_type property in RenderingServer's DrawableTexture 2026-04-06 13:11:49 +02:00
Altay Evren Özsan
d18e225ba5 Added math constants to texture-blit
Fixes #118144

Fixed an issue where texture-blit shader was failing to compile when using some math constants because the code was incorrectly passing name strings into the shader
2026-04-05 22:45:50 +03:00
CookieBadger
7b7bd1dcea Add AreaLight3D 2026-04-04 01:37:10 +02:00
Thaddeus Crews
c05358c1d6 Merge pull request #108073 from Gaktan/fix-decal-atlas
Fix decal atlas clipped when using texture resolution < 32
2026-04-02 12:33:14 -05:00
Thaddeus Crews
872cfabf3d Merge pull request #79731 from Calinou/viewport-add-nearest-3d-scaling
Add a nearest-neighbor scaling option to Viewport's Scaling 3D Mode property
2026-04-02 12:33:13 -05:00
Thaddeus Crews
7e3bf93f8a Merge pull request #117909 from QbieShay/qbe/fix-trimmed-transform
Fix incorrectly stored emission transform for GPUParticles2D
2026-04-01 18:10:11 -05:00
Thaddeus Crews
eda3dc13b9 Merge pull request #109142 from QbieShay/qbe/particle-process-windown
Extra particle tools for seeking
2026-04-01 18:10:08 -05:00
Skyth
27305b6de8 Fix color correction not working in the tonemap subpass. 2026-04-01 12:36:39 +03:00
Qbieshay
df081fc7c1 Fix incorrectly stored emision transform for GPUParticles2D 2026-03-27 18:48:37 +01:00
Qbieshay
158d8784c3 Add parameter to request_process_time to have particle process without
emission.

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2026-03-27 11:57:08 +01:00
Gaktan
c0eb935646 Fix decal atlas clipped when using texture resolution < 32 2026-03-26 20:48:25 +01:00
Hugo Locurcio
5df0c8b271 Add a nearest-neighbor scaling option to Viewport's Scaling 3D Mode property
This is useful for 3D games with a pixel art appearance, or when
using a resolution scale of `0.5` to improve performance without
compromising crispness too much when not using FSR 1.0.

The property hints now allow decreasing the scale further to accomodate
for pixel art use cases, as well as increased precision in the value
(useful for a scale of `0.3333`).

Co-authored-by: Daniel Savage <dansvg@gmail.com>
Co-authored-by: Kaleb Reid <78945904+Kaleb-Reid@users.noreply.github.com>
2026-03-25 00:05:54 +01:00
kleonc
18fe28ecba Generate SDF texture on texture_sdf_normal usage 2026-03-24 13:35:22 +01:00
Bastiaan Olij
2f07ccd68a Fix assymmetrical rendering of reflections in SDFGI
Co-authored-by: retrotails
2026-03-24 13:25:48 +11:00
Rémi Verschelde
cd8ee7d229 Merge pull request #116620 from QbieShay/qbe/rework-align-rotation
Improve options for orienting particles in space
2026-03-23 22:34:16 +01:00
Rémi Verschelde
7958080d65 Merge pull request #116220 from dsnopek/foveated-rendering-vulkan-subsampled-image
OpenXR: Allow using Vulkan subsampled images with foveated rendering
2026-03-23 22:34:11 +01:00
Rémi Verschelde
d7680230ae Merge pull request #115108 from stuartcarnie/simplify_cluster_builder
Renderer: Simplify shader and cluster builder
2026-03-23 12:57:48 +01:00
Qbieshay
113ace0cd3 Add options for billboarding on GPUParticles3D
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2026-03-19 16:10:20 +01:00
Rémi Verschelde
98868393cc Style: Enforce #include validation hook 2026-03-18 10:41:59 +01:00
Rémi Verschelde
e33e98a26f Style: Apply clang-format grouping rules 2026-03-17 20:11:01 +01:00
Gaktan
c05c85581e Fix Octahedral encoding special case when computing vertex skinning
Signed-off-by: Gaktan <Gaktan@users.noreply.github.com>
2026-03-13 20:18:46 +01:00
Thaddeus Crews
d7ed107cd8 Merge pull request #116852 from Chaosus/rendering_fix_texture_array
Fix repeating last valid texture in samplers array
2026-03-12 09:03:32 -05:00
Rémi Verschelde
f1d63278d7 Remove unused includes in servers with clangd-tidy 2026-03-10 21:42:23 +01:00
David Snopek
4d218bdeb7 OpenXR: Allow using Vulkan subsampled images with foveated rendered 2026-03-05 11:00:37 -06:00
Thaddeus Crews
4296a0c158 Merge pull request #116752 from BastiaanOlij/cleanup_is_frustum
Clean up `is_frustum` projection code
2026-03-04 14:32:33 -06:00
Rémi Verschelde
765362b033 Explicitly include core/config/engine.h where used 2026-03-04 10:17:10 +01:00
Rémi Verschelde
f332faf46b Explicitly include core/os/os.h where used 2026-03-04 09:54:10 +01:00
Rémi Verschelde
8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde
a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +01:00
StarryWorm
357fa00a4a rm class_db.h from resource.h 2026-02-27 19:08:29 -05:00