summaryrefslogtreecommitdiff
path: root/scene/resources
AgeCommit message (Collapse)Author
2021-02-20Draw an outline for 2D debug collision shapesHugo Locurcio
This makes them easier to distinguish, especially when used in a TileMap. The default color's opacity has been slightly decreased to account for the new outline.
2021-02-19Merge pull request #46196 from nmrkr/visual-shader-invalid-forced-connectRémi Verschelde
Fix crash when calling connect_nodes_forced with invalid params
2021-02-18Fix crash when calling connect_nodes_forced with invalid paramsDelf Neumärker
2021-02-18Fix handling of negative indices in SurfaceToolDelf Neumärker
2021-02-18Modernize atomicsPedro J. Estébanez
- Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-16Fixes crash when calling VisualShader::set_modeandybarcia
2021-02-16Merge pull request #46082 from YeldhamDev/styleboxline_margin_fixRémi Verschelde
Fix StyleBoxLine's incorrect style margin values
2021-02-16Fix StyleBoxLine's incorrect style margin valuesMichael Alexsander
2021-02-15Merge pull request #46069 from bruvzg/fix_font_crash_empty_dataRémi Verschelde
Fix font `draw_*string` crash with empty data.
2021-02-15Fix `TextLine`/`TextParagraph` crash when `add_string` / `set_dropcap` is ↵bruvzg
called null font reference.
2021-02-15Fix font `draw_*string` crash with empty data.bruvzg
2021-02-15Merge pull request #45704 from EricEzaM/PR/popup-menu-beautificationRémi Verschelde
Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead
2021-02-15[TextServer] Restore character and space extra spacing support.bruvzg
2021-02-15Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead.Eric M
2021-02-14VisualShader::_input_type_changed Fix index out of bounds crash.kleonc
2021-02-14[CTL] Add missing font outline drawing routines and theme constants.bruvzg
2021-02-14Fix uninitialized `BaseMaterial3D::features` variable.bruvzg
2021-02-12Fix LineEdit minimum widthreduz
-Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller.
2021-02-11Improve resource load cachereduz
-Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10Merge pull request #45845 from qarmin/cppcheck_scene_2Rémi Verschelde
Initialize class variables with default values in scene/ [2/2]
2021-02-10Make Servers truly Thread Safereduz
-Rendering server now uses a split RID allocate/initialize internally, this allows generating RIDs immediately but initialization to happen later on the proper thread (as rendering APIs generally requiere to call on the right thread). -RenderingServerWrapMT is no more, multithreading is done in RenderingServerDefault. -Some functions like texture or mesh creation, when renderer supports it, can register and return immediately (so no waiting for server API to flush, and saving staging and command buffer memory). -3D physics server changed to be made multithread friendly. -Added PhysicsServer3DWrapMT to use 3D physics server from multiple threads. -Disablet Bullet (too much effort to make multithread friendly, this needs to be fixed eventually).
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-02-07Improve SDFGI indirect light feedback loopreduz
-Use occlusion for feedback, further reduces light leaking. -More control on feedback, now its a slider.
2021-02-06Simplify Volumetric Fogreduz
-Always use temporal reproject, it just loos way better than any other filter. -By always using termporal reproject, the shadowmap reduction can be done away with, massively improving performance. -Disadvantage of temporal reproject is update latency so.. -Made sure a gaussian filter runs in XY after fog, this allows to keep stability and lower latency.
2021-02-05Added temporal reprojection to Volumetric Fogreduz
-It's an option, just enable it -Just works, don't have to do anything else.
2021-02-04Merge pull request #45672 from reduz/barrier-optimizationRémi Verschelde
Rewrote how barriers work for faster rendering
2021-02-04doc: Don't bind argument names with p_ prefixRémi Verschelde
This prefix is used in the C++ codebase, not in the scripting API.
2021-02-04Make SyntaxHighligher::_clear_highlighting_cache virtualGeorge Marques
Since it's meant to be used as a virtual method.
2021-02-04Rewrote how barriers work for faster renderingreduz
-Added more finegrained control in RenderingDevice API -Optimized barriers (use less ones for thee same) -General optimizations -Shadows render all together unbarriered -GI can render together with shadows. -SDFGI can render together with depth-preoass. -General fixes -Added GPU detection
2021-02-04Removed duplicated binding of two methodsGeorge Marques
They are bound as both regular and virtual methods which makes ClassDB report the methods twice when querying the API. The non-virtual binding is removed since both methods only seem to be used as virtual.
2021-02-03Merge pull request #45496 from Chaosus/fix_particlesRémi Verschelde
Fix particles not properly updated by their lifetime
2021-02-02Add check for sun in PhysicalSkyclayjohn
2021-02-01Merge pull request #45594 from JFonS/improve_3d_gridRémi Verschelde
3D editor grid improvements
2021-02-013D editor grid improvementsjfons
This commit adds a view-dependant fade to the 3D viewport grid. It fades out at steep view angles to hide the solid regions that appear far from the camera. I also included a fade to hide the grid borders. I added some improvements to the dynamic grid when the camera is in orthogonal mode. It properly handles zoom now, and the grid center is now set to the intersection point between the grid plane and the camera forward ray, keeping the grid always visible.
2021-02-01Merge pull request #37547 from aaronfranke/tauRémi Verschelde
Use Math_TAU and deg2rad/etc in more places and optimize code
2021-02-01Merge pull request #45281 from Chaosus/vs_unifyRémi Verschelde
Unified several visual shader nodes
2021-01-28doc: Sync classref with current sourceRémi Verschelde
2021-01-27Fix particles not properly modified by their lifetimeYuri Roubinsky
2021-01-27Added missed Button `font_hover_pressed_color` styleYuri Roubinsky
2021-01-26Reveals Button "icon_color" style properties to the userYuri Roubinsky
2021-01-26Merge pull request #44194 from madmiraal/fix-font_selected_colorRémi Verschelde
Change themes font_color_selected to font_selected_color
2021-01-25Merge pull request #45447 from pycbouh/graphedit-minimap-active-invisibleRémi Verschelde
Fix minimap capturing events and improve its theme and editor settings
2021-01-25Fix minimap capturing events and improve its themeYuri Sizov
Add an editor setting for minimap opacity in visual editors
2021-01-25Implement shadow meshesreduz
-When importing, a vertex-only version of the mesh is created. -This version is used when rendering shadows, and improves performance by reducing bandwidth -It's automatic, but can optionally be used by users, in case they want to make special versions of geometry for shadow casting.
2021-01-24Change themes *_color_* to *_*_colorMarcel Admiraal
Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
2021-01-22Merge pull request #45314 from RandomShaper/modernize_rwlockRémi Verschelde
Modernize RWLock
2021-01-19Cleanup: Remove executable bit from files which don't need itRémi Verschelde
Drop unused xpmfix.sh script.
2021-01-19Modernize RWLockPedro J. Estébanez
- Based on C++14's `shared_time_mutex` - No more need to allocate-deallocate or check for null - No pointer anymore, just a member variable - Platform-specific implementations no longer needed - Simpler for `NO_THREADS`
2021-01-18Added SDF nodes to visual shaderYuri Roubinsky