summaryrefslogtreecommitdiff
path: root/scene/resources
AgeCommit message (Collapse)Author
2021-06-07Style: Cleanup uses of double spaces between wordsRémi Verschelde
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
2021-06-07Adds `UVFunc` for panning/scaling on UV's to VisualShader's.Yuri Roubinsky
2021-06-05New and improved IK system for Skeleton2DTwistedTwigleg
This PR and commit adds a new IK system for 2D with the Skeleton2D node that adds several new IK solvers, a way to control bones in a Skeleton2D node similar to that in Skeleton3D. It also adds additional changes and functionality. This work was sponsored by GSoC 2020 and TwistedTwigleg. Full list of changes: * Adds a SkeletonModifier2D resource * This resource is the base where all IK code is written and executed * Has a function for clamping angles, since it is so commonly used * Modifiers are unique when duplicated so it works with instancing * Adds a SkeletonModifierStack2D resource * This resource manages a series of SkeletonModification2Ds * This is what the Skeleton2D directly interfaces with to make IK possible * Adds SkeletonModifier2D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK * Each modification is in its own file * There is also a SkeletonModifier2D resource that acts as a stack for using multiple stacks together * Adds a PhysicalBone2D node * Works similar to the PhysicalBone3D node, but uses a RigidBody2D node * Changes to Skeleton2D listed below: * Skeleton2D now holds a single SkeletonModificationStack2D for IK * Skeleton2D now has a local_pose_override, which overrides the Bone2D position similar to how the overrides work in Skeleton3D * Changes to Bone2D listed below: * The default_length property has been changed to length. Length is the length of the bone to its child bone node * New bone_angle property, which is the angle the bone has to its first child bone node * Bone2D caches its transform when not modified by IK for IK interpolation purposes * Bone2D draws its own editor gizmo, though this is stated to change in the future * Changes to CanvasItemEditor listed below: * Bone2D gizmo drawing code removed * The 2D IK code is removed. Now Bone2D is the only bone system for 2D * Transform2D now has a looking_at function for rotating to face a position * Two new node notifications: NOTIFICATION_EDITOR_PRE_SAVE and NOTIFICATION_EDITOR_POST_SAVE * These notifications only are called in the editor right before and after saving a scene * Needed for not saving the IK position when executing IK in the editor * Documentation for all the changes listed above.
2021-06-05Merge pull request #45364 from madmiraal/rename-quatRémi Verschelde
Rename Quat to Quaternion
2021-06-05Deleted YSort, moved its functionality directly into Node2D.andriyDev
YSort now has a compatibility alias to Node2D. Updated TileMap to use the existing Node2D y_sort_enabled property instead of its own property. Updated Node2D doc to include the new y_sort_enabled member. Updated TileMap doc to remove its mention of cell_y_sort. Deleted YSort doc.
2021-06-04Rename Quat to QuaternionMarcel Admiraal
2021-06-04Merge pull request #49297 from aaronfranke/anim-type-tr3dRémi Verschelde
Rename Animation TYPE_TRANSFORM to TYPE_TRANSFORM3D
2021-06-04Merge pull request #47336 from Calinou/rename-shader-file-extensionRémi Verschelde
Rename the `.shader` file extension to `.gdshader`
2021-06-03Rename Animation TYPE_TRANSFORM to TYPE_TRANSFORM3DAaron Franke
2021-06-03Rename Variant TRANSFORM to TRANSFORM3DAaron Franke
Also _transform to _transform3d
2021-06-03Rename Transform to Transform3D in coreAaron Franke
2021-06-01Merge pull request #45393 from Paulb23/code_edit_autocompleteRémi Verschelde
2021-06-01Move and expose AutoComplete in CodeEditPaulb23
2021-06-01Merge pull request #49024 from groud/restore_tilemap_show_debugRémi Verschelde
Restore TileMap's debug collision shapes and add navigation.
2021-06-01Merge pull request #49067 from JFonS/fix_gcc_warningsRémi Verschelde
Fix some warnings raised by GCC-11.1
2021-05-31Merge pull request #49208 from aaronfranke/tileset-disable-dep-compatRémi Verschelde
Disable loop with CompatibilityTileData in TileSet when building with deprecated=no
2021-05-30Disable loop with CompatibilityTileData when building with deprecated=noAaron Franke
2021-05-28Added Billboard Node to Visual ShadersYuri Roubinsky
2021-05-26Merge pull request #49056 from Chaosus/vs_colorYuri Roubinsky
2021-05-26Implements expandable color ports in visual shadersYuri Roubinsky
2021-05-25Merge pull request #48546 from pycbouh/tree-highlight-selected-relationshipsRémi Verschelde
2021-05-25Merge pull request #48837 from Soupstraw/shader-piRémi Verschelde
Added constants PI, TAU and E to the shader language
2021-05-25Add highlight to the relationship lines of selected Tree itemsYuri Sizov
2021-05-25Fix some warnings raised by GCC-11.1jfons
2021-05-25Rename File::get_len() get_length()Marcel Admiraal
2021-05-25Restore a way to show collsion/navigation on TileMap.Gilles Roudière
Also remove an unused function.
2021-05-25Merge pull request #48955 from Calinou/editor-tweak-property-hintsRémi Verschelde
Tweak dozens of editor property hints for consistency
2021-05-25Added constants PI, TAU and E to the shader languageJoosep Jääger
2021-05-25Tweak dozens of editor property hints for consistencyHugo Locurcio
- Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
2021-05-23Support for 2D particles to collide against SDFreduz
-Added SDF collision support for 2D particles -Changed the SDF generation to be fully signed
2021-05-22Merge pull request #48916 from mortarroad/master-convex-hull-portedRémi Verschelde
Replace QuickHull with Bullet's convex hull computer.
2021-05-22Replace QuickHull with Bullet's convex hull computer.Morris Tabor
The code is based on the current version of thirdparty/vhacd and modified to use Godot's types and code style. Additional changes: - extended PagedAllocator to allow leaked objects - applied patch from https://github.com/bulletphysics/bullet3/pull/3037
2021-05-22Update with experimental mesh optimizer.K. S. Ernest (iFire) Lee
Normals being optimized has better quality now. Test simplify once and then use a slightly less tolerant error for the target error.
2021-05-22Add custom background line colour to TextEdit and remove marked linesPaulb23
2021-05-22Merge pull request #48918 from groud/fix_tilemap_y_sortRémi Verschelde
Fixes TileSet Y-sort not working and TileSet not saving correctly
2021-05-21Fixes TileSet Y-sort not working and TileSet not saving correctlyGilles Roudière
2021-05-20Change behavior of String.rightTomasz Chabora
2021-05-20Merge pull request #48812 from groud/tilemap_scenes_paintingRémi Verschelde
Implement scenes tiles in TileMaps
2021-05-20Implement scenes tiles in TileMapsGilles Roudière
2021-05-20Fix typos with codespellRémi Verschelde
Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2021-05-18Merge pull request #36263 from Calinou/increase-default-2d-gravityRémi Verschelde
2021-05-18Merge pull request #47544 from pycbouh/control-expose-theme-typeRémi Verschelde
2021-05-17Merge pull request #48549 from kleonc/bitmap_resize_fixRémi Verschelde
BitMask::create Don't request more memory than needed when size is a multiply of 8
2021-05-17Merge pull request #48168 from LightningAA/control-to-ctrl-4.0Rémi Verschelde
2021-05-17Add theme_custom_type property to Control and WindowYuri Sizov
2021-05-17Merge pull request #48768 from akien-mga/file-access-64-bit-4.0Rémi Verschelde
Make all file access 64-bit (`uint64_t`)
2021-05-17Use a DynamicFont for the default project themeHugo Locurcio
This makes font oversampling work out of the box, while also increasing the supported character set's size. The default font is now larger as well to better fit today's screen resolutions. The OpenSans SemiBold font was chosen for two reasons: - Small file size, yet its character set supports Latin-1 and Cyrillic text. - A heavier font weight looks better in most "game" scenarios and is more readable against mixed-color backgrounds. This is considered a breaking change as it changes the default font's metrics, which will likely affect how Control nodes are laid out in scenes (unless a custom font is in use).
2021-05-17Make all file access 64-bit (uint64_t)Pedro J. Estébanez
This changes the types of a big number of variables. General rules: - Using `uint64_t` in general. We also considered `int64_t` but eventually settled on keeping it unsigned, which is also closer to what one would expect with `size_t`/`off_t`. - We only keep `int64_t` for `seek_end` (takes a negative offset from the end) and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means we only need to guard against passing negative values in `core_bind.cpp`. - Using `uint32_t` integers for concepts not needing such a huge range, like pages, blocks, etc. In addition: - Improve usage of integer types in some related places; namely, `DirAccess`, core binds. Note: - On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for big files on 32-bit Windows builds made with that toolchain. We might add a workaround. Fixes #44363. Fixes godotengine/godot-proposals#400. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-16Fix normals of PrismMeshJohn Wigg
2021-05-14Merge pull request #48478 from brennengreen/normal-mapping-unpacked-fixRémi Verschelde
Fix refraction offset by manually unpacking normal mappings