Commit graph

622 commits

Author SHA1 Message Date
toger5 d637cbb289 new StyleBoxFlat limits for drawing
- corner and border are decreased if necassary to achoieve clean stylboxes
 - prohibits wired drawing artifacts when using wrong values
 - corner radius are relative to the partner corner when they would result in glitches
2017-08-15 19:49:24 +02:00
toger5 356eb47fea new StyleBoxFlat added more drawing features
- corner radius bindings
 - shadow
 - antiAliasing
 - CornerDetail
2017-08-15 19:47:51 +02:00
toger5 059a0496da Adapted godot to the new StyleBoxFlat 2017-08-15 19:36:34 +02:00
toger5 f05e61ed09 NEW Style Box Flat Implementation
- now use polygons!
 - renamed blend -> blend_border
 - draw_center -> filled
 - GDScript biding
2017-08-15 19:36:34 +02:00
M.H. Alkotob 92e74ed250 Fix console warning: Condition !env is true
The trivial yet astute fix was suggested by @bojidar-bg in IRC.
Compiling confirms it does the job, so thought I'd push a PR.
2017-08-14 14:48:35 +03:00
kbake a72d17cf11 Scroll bars now look different on press 2017-08-12 17:46:26 -04:00
Zher Huei Lee b6ec3f02f0 Added Tile and TileFit to StyleBoxes
Was already implemented for Patch9 boxes, but wasn't exposed here.
Allows for use in other GUI elements like panels and buttons.
2017-08-12 09:57:56 +08:00
Rémi Verschelde b47e6c0dba Merge pull request #10194 from Keetz/update-default-values
Updated default values in SpatialMaterial and Environment
2017-08-11 10:39:12 +02:00
Ignacio Etcheverry 78619a5866 Fixes method definitions with extra number of arguments 2017-08-10 07:17:51 +02:00
Ignacio Etcheverry 2f290038d6 Removes type information from method binds 2017-08-10 07:17:50 +02:00
Rasmus Ketelsen 141aac48ff Updated default values in SpatialMaterial and Environment 2017-08-09 10:11:36 +02:00
Juan Linietsky df573f5c3a -Restored Sprite3D to working function, fixes #2061, fixes #9738
-Restored an alpha scissor property in Material
2017-08-08 17:23:44 -03:00
Ignacio Etcheverry 640a3c46c3 Texture: Fix wrong method bind instance type 2017-08-07 12:01:13 +02:00
Juan Linietsky 8e51c70374 Added missing binding to ImageTexture, closes #8371 2017-08-06 11:38:27 -03:00
Juan Linietsky 475e8b28b2 keep default exported script values unless overriden, closes #8127 2017-08-06 09:33:59 -03:00
Juan Linietsky 5c361485db -Added GLTF scene support (still missing animations and .glb extension)
-Fixed bugs regarding tangent generation in SurfaceTool
2017-08-02 15:43:49 -03:00
Rémi Verschelde 85088275c5 Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-Sync
Texture region now updates when changing an Atlas region rect
2017-08-01 00:15:37 +02:00
Andrii Doroshenko (Xrayez) aa1165a3f5 Bind some useful methods in SurfaceTool to GDScript
These include:
* generate_tangents()
* add_to_format()
* create_from()
* append_from()

Reordered and grouped the bindings to match the header for improved readability.

Removed commented out `generate_flat_normals()` method which wasn't present
in the header.

Fixes #9946
2017-07-31 15:50:37 +03:00
Rémi Verschelde 76005a8e75 Style: Apply clang-format on all files
Thus fixing some invalid changes that had still made it to the master branch.
2017-07-30 22:53:40 +02:00
Juan Linietsky f5277e347d Fixes to glow and auto exposure, closes #9797, closes #9106 2017-07-26 00:40:32 -03:00
Juan Linietsky 47b2455a62 Good bye chunky fonts, closes #9441 2017-07-25 09:29:27 -03:00
Rémi Verschelde 374cffaa11 Merge pull request #9764 from Noshyaar/pr-fix2
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Juan Linietsky 66009706c9 -Ability to set default import presets for type
-More presets for scene importer
-Option in scene importer to export root nodes as separate scenes
-Fixed MeshInstance preview
2017-07-23 18:50:25 -03:00
Poommetee Ketson 2777f81d29 Add object type hint for docs 2017-07-23 18:57:03 +07:00
Juan Linietsky 772485cdb3 Several changes to better run in mobile. 2017-07-22 14:08:17 -03:00
George Marques 2a0c0db028
Fix "vertical" property of StyleBoxLine 2017-07-19 23:30:39 -03:00
Juan Linietsky 25678b1876 -Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Rémi Verschelde c5ba9d9b7c Merge pull request #9703 from Noshyaar/docs
Add object type hint for docs
2017-07-19 10:00:20 +02:00
Poommetee Ketson 49c7620326 Add object type hint for docs 2017-07-19 02:03:34 +07:00
Rémi Verschelde 0afa77a8a2 Merge pull request #9689 from djrm/theme_fixes
Added separators using StyleBoxLine, some theme style fixes
2017-07-18 14:06:04 +02:00
Daniel J. Ramirez 17c3422431 Added separators using StyleBoxLine, some theme style fixes, added variant icon 2017-07-18 01:09:19 -05:00
Rémi Verschelde 5a42bbaace Merge pull request #9482 from Noshyaar/pr-ramp
Fix shrunk ColorPickers
2017-07-18 07:52:32 +02:00
Poommetee Ketson 668d00ff2d Fix ColorPicker to use theme constants 2017-07-18 09:43:16 +07:00
Juan Linietsky bbada82f80 -Reorganized all properties of project settings (Sorry, Again).
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Rémi Verschelde f36cd77feb Merge pull request #9639 from rminderhoud/primitives
Moved binds of PRIMITIVE_* contants from ArrayMesh to Mesh
2017-07-18 00:44:57 +02:00
Daniel J. Ramirez a3c2d9a6bd Improvements and fixes for the default theme.
Added customizable border size and window highlight.
2017-07-16 13:23:59 -05:00
Juan Linietsky 2e73be99d8 Lots of work on Audio & Physics engine:
-Added new 3D stream player node
-Added ability for Area to capture sound from streams
-Added small features in physics to be able to properly guess distance to areas for sound
-Fixed 3D CollisionObject so shapes are added the same as in 2D, directly from children
-Fixed KinematicBody API to make it the same as 2D.
2017-07-15 08:32:34 -03:00
Ralph Minderhoud bf18c35dd7 Moved binds of PRIMITIVE_* contants from ArrayMesh to Mesh 2017-07-14 08:46:21 -05:00
ducdetronquito 074801e7a9 [#7212] Fixed missing 'Variant' return values in documentation. 2017-07-11 13:25:51 +02:00
Poommetee Ketson 0c66078bcb Slider: add set/is_editable 2017-07-11 02:48:55 +07:00
Rémi Verschelde d23fc16b2d Merge pull request #9564 from Noshyaar/pr-threshold
Refactor 'treshold' to 'threshold'
2017-07-08 23:51:53 +02:00
Juan Linietsky e577c5b070 Some adjustments to toon material to make it more flexible
Ability to also disable specular
2017-07-08 14:01:56 -03:00
Juan Linietsky f4c8c552f9 Added triplanar mapping, toon mode, and more specular modes for materials. Added multipass support for materials. 2017-07-08 12:36:15 -03:00
Poommetee Ketson 2fd204c35e Refactor 'treshold' to 'threshold' 2017-07-08 22:24:56 +07:00
Juan Linietsky 84de71872f -Added triplanar mapping modes
-Some fixes to shader lang
2017-07-08 08:07:49 -03:00
Johan Manuel 00afca31c6 Use the gravity constant to calculate weights 2017-07-05 15:14:12 +02:00
Juan Linietsky 7263137dba Implemented environment arrays for skybox reflection and roughness, quality increase is enormous. 2017-07-04 23:53:08 -03:00
Rémi Verschelde b8ae605603 Merge pull request #9481 from BastiaanOlij/prim_capsule_flat
Re-orient capsule to collision shape
2017-07-03 22:47:26 +02:00
BastiaanOlij f02ccffca3 Re-orient capsule to colission shape 2017-07-03 23:53:06 +10:00
Juan Linietsky e63c64e256 Clean up normalmapping, make sure tangents are imported correctly. 2017-07-03 10:45:34 -03:00
Bojidar Marinov 88ae942029
Readd shape_offset as an editor-only and backcompat property 2017-07-01 20:58:35 +03:00
Bojidar Marinov 4d2642b666 Readd tilemap's shape_transform and bugfixes
This reverts commit a808f53020.
2017-07-01 20:56:51 +03:00
Juan Linietsky a808f53020 Revert "Fix Tileset/tilemap issues related to my adding of one-way collisions to them" 2017-07-01 13:02:04 -03:00
Juan Linietsky 2a3e00c8c7 -Many fixes to VisualScript, fixed property names, etc.
-Added ability to set/get a field in GetSet, as well as assignment ops
-Added a Select node
-Fixed update bugs related to variable list and exported properties, closes #9458
2017-06-30 21:35:05 -03:00
Bojidar Marinov 80356f925c
Fix #9409, fixup #9370; tileset now has shape transform instead of offset
Fix bad return type in CollisionObject2D, Shape -> Shape2D. Was causing unintended null when casting. (9409)
Fix a misplaced ++ operator. (9370)
Fix merging with exiting tileset duplicating shapes. (9370)
2017-06-30 19:01:20 +03:00
Robert Hernandez f0f407e76e Texture region now updates when changing an Atlas
- Removed atlas_changed signal for AtlasTexture
- Changes are now handled by _notify_change
- Removed unneccesary signal connections
- Texture preview now updates in real-time

Fixed TextureRegionEditor constantly regenerating
2017-06-29 10:49:24 -04:00
Juan Linietsky db3b05d289 Reworked translation system
-Label and Button reload translation on the fly
-Resources are loaded and reload depending on locale
2017-06-28 17:01:35 -03:00
Poommetee Ketson 0200507387 Fix build error on master 2017-06-28 10:41:43 +07:00
Marc Gilleron 6c1ab2098f Fix curve saving, refined undo/redo 2017-06-28 02:43:30 +02:00
Juan Linietsky 51442988b1 Merge pull request #9404 from Zylann/curve_improvement
Curve improvement
2017-06-27 07:53:52 -03:00
Juan Linietsky 3ce046ee0c -Fixed SCREEN_TEXTURE and other related 2D shader parameters.
-Fixded BackBuffercopy object
2017-06-26 22:58:46 -03:00
Rémi Verschelde f1cc3b700a Merge pull request #9268 from BastiaanOlij/improve_defaults
Align primitive defaults to default collision shape sizes
2017-06-26 23:56:57 +02:00
Marc Gilleron 69b8f61f25 Curve features
- Ability to set tangents as linear
- Indicative min and max values
- CurveTexture doesn't need min and max anymore
2017-06-26 23:41:37 +02:00
Rémi Verschelde f2bc0cc966 Merge pull request #9370 from bojidar-bg/c-9318-oneway-tilemaps
Add one-way collisions and individual shape offsets for tilesets
2017-06-26 22:47:26 +02:00
Rémi Verschelde f7b77e5b76 Merge pull request #9318 from bojidar-bg/readd-normal-tilemap
Add normal map to tilemaps and tilesets
2017-06-26 22:47:11 +02:00
Juan Linietsky d41978eb63 Usability improvements for folding. Unfortunately SpatialMaterial broke compatibility. 2017-06-25 18:57:28 -03:00
Bojidar Marinov 207feb2f87
Add one-way collisions and individual shape offsets for tilesets
As requested in #9318
Accidentially fixes #2231 as well
2017-06-25 21:47:30 +03:00
Ramesh Ravone c6e295c399 Fixes method bind 2017-06-25 16:35:39 +05:30
Poommetee Ketson e3998528e0 BuildSystem: generated files have .gen.extension 2017-06-25 07:55:01 +07:00
Marc Gilleron 2bb1638b0a GradientTexture now uses a Gradient
- Added gradient property
- Deleted duplicate code
2017-06-24 21:50:44 +02:00
Poommetee Ketson 04164bb317 Environment: remove ssr_accel property, fix typo 2017-06-24 16:07:37 +07:00
Marc Gilleron 659897cfb8 Added Curve resource
- New resource for curves in y(x) form
- CurveTexture now has a Curve
- Curve and CurveTexture share the same editor
2017-06-24 01:01:36 +02:00
Bojidar Marinov 2edb082c7e
Add normal map to tilemaps and tilesets
Fixes #9310
2017-06-22 18:15:50 +03:00
Juan Linietsky fb72edf45e Properly exposed material types everywhere. 2017-06-22 09:33:20 -03:00
BastiaanOlij bf6f3881a1 Align primitive defaults to default collision shape sizes 2017-06-19 21:40:16 +10:00
Juan Linietsky 0288be1e76 Texture rect_region drawing now clamps UV to avoid bleeding. This avoids scenarios like single-texture tilemap tiles leaking pixels to the next tile when filter is enabled on it. 2017-06-18 22:55:02 -03:00
Juan Linietsky 969fa3cc73 -Added AudioStreamPlayer2D, for 2D positional sound
-Added ability for Area2D to redirect positional sound to a specific audio bus
2017-06-18 21:07:32 -03:00
Juan Linietsky 33bf180067 Added normalmap support to stylebox and animated sprite. 2017-06-18 00:03:28 -03:00
Juan Linietsky 5c6cac4e53 Add normalmap support for drawing in all low level primitives. Only added support in Sprite so far. 2017-06-17 23:27:42 -03:00
Juan Linietsky 2da3f48e5a -Fixed shader lang to not be able to get scalar from matrix (ie mat.x), to make it more GLSL compatible
-Fixed referencing of world_transform in fragment shader not working
-Fixed unsycn bug related to getting shader param list from the server
-Fixed getting all textures from shader properly, fixes #8353
2017-06-17 11:03:48 -03:00
Rémi Verschelde 63544169f0 Merge pull request #9228 from BastiaanOlij/fix_primitive_slider
Fix sliders for primitives
2017-06-17 10:36:41 +02:00
Juan Linietsky b19225bfce -Fix freezes caused by etccomp2, closes #9183
-Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.
2017-06-16 21:49:37 -03:00
BastiaanOlij 4f20f52d5f fix sliders for primitives 2017-06-17 09:18:09 +10:00
BastiaanOlij 1e5a6d3cc8 Add sensible hints to properties 2017-06-16 23:56:13 +10:00
BastiaanOlij 9483613138 Godot 3.0 primitives as resources for use with MeshInstance
Adds the following resources:
- CapsuleMesh: a capsule object
- CubeMesh: a cube that can be subdivided
- CylinderMesh: a cylinder
- PlaneMesh: a horizontal plane that can be subdivided
- PrismMesh: a prism shape
- SphereMesh: a sphere
- QuadMesh: reintroduction of the original quadmesh

Removes the old Quad and TestCube nodes
2017-06-16 21:40:23 +10:00
Juan Linietsky 5d02b948a9 Cleaned up Screen Space Reflections, closes #8119 2017-06-16 08:30:21 -03:00
Juan Linietsky 29cfc365aa Fixes to SSR, WIP. 2017-06-16 08:30:21 -03:00
George Marques e42d59f01e
Rename Godot-specific resource extensions 2017-06-15 21:35:20 -03:00
Juan Linietsky da14225ad8 fix bug related to unshaded materials not working on MSVC. Not cleanest solution, might think about how to improve later. 2017-06-15 10:36:00 -03:00
alexholly 935f730170 renamed all Rect3.pos to Rect3.position 2017-06-09 15:54:02 +02:00
Juan Linietsky 612ab8fcdb -Restored multithread capability to VisualServer
-Restored resource previews!
2017-06-09 00:24:18 -03:00
Juan Linietsky 5bf810b5db -Added proper access to depth texture from shader
-Split Mesh into Mesh (abstrat class) and ArrayMesh, to allow to proper mesh primitives, as well as streamable meshes in the future.
2017-06-07 18:20:04 -03:00
Juan Linietsky 840ac8c018 Fog is complete! 2017-06-07 08:38:21 -03:00
Juan Linietsky 0fb99306ff -working SCREEN_TEXTURE, SCREEN_UV shader variables
-Added refraction support for default material
-Enabled BCS adjustments, as well as color correction.
2017-06-05 22:34:32 -03:00
Rémi Verschelde f8d7670e82 Merge pull request #9038 from AlexHolly/rect2-rename-pos
renamed all Rect2.pos to Rect2.position
2017-06-05 15:52:05 +02:00
Juan Linietsky 01198cb896 Removed stupid right arrow to edit resource. Now simply click it.. 2017-06-04 20:35:45 -03:00
Juan Linietsky 5aa66d03d8 Added depth texture support (using parallax) to default material. 2017-06-04 20:35:45 -03:00
alexholly a3c90b0293 renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
Juan Linietsky 8a1097a224 many fixes to image loader, voxel cone tracing, etc. 2017-06-02 22:08:41 -03:00
Juan Linietsky c03131fc9f Rework shading modes and change location of light shader 2017-06-01 18:56:02 -03:00