Commit Graph

627 Commits

Author SHA1 Message Date
577376b61f Fix AnimationTree. 2024-04-06 14:00:16 +02:00
f6d9ca069f Fix build. 2024-04-06 13:46:57 +02:00
4f93164401 Backported ORMSpatialMaterial from Godot 3.x without any breaking changes. 2024-04-06 12:57:23 +02:00
A Thousand Ships
240585c58b Fix building with disable_3d 2024-04-06 12:25:17 +02:00
lawnjelly
909acac329 Discrete Level of Detail
Add scene side discrete level of detail.

New node `LOD` for UI, and `LODManager` within `World` for automatically updating child visibilities based on distance from cameras.
2024-04-06 12:06:01 +02:00
lawnjelly
942a304f4e Physics Interpolation 2D - fix light and light occluder resetting
It turns out `NOTIFICATION_TRANSFORM_CHANGED` is deferred for these nodes, which can mean the transform is not set in the `VisualServer` until after the reset has been sent, even if the transform is set before the reset in script. This prevented the reset from acting correctly.

Here we explicitly set the transform prior to each reset, to ensure the `VisualServer` is up to date.
2024-04-06 11:02:42 +02:00
lawnjelly
010b8ba73b Optimize AnimationTree::_process_graph()
Removes redundant lookups on HashMap.
2024-04-06 10:59:29 +02:00
lawnjelly
da78ed110a Fix Mesh::get_face_count()
This fixes a minor bug whereby facecount was actually returning the facecount * 3.
There were no major problems from this, but it did mean the optional threshold poly count used when merging was out by a factor of 3.
2024-04-06 10:42:03 +02:00
c0805afa6c Rework the vertex light 3d module to actually be 3d. 2024-03-27 16:02:08 +01:00
cd8f79865e Added a property to World2D for the vertex light 2d map. 2024-03-27 08:16:48 +01:00
d7a54d702d Free vertex_lights_2d_map in World2D's destructor. 2024-03-25 09:17:44 +01:00
3fc75ad15f Set up VertexLight2D maps. 2024-03-24 22:14:26 +01:00
272ae15993 Now tooltips won't get scaled to their original control's scale anymore by default. Added a new gui_scale_tooltips property to Viewport to be able to use the previous behaviour when it's desired. 2024-03-13 16:55:47 +01:00
105115dbb3 Removed clips_input() method and _clips_input() virtual method from Control. Made clip_contents to also have an input clipping effect, since I couldn't think any single instance where keeping them separated would be useful.
This fixes LayeredTileMap's editors clipping input while being invisible, and likely other smaller issues.
2024-03-12 17:29:22 +01:00
b11bd949cc Backported from Godot4: Allow disabling scrolling in Tree.
- groud
b2dddc3c82
2024-03-11 13:46:53 +01:00
60eb59ab19 Backpoered from Godot 4: Add is_built_in() method to Resource.
- KoBeWi
e393c2a734
2024-03-08 21:16:16 +01:00
be0b5b5bdc Backported from Godot4: Implement Tabs minimum size.
- groud
898a2a7cf3
2024-03-07 21:57:49 +01:00
2b85fcdbb5 Backported ViewPanner from Godot4. It also got bindings, now inherited from Resource, and is registered in the ClassDB. 2024-03-01 22:39:19 +01:00
cf7b59b6c8 Fix small formatting inconsistencies. 2024-03-01 16:25:19 +01:00
6a6d3acd96 Clang format everything. 2024-03-01 11:56:19 +01:00
a5d8696021 Ported: Vertex cache optimizer
Optimizes indices to make good use of vertex cache on GPU.
- lawnjelly
0aa22b8f13
2024-02-08 21:35:01 +01:00
c3c6d64a50 Portred: Add MergeGroup node to simplify merging Meshes at runtime.
- lawnjelly
8b79135538
2024-02-08 21:00:07 +01:00
ae7409bf52 Ported: Fix signed distance field font rendering
This fix works in both GLES3 and GLES2.
The rendering formula in the shader was adjusted to further improve the
sharpness/antialiasing quality balance.
- lawnjelly and Calinou
bc607fb607
2024-02-08 19:11:34 +01:00
5d2a594843 Ported: Shadow volume culling and tighter shadow caster culling
Existing shadow caster culling using the BVH takes no account of the camera. This PR adds the highly encapsulated class VisualServerLightCuller which can cut down the casters in the shadow volume to only those which can cast shadows on the camera frustum.
This is used to:
* More accurately defer dirty updates to shadows when the shadow volume does not intersect the camera frustum.
* Tighter cull shadow casters to the view frustum.
Lights dirty state is now automatically managed:
* Continuous (tighter caster culling)
* Static (all casters are rendered)
- lawnjelly
8ca631a466
2024-02-08 18:40:44 +01:00
lawnjelly
61645f36f3 Portals - Improve conversion logging
Logging is now allowed in any TOOLS build (rather than just in the editor), but still prevented in final exports.
Logging can be switched off via project settings.
Autoplacement is now logged.
2024-02-08 15:12:23 +01:00
lawnjelly
f09cdf5954 Portals - include in bound and special cases in start room
* Re-introduces a property for portals to decide whether they are included in room bounds during room conversion.
* Adds a special case for portals that extend into the start room, which may be caused by level design inaccuracies.
2024-02-08 15:10:00 +01:00
Micky
d1621245e6 Add Editor Description group
Backport from 4.0
2024-02-08 14:56:04 +01:00
kobewi
1a98244aac Preserve selection when focusing SpinBox 2024-02-08 14:44:21 +01:00
Micky
4e68cd0251 Remove unused struct in GradientTexture1D 2024-02-08 13:25:47 +01:00
1d8e1f7065 Fixed TextEdit width calculation after it's font changes. This fixes lines being too long to scroll to in the editor. 2024-01-12 12:43:39 +01:00
8d67178204 Backported from godot4: Fix TextEdit.get_rect_at_line_column returning negative pos even though cursor is in viewable area of the control
- MJacred
6170381bd7
2024-01-12 12:24:09 +01:00
a38d3e5d61 Fix typo. 2024-01-12 12:18:05 +01:00
kleonc
44453b1d58 Make gizmo plugin handle SpriteBase3D instead of Sprite3D 2023-12-20 22:44:23 +01:00
Jakub Marcowski
f45f3bbc73 Remove the separator from ItemList's thumbnail mode 2023-12-20 22:36:05 +01:00
5133ef182d File copyright header updates pt10. 2023-12-18 00:31:04 +01:00
98912a89e8 File copyright header updates pt9. 2023-12-18 00:25:33 +01:00
88e9ad04f2 Moved back the servers and resources from core. 2023-12-10 23:11:07 +01:00
11945d7f1d Split material.h. 2023-12-10 21:26:28 +01:00
ee245511fd Removed unnecessary include. 2023-12-10 20:29:39 +01:00
63c895747a Moved Curve and Gradient to core. 2023-12-10 20:23:51 +01:00
e32155717c Moved 2d shapes to core. 2023-12-10 20:03:16 +01:00
9d2309bfe1 Moved shapes to core. 2023-12-10 19:58:44 +01:00
053f083e17 Moved the Physics 2d server to core. 2023-12-10 19:42:57 +01:00
dbcc6e33da Moved the physics server to core. 2023-12-10 19:36:00 +01:00
238bf1b331 Moved the RenderingServer to core. 2023-12-10 19:04:24 +01:00
049440aaf1 Moved BitMap to core. 2023-12-10 18:07:25 +01:00
3902cf1924 Moved ScneeStringNames and PropertyUtils into scene/main. 2023-12-10 18:01:51 +01:00
191e9e152e Added quote_style argument to get_argument_options(). 2023-12-10 16:02:08 +01:00
9df5649c1b Moved CanvasItem, Control, Node2D and Spatial under scene/main. 2023-12-10 15:50:54 +01:00
0dfba6c552 Moved AudioStreamSample. 2023-12-10 15:26:43 +01:00