242 Commits

Author SHA1 Message Date
Thaddeus Crews 7626d50c7f Merge pull request #115053 from Calinou/doc-texture-mipmap-bias-no-compatibility
Document Viewport texture mipmap bias not being supported in Compatibility
2026-05-18 11:06:30 -05:00
CookieBadger 7b7bd1dcea Add AreaLight3D 2026-04-04 01:37:10 +02: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
Danil Alexeev 32d1f518fa Improve editor-only class checking 2026-03-25 17:07:39 +03: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
Pāvels Nadtočajevs cdcb208eb9 [Viewport] Add option to inherit parents texture filter/repeat, use it for popups. 2026-03-11 15:06:47 +02:00
Hugo Locurcio eaa9e1ae49 Document the interaction between automatic mesh LOD and blend shapes 2026-03-01 00:53:15 +01:00
Hugo Locurcio 25100ee3dc Document wireframe debug draw mode behaving differently in Compatibility 2026-02-17 01:02:55 +01:00
Hugo Locurcio af8881281b Document Viewport texture mipmap bias not being supported in Compatibility
Mipmap LOD bias adjustments are available in OpenGL, but not in
OpenGL ES or WebGL. The property is therefore not implemented in Godot's
Compatibility renderer to keep cross-platform visuals as close as possible.
2026-01-17 01:59:11 +01:00
Rémi Verschelde f4dab5199a Merge pull request #111748 from Calinou/doc-sdfgi-debug-probes
Document occlusion debugging in the SDFGI debug probes draw mode in the editor
2025-12-19 11:52:53 +01:00
Rémi Verschelde 2d3b076b08 Merge pull request #110705 from Calinou/doc-canvasitem-visibility-layer
Document CanvasItem visibility layers not being inherited from parent nodes
2025-12-19 11:52:23 +01:00
Hugo Locurcio b3afc74115 Document occlusion debugging in the SDFGI debug probes draw mode in the editor
This feature shows occlusion information for the selected SDFGI
probe. It can only be used in the editor, as it relies
on the `RenderingServer::sdfgi_set_debug_probe_select()` method
that isn't exposed to the scripting API.
2025-12-11 23:42:45 +01:00
Rémi Verschelde 660b52b828 Merge pull request #112990 from allenwp/update-hdr2d-docs
Update docs to describe new `use_hdr_2d` behavior with Mobile renderer.
2025-11-26 23:44:01 +01:00
Allen Pestaluky ef18638ac3 Update docs to describe new use_hdr_2d behavior with Mobile renderer. 2025-11-26 14:47:58 -05:00
Micky be0c68845e Fix miscellaneous oddities around the class reference (part 6) 2025-11-25 21:20:57 +01:00
hannes 89aa5137b8 add gui_drag_threshold for viewports 2025-10-24 19:01:25 +02:00
Robert Grigoryan b3bb376391 Fix description of Viewport::set_input_as_handled
The method stops the `InputEvent` from propagating up, not down.
2025-10-14 11:06:54 +02:00
Allen Pestaluky 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
Thaddeus Crews d86123870b Merge pull request #52285 from rxlecky/camera-override-cleanup
Clean up and simplify camera override API
2025-09-30 18:35:11 -05:00
Thaddeus Crews d7565ffbe5 Merge pull request #104666 from allenwp/color-encoding-docs
Update color encoding documentation
2025-09-22 08:50:11 -05:00
Hugo Locurcio 96618b2cf8 Document CanvasItem visibility layers not being inherited from parent nodes 2025-09-19 23:44:21 +02:00
Thaddeus Crews 27a3f0eb8d Merge pull request #108206 from Calinou/transparent-viewport-no-ssr-sss-dof
Disable unsupported SSR, SSS, DoF on transparent viewports
2025-09-16 11:44:48 -05:00
Allen Pestaluky 46e40969a2 Replace the term "color space" with "color encoding". Add additional detail to Color class description. State clearly that Color is expected to use the nonlinear sRGB transfer function. 2025-09-15 18:11:53 -04:00
Hugo Locurcio 1c62ba40b7 Disable unsupported SSR, SSS, DoF on transparent viewports
For technical reasons, transparent viewports cannot support
screen-space reflections, subsurface scattering and depth of field.
Previously, enabling any of these would turn transparent viewports
invisible.
2025-09-11 14:59:07 +02:00
rxlecky 02e1919514 Cleanup and simplify camera override API
- Harmonise the camera override 2D and 3D APIs
- Switch to using Camera2D/3D nodes to provide override functionality. This makes for simpler code, gets rid of much of copy-pasted camera code and makes code that relies on current viewport camera such as VisibleOnScreenNotifiers and object picking work out of the box.
- Make camera override code only accesible within DEBUG_ENABLED builds
2025-08-31 15:34:46 +02:00
Allen Pestaluky ce47160ea4 Update ProjectSettings HDR 2D documentation to include Compatibility support. 2025-08-29 13:54:00 -04:00
Pāvels Nadtočajevs 10e11ec87f Rename SVGTexture to DPITexture. 2025-08-21 11:39:16 +03:00
Lurker 0ea06fe446 Added the C# code equivalent to the note in Viewport.GetTexture()
Define 'viewport' for parity with GDScript's '$viewport'

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2025-08-14 18:53:34 -07:00
Allen Pestaluky 1f363c7ba4 Update HDR 2D documentation to include Compatibility support. 2025-07-29 15:56:24 -04:00
Allen Pestaluky a1591512f8 Always perform color correction and debanding on nonlinear sRGB values.
Fixes #107730

Co-authored-by: LuoZhihao <luo_zhihao@outlook.com>
2025-07-08 13:44:53 -04:00
A Thousand Ships 2db7ecd410 [Docs] Various grammar and spelling fixes 2025-06-23 20:54:08 +02:00
kobewi 13f642d959 Replace XML codeblock spaces with tabs 2025-06-06 14:35:38 +02:00
Haoyu Qiu 1e82bafa3a Remove redundant info on the enum types used 2025-06-04 08:21:47 +08:00
Haoyu Qiu e74ebaf18d Fix copy-paste error in Viewport classref 2025-06-03 20:47:06 +08:00
Raymond DiDonato 6b99608950 Add SMAA 1x 2025-05-21 15:02:09 -04:00
Pāvels Nadtočajevs 98817a54f0 Use same oversampling granularity as fonts use for SVGTextures . 2025-04-24 21:23:25 +03:00
Pāvels Nadtočajevs 4afeca3bcf Replace global oversampling with overrideable per-viewport oversampling. 2025-04-14 13:43:09 +03:00
Thaddeus Crews e6a61b1ecc Merge pull request #76829 from bruvzg/ac_kit_direct
Implement screen reader support using AccessKit library.
2025-04-08 12:32:47 -05:00
Pāvels Nadtočajevs b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
Micky 7603945d14 Fix *even* more miscellaneous oddities around the class reference 2025-04-07 17:37:08 +02:00
Hugo Locurcio 5472936b69 Disable debug draw modes in the 3D editor according to current rendering method
- Add tooltips to some debug draw modes, including when it's unsupported
  due to the current rendering method in use.
- Improve documentation related to debug draw modes.
2025-03-12 00:10:24 +01:00
Thaddeus Crews 654b5993e2 Merge pull request #99890 from Sauermann/fix-vp-mouse-notifications
Introduce `Viewport` functions for keeping the mouse over state consistent
2025-02-03 11:14:42 -06:00
Stuart Carnie 11dc4f2e5e Metal: Add MetalFX upscaling support
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2025-01-06 06:03:18 -07:00
Thaddeus Crews 3d523ee86d Merge pull request #92997 from Calinou/styleboxflat-antialiasing-adjust-for-stretch-scale
Adjust StyleBoxFlat antialiasing to account for 2D stretch scale
2024-12-19 19:59:48 -06:00
Rémi Verschelde d60c0e21a6 Merge pull request #88313 from wagnerfs/run-time-anisotropic-filtering
Allow changing the anisotropic filter level at run-time per Viewport
2024-12-17 16:18:38 +01:00
Hugo Locurcio b43c47d6dd Adjust StyleBoxFlat antialiasing to account for 2D stretch scale
This prevents the antialiasing feather from becoming too wide
at viewport sizes higher than the default, which can lead to blurry visuals.

This is adjusted to account for the 2D scale factor returned on the root
Window, so it takes both the `canvas_items` scaling and
`content_scale_factor` into account.
2024-12-04 01:07:25 +01:00
Markus Sauermann 8e00035f08 Introduce Viewport functions for keeping the mouse over state consistent 2024-12-01 11:22:11 +01:00
tetrapod00 141737d168 Docs: Standardize names and terms for renderers 2024-11-29 19:53:52 -08:00
Wagner 6995b6a03e Allow changing the anisotropic filter level at run-time per Viewport 2024-11-30 00:50:45 -03:00
Thaddeus Crews 9c300a6c05 Merge pull request #80965 from Calinou/viewport-add-get-stretch-scale-factor
Add a Viewport method to get automatically computed 2D stretch transform
2024-11-27 10:47:12 -06:00